Desktop Functions: Smart Device Functions:
|
Search Results for "UintPtr" in [All]Structures
UIntPtr grfAccessPermissions;
UIntPtr grfAccessMode;
UIntPtr grfInheritance; UIntPtr or IntPtr are needed because they change sizes according to platform. If you need to cast to / from, then must keep the size change in mind. 2: HEAPENTRY32
internal UIntPtr dwAddress;
internal UIntPtr th32HeapID;
public UIntPtr dwExtraInfo;
Public dwExtraInfo As UIntPtr
public dwExtraInfo As UIntPtr 4: KEYBDINPUT
internal UIntPtr dwExtraInfo; 5: MENUINFO
public UIntPtr dwMenuData; 6: MOUSEINPUT
internal UIntPtr dwExtraInfo;
public UIntPtr dwExtraInfo;
Public dwExtraInfo As UIntPtr 8: OVERLAPPED
public UIntPtr Internal;
public UIntPtr InternalHigh;
public UIntPtr UniqueProcessId;
private UIntPtr reserved; 11: VALENT
internal UIntPtr ve_valueptr; 12: WAVEHDR
Dim reserved As UIntPtr misc13: FAQ For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine. advapi32
out UIntPtr SecurityDescriptorSize 15: RegCloseKey
UIntPtr hKey);
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As UIntPtr) As Integer 16: RegDeleteKey
UIntPtr hKey,
Declare Function RegDeleteKeyEx Lib "advapi32.dll" (hKey As UIntPtr, lpSubKey As String, samDesired As UInteger, Reserved As UInteger) As Integer 17: RegDeleteKeyEx
UIntPtr hKey, 18: RegDeleteTree
UIntPtr hKey, 19: RegEnumKeyEx
extern private static int RegEnumKeyEx(UIntPtr hkey, 20: RegOpenKey
UIntPtr hKey,
out UIntPtr hkResult); - Changed IntPtr to UIntPtr: When invoking with IntPtr for the handles, you will run into an Overflow. UIntPtr is the right choice if you wish this to work correctly on 32 and 64 bit platforms.
public static UIntPtr HKEY_LOCAL_MACHINE = new UIntPtr(0x80000002u);
public static UIntPtr HKEY_CURRENT_USER = new UIntPtr(0x80000001u);
private static string ReadRegKey(UIntPtr rootKey, string keyPath, string valueName) 21: RegOpenKeyEx
UIntPtr hKey,
out UIntPtr hkResult); - Changed IntPtr to UIntPtr: When invoking with IntPtr for the handles, you will run into an Overflow. UIntPtr is the right choice if you wish this to work correctly on 32 and 64 bit platforms.
public static UIntPtr HKEY_LOCAL_MACHINE = new UIntPtr(0x80000002u);
public static UIntPtr HKEY_CURRENT_USER = new UIntPtr(0x80000001u);
private static string ReadRegKey(UIntPtr rootKey, string keyPath, string valueName) 22: RegQueryValue
UIntPtr hKey,
UIntPtr hKey,
private static string ReadRegKey(UIntPtr rootKey, string keyPath, string valueName)
public static UIntPtr HKEY_LOCAL_MACHINE = new UIntPtr(0x80000002u);
UIntPtr hKey = UIntPtr.Zero;
if (hKey != UIntPtr.Zero) 23: RegQueryValueEx
UIntPtr hKey,
UIntPtr hKey,
private static string ReadRegKey(UIntPtr rootKey, string keyPath, string valueName)
public static UIntPtr HKEY_LOCAL_MACHINE = new UIntPtr(0x80000002u);
UIntPtr hKey = UIntPtr.Zero;
if (hKey != UIntPtr.Zero) 24: RegSetValueEx
UIntPtr hKey,
UIntPtr hKey = UIntPtr.Zero;
if (hKey != UIntPtr.Zero) shlwapi25: AssocCreate
[In] UIntPtr hkProgid,
[Out] out UIntPtr phkeyOut);
UIntPtr.Zero, IntPtr.Zero); kernel32
ref uint NumberOfPages, UIntPtr PageArray);
IntPtr ExistingCompletionPort, UIntPtr CompletionKey,
UIntPtr dwSize);
Shared Function FlushInstructionCache(hProcess As IntPtr, lpBaseAddress As IntPtr, dwSize As UIntPtr) As Boolean
NumberOfPages, UIntPtr UserPfnArray);
public UIntPtr dwActiveProcessorMask; 31: GetProcAddress
Private Function GetProcAddress(ByVal hModule As IntPtr, ByVal procName As String) As UIntPtr
out UIntPtr lpProcessAffinityMask, out UIntPtr lpSystemAffinityMask);
<Out> lpProcessAffinityMask As UIntPtr, <Out> lpSystemAffinityMask as UIntPtr) As Boolean
lpNumberOfBytes, out UIntPtr lpCompletionKey, out IntPtr lpOverlapped, 34: GetWriteWatch
UIntPtr dwRegionSize, out IntPtr lpAddresses, ref UIntPtr lpdwCount, 35: GlobalAlloc
static extern IntPtr GlobalAlloc(uint uFlags, UIntPtr dwBytes); 36: HeapAlloc
static extern IntPtr HeapAlloc(IntPtr hHeap, uint dwFlags, UIntPtr dwBytes);
Public Declare Function HeapAlloc Lib "kernel32" (ByVal hHeap As IntPtr, ByVal dwFlags As UInteger, ByVal dwBytes As UIntPtr) As IntPtr 37: HeapCreate
static extern IntPtr HeapCreate(uint flOptions, UIntPtr dwInitialSize,
UIntPtr dwMaximumSize);
public UIntPtr MinimumWorkingSetSize;
public UIntPtr MaximumWorkingSetSize;
Public MinimumWorkingSetSize As UIntPtr
Public MaximumWorkingSetSize As UIntPtr
public UIntPtr ProcessMemoryLimit;
public UIntPtr JobMemoryLimit;
public UIntPtr PeakProcessMemoryUsed;
public UIntPtr PeakJobMemoryUsed;
Public ProcessMemoryLimit As UIntPtr
Public JobMemoryLimit As UIntPtr
Public PeakProcessMemoryUsed As UIntPtr
Public PeakJobMemoryUsed As UIntPtr 40: LocalAlloc
static extern IntPtr LocalAlloc(uint uFlags, UIntPtr uBytes);
IntPtr memPtr = LocalAlloc(LocalMemoryFlags.LPTR, new UIntPtr((uint)size)); 41: MapViewOfFile
UIntPtr dwNumberOfBytesToMap, IntPtr lpBaseAddress);
uint dwNumberOfBytesTransferred, UIntPtr dwCompletionKey,
UIntPtr dwProcessAffinityMask);
UIntPtr affinityMask = new UIntPtr((uint)1);
static extern bool SetProcessWorkingSetSize(IntPtr hProcess, UIntPtr
dwMinimumWorkingSetSize, UIntPtr dwMaximumWorkingSetSize);
static extern UIntPtr SetThreadAffinityMask(IntPtr hThread,
UIntPtr dwThreadAffinityMask);
IntPtr lpBaseAddress, [Out] byte [] lpBuffer, UIntPtr cbRead,
UIntPtr ExceptionInformation; 48: VirtualProtect
UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); dwSize should be IntPtr or UIntPtr because the underlying type is SIZE_T and varies with the platform. 49: VirtualProtectEx
UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); winmm50: midiInGetDevCaps
private static extern MMRESULT midiInGetDevCaps(UIntPtr uDeviceID, ref MIDIINCAPS caps, uint cbMidiInCaps);
public static extern MMRESULT midiOutGetDevCaps(UIntPtr uDeviceID, ref MIDIOUTCAPS lpMidiOutCaps, uint cbMidiOutCaps);
midiOutGetDevCaps((UIntPtr) x, out caps, (uint)Marshal.SizeOf(typeof(MIDIOUTCAPS))); 52: PlaySound
static extern bool PlaySound(string pszSound, UIntPtr hmod, uint fdwSound);
ByVal hModule As UIntPtr, _
PlaySound (strFileName, UIntPtr.Zero, (uint)(SoundFlags.SND_FILENAME | SoundFlags.SND_ASYNC));
UIntPtr ip = UIntPtr.Zero;
Dim ip As UIntPtr = UIntPtr.Zero 53: timeSetEvent
static extern uint timeSetEvent(uint uDelay, uint uResolution, TimerCallback lpTimeProc, UIntPtr dwUser, uint fuEvent);
delegate void TimerCallback(uint uTimerID, uint uMsg, UIntPtr dwUser, UIntPtr dw1, UIntPtr dw2);
id = timeSetEvent(ms, 0, thisCB, UIntPtr.Zero, (uint)f);
void CBFunc(uint uTimerID, uint uMsg, UIntPtr dwUser, UIntPtr dw1, UIntPtr dw2) 54: waveInProc
Delegate Sub waveInProc(<MarshalAs(UnmanagedType.I4)> ByVal hwi As Integer, ByVal uMsg As WIMMessages, ByVal dwInstance As UIntPtr, ByVal dwParam1 As UIntPtr, ByVal dwParam2 As UIntPtr) fbwflib
static extern UIntPtr FbwfIsFilterEnabled(
static extern UIntPtr FbwfIsFilterEnabled( oleacc
static extern object ObjectFromLresult(UIntPtr lResult,
Declare Auto Function ObjectFromLresult Lib "oleacc.dll" (ByVal lResult As UIntPtr, <MarshalAs(UnmanagedType.LPStruct)> ByVal refiid As Guid, ByVal wParam As IntPtr) As <MarshalAs(UnmanagedType.Interface)> Object
Shared Function ObjectFromLresult(ByVal lResult As UIntPtr, <MarshalAs(UnmanagedType.LPStruct)> ByVal refiid As Guid, ByVal wParam As IntPtr) As <MarshalAs(UnmanagedType.Interface)> Object
UIntPtr lRes;
if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero, coredll57: RegCreateKeyEx
UIntPtr hKey, string lpSubKey, uint dwReserved, string lpClass,
public UIntPtr HKEY_CLASSES_ROOT = (UIntPtr)0x80000000; 58: RegOpenKeyEx
UIntPtr hKey, string lpSubKey, uint ulOptions, 59: RegQueryValueEx
static extern int RegQueryValueEx( UIntPtr hkey, String lpValueName, IntPtr lpReserved, ref KeyType lpType, StringBuilder lpData, ref uint lpcbData );
Cut off search results after 60. Please refine your search. |