c# Programming Glossary: uintptr
Reducing memory usage of .NET applications? http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications SetProcessWorkingSetSize Process.GetCurrentProcess .Handle UIntPtr 0xFFFFFFFF UIntPtr 0xFFFFFFFF DllImport kernel32.dll return.. Process.GetCurrentProcess .Handle UIntPtr 0xFFFFFFFF UIntPtr 0xFFFFFFFF DllImport kernel32.dll return MarshalAs UnmanagedType.Bool.. static extern bool SetProcessWorkingSetSize IntPtr process UIntPtr minimumWorkingSetSize UIntPtr maximumWorkingSetSize The results..
Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C# http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c-sharp private IntPtr LowLevelKeyboardProc int nCode UIntPtr wParam IntPtr lParam if nCode 0 if wParam.ToUInt32 int InterceptKeys.KeyEvent.WM_KEYDOWN.. public delegate IntPtr LowLevelKeyboardProc int nCode UIntPtr wParam IntPtr lParam public static int WH_KEYBOARD_LL 13 public.. static extern IntPtr CallNextHookEx IntPtr hhk int nCode UIntPtr wParam IntPtr lParam DllImport kernel32.dll CharSet CharSet.Auto..
x86/x64 CPUID in C# http://stackoverflow.com/questions/3216535/x86-x64-cpuid-in-c-sharp x64CodeBytes codePointer VirtualAlloc IntPtr.Zero new UIntPtr uint codeBytes.Length AllocationType.COMMIT AllocationType.RESERVE.. private static extern IntPtr VirtualAlloc IntPtr lpAddress UIntPtr dwSize AllocationType flAllocationType MemoryProtection flProtect.. 4 IntPtr p NativeMethods.VirtualAlloc IntPtr.Zero new UIntPtr uint x86_CPUID0_INSNS.Length AllocationTypes.Commit AllocationTypes.Reserve..
Get timestamp from Authenticode Signed files in .NET http://stackoverflow.com/questions/3281057/get-timestamp-from-authenticode-signed-files-in-net static extern bool CryptDecodeObject uint CertEncodingType UIntPtr lpszStructType byte pbEncoded uint cbEncoded uint flags In Out.. const int PKCS_7_NDR_ENCODING 0x00020000 public static UIntPtr PKCS7_SIGNER_INFO new UIntPtr 500 public static UIntPtr CMS_SIGNER_INFO.. 0x00020000 public static UIntPtr PKCS7_SIGNER_INFO new UIntPtr 500 public static UIntPtr CMS_SIGNER_INFO new UIntPtr 501 public..
Working example of CreateJobObject/SetInformationJobObject pinvoke in .net? http://stackoverflow.com/questions/6266820/working-example-of-createjobobject-setinformationjobobject-pinvoke-in-net Int64 PerJobUserTimeLimit public Int16 LimitFlags public UIntPtr MinimumWorkingSetSize public UIntPtr MaximumWorkingSetSize public.. LimitFlags public UIntPtr MinimumWorkingSetSize public UIntPtr MaximumWorkingSetSize public Int16 ActiveProcessLimit public..
|