¡@

Home 

c# Programming Glossary: ptr

Fast work with Bitmaps in C#

http://stackoverflow.com/questions/1563038/fast-work-with-bitmaps-in-c-sharp

bData.PixelFormat This time we convert the IntPtr to a ptr byte scan0 byte bData.Scan0.ToPointer for int i 0 i bData.Height..

Is there a good way to convert between BitmapSource and Bitmap?

http://stackoverflow.com/questions/2284353/is-there-a-good-way-to-convert-between-bitmapsource-and-bitmap

bits stride 0 unsafe fixed byte pBits bits IntPtr ptr new IntPtr pBits System.Drawing.Bitmap bitmap new System.Drawing.Bitmap.. stride System.Drawing.Imaging.PixelFormat.Format32bppPArgb ptr return bitmap To do the reverse System.Windows.Media.Imaging.BitmapSource..

x86/x64 CPUID in C#

http://stackoverflow.com/questions/3216535/x86-x64-cpuid-in-c-sharp

0x53 push ebx 0x57 push edi 0x8B 0x45 0x08 mov eax dword ptr ebp 8 move level into eax 0x0F 0xA2 cpuid 0x8B 0x7D 0x0C mov.. into eax 0x0F 0xA2 cpuid 0x8B 0x7D 0x0C mov edi dword ptr ebp 12 move address of buffer into edi 0x89 0x07 mov dword.. 12 move address of buffer into edi 0x89 0x07 mov dword ptr edi 0 eax write eax ... to buffer 0x89 0x5F 0x04 mov dword ptr..

Using Process.Start() to start a process as a different user from within a Windows Service

http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo

SECURITY_DESCRIPTOR sd new SECURITY_DESCRIPTOR IntPtr ptr Marshal.AllocCoTaskMem Marshal.SizeOf sd Marshal.StructureToPtr.. Marshal.SizeOf sd Marshal.StructureToPtr sd ptr false InitializeSecurityDescriptor ptr SECURITY_DESCRIPTOR_REVISION.. sd ptr false InitializeSecurityDescriptor ptr SECURITY_DESCRIPTOR_REVISION sd SECURITY_DESCRIPTOR Marshal.PtrToStructure..

Show Console in Windows Application?

http://stackoverflow.com/questions/472282/show-console-in-windows-application

uppermost window. We'll get it and attach to it IntPtr ptr GetForegroundWindow int u GetWindowThreadProcessId ptr out.. ptr GetForegroundWindow int u GetWindowThreadProcessId ptr out u Process process Process.GetProcessById u if process.ProcessName..