Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "UintPtr" in [All]

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,

misc

2: 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.

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.

.

     internal UIntPtr dwAddress;

.

     internal UIntPtr th32HeapID;

.

    public UIntPtr dwExtraInfo;

.

        Public dwExtraInfo As UIntPtr

.

    public dwExtraInfo As UIntPtr

.

        internal UIntPtr dwExtraInfo;

.

    public UIntPtr dwMenuData;

.

        internal UIntPtr dwExtraInfo;

.

    public UIntPtr dwExtraInfo;

.

    Public dwExtraInfo As UIntPtr

.

    public UIntPtr Internal;

.

    public UIntPtr InternalHigh;  

.

  public UIntPtr UniqueProcessId;

.

    private UIntPtr  reserved;

13: VALENT
.

        internal UIntPtr ve_valueptr;

.

  Dim reserved As UIntPtr

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;

.

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,

.

   UIntPtr dwRegionSize, out IntPtr lpAddresses, ref UIntPtr lpdwCount,

.

static extern IntPtr GlobalAlloc(uint uFlags, UIntPtr dwBytes);

.

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

.

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

.

static extern IntPtr LocalAlloc(uint uFlags, UIntPtr uBytes);

.

    IntPtr memPtr = LocalAlloc(LocalMemoryFlags.LPTR, new UIntPtr((uint)size));

.

   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;

.

   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.

.

   UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect);

setupapi

.

            public UIntPtr     Reserved;

msvcrt

40: memcmp
.

static extern int memcmp(byte[] b1, byte[] b2, UIntPtr count);

.
WARNING
.

   private static extern int memcmp(byte[] b1, byte[] b2, UIntPtr count);

.

      return memcmp(b1, b2, new UIntPtr((uint)b1.Length)) == 0;

41: memcpy
.

public static extern IntPtr memcpy(IntPtr dest, IntPtr src, UIntPtr count);

.

        memcpy(dstData.Scan0, srcData.Scan0, new UIntPtr((uint)height * (uint)srcData.Stride));

.

static extern IntPtr memmove(IntPtr dest, IntPtr src, UIntPtr count);

fbwflib

.

static extern UIntPtr FbwfIsFilterEnabled(

.

static extern UIntPtr FbwfIsFilterEnabled(

psapi

.

    [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.FunctionPtr)] [In][Out] UIntPtr[] ddAddresses,

.

        UIntPtr CommitTotal;

.

        UIntPtr CommitLimit;

.

        UIntPtr CommitPeak;

.

        UIntPtr PhysicalTotal;

.

        UIntPtr PhysicalAvailable;

.

        UIntPtr SystemCache;

.

        UIntPtr KernelTotal;

.

        UIntPtr KernelPaged;

.

        UIntPtr KernelNonpaged;

.

        UIntPtr PageSize;

.

        public UIntPtr  CommitTotal;

.

        public UIntPtr CommitLimit;

.

        public UIntPtr CommitPeak;

.

        public UIntPtr PhysicalTotal;

.

        public UIntPtr PhysicalAvailable;

.

        public UIntPtr SystemCache;

.

        public UIntPtr KernelTotal;

.

        public UIntPtr KernelPaged;

.

        public UIntPtr KernelNonpaged;

.

        public UIntPtr PageSize;

coredll

.

   UIntPtr hKey, string lpSubKey, uint dwReserved, string lpClass,

.

public UIntPtr HKEY_CLASSES_ROOT = (UIntPtr)0x80000000;

.

   UIntPtr hKey, string lpSubKey, uint ulOptions,

.

static extern int RegQueryValueEx( UIntPtr hkey, String lpValueName, IntPtr lpReserved, ref KeyType lpType, StringBuilder lpData, ref uint lpcbData );

.
HANDLE (and all other handle types, such as HFONT and HMENU) IntPtr, UintPtr, or HandleRef
.
LPARAM IntPtr, UintPtr, or Object
.
LPVOID IntPtr, UintPtr, or Object
.
WPARAM IntPtr, UintPtr, or Object

advapi32

.

  out UIntPtr   SecurityDescriptorSize

.

    UIntPtr hKey);

.

Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As UIntPtr) As Integer

.

    UIntPtr hKey,

.

Declare Function RegDeleteKeyEx Lib "advapi32.dll" (hKey As UIntPtr, lpSubKey As String, samDesired As UInteger, Reserved As UInteger) As Integer

.

    UIntPtr hKey,

.

     UIntPtr hKey,

.

extern private static int RegEnumKeyEx(UIntPtr hkey,

.

    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)

.

    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)

.

    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)

.

    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)

.

     UIntPtr hKey,

.

        UIntPtr hKey = UIntPtr.Zero;

.

        if (hKey != UIntPtr.Zero)

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: