Desktop Functions: Smart Device Functions:
|
Search Results for "IntPtr" in [All]Structures1: ACTCTX
public IntPtr hModule;
Public hModule As IntPtr 2: addrinfo
//internal IntPtr ai_canonname;
//internal IntPtr ai_addr;
//internal IntPtr ai_next;
if ((IntPtr) ai_next == IntPtr.Zero)
if ((IntPtr) (info->ai_next) == IntPtr.Zero)
(IntPtr) ai_addr,
(IntPtr) ai_addr,
internal static addrinfo FromPtr(IntPtr handle) 3: BLOB
public IntPtr pBlobData;
internal IntPtr hRadio;
private IntPtr prcExclude;
private IntPtr pBlendFunction;
prcExclude = pBlendFunction = IntPtr.Zero;
if (prcExclude == IntPtr.Zero)
if (pBlendFunction == IntPtr.Zero)
if (prcExclude != IntPtr.Zero) Marshal.FreeHGlobal(prcExclude);
if (pBlendFunction != IntPtr.Zero) Marshal.FreeHGlobal(pBlendFunction); 6: BROWSEINFO
public IntPtr hwndOwner;
public IntPtr pidlRoot;
public IntPtr pszDisplayName;
public IntPtr lParam;
Public hwndOwner As IntPtr
Public pidlRoot As IntPtr
Public lParam As IntPtr 7: BSMINFO
public IntPtr hdesk;
public IntPtr hwnd; 8: CAUUID
public IntPtr pElems; 9: CERT_CONTEXT
public IntPtr pbCertEncoded;
public IntPtr pCertInfo;
public IntPtr hCertStore; 10: CERT_CONTEXT
public IntPtr pCertInfo;
public IntPtr hCertStore; 11: CERT_INFO
public IntPtr rgExtension; 12: CERT_NAME_BLOB
public IntPtr pbData;
public IntPtr pIssuerCert;
public IntPtr rgCertStore;
public IntPtr hCrlStore;
public IntPtr pftTimeToUse;
public IntPtr pftCurrentTime;
public IntPtr pCrlInfo;
public IntPtr hwnd; // might be NULL (indicating no owner window)
public IntPtr hIcon; // Icon to use for any application activated by the command. If the fMask member does not specify CMIC_MASK_ICON, this member is ignored. 16: COMBOBOXINFO
public IntPtr hwndCombo;
public IntPtr hwndEdit;
public IntPtr hwndList; 17: COPYDATASTRUCT
public IntPtr dwData; // Any value the sender chooses. Perhaps its main window handle?
public IntPtr lpData; // The address of the message.
Public dwData As IntPtr
Public lpData As IntPtr
public IntPtr dwData;
public IntPtr lpData;
public static IntPtr IntPtrAlloc<T>(T param)
IntPtr retval = Marshal.AllocHGlobal(Marshal.SizeOf(param));
public static void IntPtrFree(ref IntPtr preAllocated)
if (IntPtr.Zero == preAllocated)
preAllocated = IntPtr.Zero;
IntPtr buffer = IntPtrAlloc(txStruct);
copyData.dwData = IntPtr.Zero;
IntPtr copyDataBuff = IntPtrAlloc(copyData);
SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, copyDataBuff);
IntPtrFree(ref copyDataBuff);
IntPtrFree(ref buffer);
public static extern bool CreateProcessWithTokenW(IntPtr hToken, LogonFlags dwLogonFlags, string lpApplicationName, string lpCommandLine, CreationFlags dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, [In] ref STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation);
Public Shared Function CreateProcessWithTokenW(hToken As IntPtr, dwLogonFlags As Integer, lpApplicationName As String, lpCommandLine As String, dwCreationFlags As Integer, lpEnvironment As IntPtr, lpCurrentDirectory As IntPtr, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As Boolean 19: CREATESTRUCT
public IntPtr lpCreateParams;
public IntPtr hInstance;
public IntPtr hMenu;
public IntPtr hwndParent;
public IntPtr lpszName;
public IntPtr lpszClass;
Public lpCreateParams As IntPtr
Public hInstance As IntPtr
Public hMenu As IntPtr
Public hwndParent As IntPtr
Public lpszName As IntPtr
Public lpszClass As IntPtr
public delegate uint PTHREAD_START_ROUTINE( IntPtr lpThreadParameter );
public IntPtr hFile;
public IntPtr hProcess;
public IntPtr hThread;
public IntPtr lpBaseOfImage;
public IntPtr lpThreadLocalBase;
public IntPtr lpImageName;
public delegate uint PTHREAD_START_ROUTINE( IntPtr lpThreadParameter );
public IntPtr hThread;
public IntPtr lpThreadLocalBase; 22: CREDUI_INFO
public IntPtr hwndParent;
public IntPtr hbmBanner;
Public hwndParent As IntPtr
Public hbmBanner As IntPtr 23: CRL_CONTEXT
public IntPtr pCrlInfo;
public IntPtr hCertStore;
public IntPtr hwndApp;
Public hwndApp As IntPtr
public IntPtr pbData; 26: CRYPT_BIT_BLOB
public IntPtr pbData;
public IntPtr rghCertStore;
public IntPtr pvEncryptionAuxInfo;
public IntPtr pbData;
Public pbData As IntPtr 31: CRYPT_OBJID_BLOB
public IntPtr pbData;
public IntPtr pSigningCert;
public IntPtr pvHashAuxInfo;
public IntPtr rgpMsgCert;
public IntPtr rgpMsgCrl;
public IntPtr rgAuthAttr;
public IntPtr rgUnauthAttr;
public IntPtr pvHashEncryptionAuxInfo;
public IntPtr pfnUnfortunatellyUnsupported;
public IntPtr pvUnfortunatellyUnsupported;
Public pfnUnfortunatellyUnsupported As IntPtr
Public pvUnfortunatellyUnsupported As IntPtr 34: CTL_USAGE
public IntPtr rgpszUsageIdentifier; 35: CWPRETSTRUCT
IntPtr lResult;
IntPtr lParam;
IntPtr wParam;
IntPtr hWnd; 36: CWPSTRUCT
public IntPtr lparam;
public IntPtr wparam;
public IntPtr hwnd;
Public lParam As IntPtr
Public wParam As IntPtr
Public hWnd As IntPtr 37: DATA_BLOB
public IntPtr pbData;
Public pbData As IntPtr 38: DEBUGHOOKINFO
IntPtr lParam;
IntPtr wParam; 39: DELTA_INPUT
IntPtr lpStart;
IntPtr uSize; 40: DEVMODE
public static extern IntPtr GlobalSize(IntPtr handle); 41: DFS_INFO_3
public IntPtr Storage; // An array (of NumberOfStorages elements) of storage-specific information. 42: DFS_INFO_4
public IntPtr Storage; // An array (of NumberOfStorages elements) of storage-specific information. 43: DHCP_BINARY_DATA
public IntPtr Data;
Dim Data As IntPtr 'byte array 44: DHCP_CLIENT_INFO
public IntPtr Clients; //List of pointers
Dim Clients As IntPtr
Dim Clients As IntPtr 46: DHCP_IP_ARRAY
IntPtr Elements;
Dim Elements As IntPtr 47: DNS_RPC_RECORD
Marshal.Copy(new IntPtr(handle.AddrOfPinnedObject().ToInt64() + Marshal.SizeOf(h)), r.Buffer, 0, h.wDataLength); 48: DOT11_BSSID_LIST
IntPtr BSSIDs;
Public BSSIDs As IntPtr 49: DTTOPTS
delegate int DTT_CALLBACK_PROC(IntPtr hdc, [MarshalAs(UnmanagedType.LPWStr)] string text, int textLen, ref RECT rc, int flags, IntPtr lParam);
public IntPtr lParam;
public delegate int DrawThemeTextCallback(IntPtr hdc, [MarshalAs(UnmanagedType.LPWStr)] string text, int textLen, ref RECT rc, int flags, IntPtr lParam);
private IntPtr lParam;
public IntPtr LParam 50: DWM_BLURBEHIND
public IntPtr hRgnBlur;
hRgnBlur = IntPtr.Zero;
Public hRgnBlur As IntPtr 51: EVENTMSG
public IntPtr hwnd;
Public hwnd As IntPtr 52: EXCEPTION_RECORD
public IntPtr ExceptionRecord;
public IntPtr ExceptionAddress; 53: EXPLICIT_ACCESS [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 0)] //Platform independent 32 & 64 bit - use Pack = 0 for both platforms. IntPtr can also be used.
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. 54: fd_set
public IntPtr[] fd_array;
public static fd_set Create(IntPtr socket)
fd_array = new IntPtr[Size] { socket }
public IntPtr RootDirectory; 56: FORMATETC
public IntPtr ptd;
Public ptd As IntPtr
public IntPtr pNext; // point to a GPO
public IntPtr pPrev; 58: GSVersion
public IntPtr product;
public IntPtr copyright;
Public product As IntPtr
Public copyright As IntPtr Using IntPtr instead allows the struct to be passed correctly but requires a manual conversion. One way to accomplish this transparently is by making those two fields private and adding the following properties to the struct: 59: GUITHREADINFO
public IntPtr hwndActive;
public IntPtr hwndFocus;
public IntPtr hwndCapture;
public IntPtr hwndMenuOwner;
public IntPtr hwndMoveSize;
public IntPtr hwndCaret;
Public hwndActive As IntPtr
Public hwndFocus As IntPtr
Public hwndCapture As IntPtr
Public hwndMenuOwner As IntPtr
Public hwndMoveSize As IntPtr
Public hwndCaret As IntPtr 60: HEAPENTRY32
internal IntPtr hHandle;
internal UIntPtr dwAddress;
internal UIntPtr th32HeapID; Cut off search results after 60. Please refine your search. |