Desktop Functions: Smart Device Functions:
|
Search Results for "IntPtr" in [All]msi
static extern uint MsiCloseHandle(IntPtr hAny);
static extern IntPtr MsiCreateRecord(uint cParams);
Declare Function MsiCreateRecord Lib "msi.dll" (cParams As Integer) As IntPtr
static extern int MsiDatabaseCommit(IntPtr hDatabase);
static extern int MsiDatabaseOpenView(IntPtr hDatabase, [MarshalAs(UnmanagedType.LPWStr)] string szQuery, out IntPtr phView); 5: MsiDoAction
static extern int MsiDoAction(IntPtr hInstall, string szAction);
static extern MSICONDITION MsiEvaluateCondition(IntPtr hInstall, string szCondition);
static extern int MsiFormatRecord(IntPtr hInstall, IntPtr hRecord,
static extern short MsiGetLanguage(IntPtr hInstall);
static extern IntPtr MsiGetLastErrorRecord();
static extern int MsiGetProductProperty(IntPtr hProduct, string szProperty, StringBuilder lpValueBuf, ref uint pcchValueBuf); 11: MsiGetSourcePath
static extern int MsiGetSourcePath(IntPtr hInstall, string szFolder, 12: MsiGetTargetPath
static extern int MsiGetTargetPath(IntPtr hInstall, string szFolder, 13: MsiOpenDatabase
static extern uint MsiOpenDatabase(string szDatabasePath, IntPtr phPersist, out IntPtr phDatabase); The documentation specifies a string for the persist parameter, but any calls to MsiDatabaseCommit are ignored unless this call is given an IntPtr with the desired open mode, e.g. (IntPtr)2. 14: MsiOpenProduct
static extern int MsiOpenProduct(string szProduct, out IntPtr hProduct);
static extern int MsiRecordClearData(IntPtr hRecord);
static extern int MsiRecordDataSize(IntPtr hRecord, int iField);
static extern int MsiRecordGetFieldCount(IntPtr hRecord);
static extern int MsiRecordGetInteger(IntPtr hRecord, int iField);
static extern int MsiRecordGetString(IntPtr hRecord, int iField,
private static string GetString(IntPtr hRecord, int field, int length) 20: MsiRecordIsNull
static extern bool MsiRecordIsNull(IntPtr hRecord, uint iField);
static extern uint MsiRecordReadStream(IntPtr hRecord, uint iField,
static extern int MsiRecordSetInteger(IntPtr hRecord, int iField, int iValue);
static extern int MsiRecordSetStream(IntPtr hRecord, int iField, string szFilePath);
static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue);
static extern int MsiOpenDatabase(string szDatabasePath, IntPtr phPersist, out IntPtr phDatabase);
static extern IntPtr MsiCreateRecord(uint cParams);
static extern int MsiCloseHandle(IntPtr hAny);
static extern int MsiDatabaseOpenViewW(IntPtr hDatabase, [MarshalAs(UnmanagedType.LPWStr)] string szQuery, out IntPtr phView);
static extern int MsiViewExecute(IntPtr hView, IntPtr hRecord);
static extern int MsiDatabaseCommit(IntPtr hDatabase);
static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue);
static extern int MsiViewClose(IntPtr viewhandle);
IntPtr msiHandle = IntPtr.Zero;
IntPtr msiRecord = IntPtr.Zero;
IntPtr msiView = IntPtr.Zero;
IntPtr persist = new IntPtr(iOpenMode);
if (msiHandle == IntPtr.Zero)
if (msiRecord != IntPtr.Zero)
if (msiView != IntPtr.Zero)
if (msiHandle != IntPtr.Zero) 25: MsiSetExternalUI
public static extern InstallUIHandler MsiSetExternalUI(InstallUIHandler handler, int messageFilter, IntPtr context);
public delegate IntPtr InstallUIHandler(IntPtr context, uint messageType, string message);
MsiSetExternalUI(new InstallUIHandler(MyInstallUIHandler), 32735, (IntPtr)0);
static extern int MsiSetInstallLevel(IntPtr hInstall, int iInstallLevel); 27: MsiSetInternalUI
static extern int MsiSetInternalUI(int dwUILevel, ref IntPtr phWnd);
static extern int MsiSetInternalUI(INSTALLUILEVEL dwUILevel, ref IntPtr phWnd);
Private Function MsiSetInternalUI(dwUILevel As INSTALLUILEVEL, ByRef phWnd As IntPtr) As Integer
IntPtr hwnd = IntPtr.Zero; 28: MsiSetProperty
static extern int MsiSetProperty(IntPtr hInstall, string szName, string szValue); 29: MsiSetTargetPath
static extern int MsiSetTargetPath(IntPtr hInstall, string szFolder, string szFolderPath); 30: MsiViewClose
static extern int MsiViewClose(IntPtr viewhandle); 31: MsiViewExecute
static extern int MsiViewExecute(IntPtr hView, IntPtr hRecord); 32: MsiViewFetch
public static extern uint MsiViewFetch(IntPtr hView, out IntPtr hRecord);
static extern uint MsiViewGetColumnInfo(IntPtr hView, int eColumnInfo, out IntPtr hRecord); ole32
[MarshalAs(UnmanagedType.IUnknown)] object pUnk, IntPtr lpvReserved); 35: CoCreateInstance
IntPtr pServerInfo,
IntPtr pServerInfo,
static extern void CoDisableCallCancellation(IntPtr pvReserved);
static extern void CoEnableCallCancellation(IntPtr pvReserved); 39: CoGetClassObject
IntPtr pServerInfo,
ByVal pServerInfo As IntPtr, _
static extern int CoGetInstanceFromFile(IntPtr pServerInfo, [In] ref Guid 41: CoInitialize
public static extern int CoInitializeSecurity( IntPtr pVoid, int
cAuthSvc,IntPtr asAuthSvc, IntPtr pReserved1, RpcAuthnLevel level,
RpcImpLevel impers,IntPtr pAuthList, EoAuthnCap dwCapabilities, IntPtr
Declare Function CoInitializeSecurity Lib "ole32.dll" (pVoid As IntPtr, _
pReserved1 As IntPtr, dwAuthnLevel As Integer, dwImpLevel As Integer, _
pAuthList As IntPtr, dwCapabilities As Integer, pReserved3 As IntPtr) As Integer
CoInitializeSecurity( IntPtr.Zero, -1, IntPtr.Zero,
IntPtr.Zero,RpcAuthnLevel.None ,
RpcImpLevel.Impersonate,IntPtr.Zero, EoAuthnCap.None, IntPtr.Zero ); 42: CoInitializeEx
[In, Optional] IntPtr pvReserved,
public static extern int CoInitializeSecurity( IntPtr pVoid, int
cAuthSvc,IntPtr asAuthSvc, IntPtr pReserved1, RpcAuthnLevel level,
RpcImpLevel impers,IntPtr pAuthList, EoAuthnCap dwCapabilities, IntPtr
Declare Function CoInitializeSecurity Lib "ole32.dll" (pVoid As IntPtr, _
pReserved1 As IntPtr, dwAuthnLevel As Integer, dwImpLevel As Integer, _
pAuthList As IntPtr, dwCapabilities As Integer, pReserved3 As IntPtr) As Integer
CoInitializeSecurity( IntPtr.Zero, -1, IntPtr.Zero,
IntPtr.Zero,RpcAuthnLevel.None ,
RpcImpLevel.Impersonate,IntPtr.Zero, EoAuthnCap.None, IntPtr.Zero );
IntPtr pvDestContext, MSHLFLAGS mshlflags);
static extern int CoQueryClientBlanket(out IntPtr pAuthnSvc, out IntPtr pAuthzSvc,
[MarshalAs(UnmanagedType.LPWStr)] out StringBuilder pServerPrincName, out IntPtr
pAuthnLevel, out IntPtr pImpLevel, out IntPtr pPrivs, out IntPtr pCapabilities);
System.IntPtr pAthnSvc = new IntPtr();
System.IntPtr pAthzSvc = new IntPtr();
System.IntPtr pAuthnLevel = new IntPtr();
System.IntPtr pImpLevel = new IntPtr();
System.IntPtr pPrivs = new IntPtr();
System.IntPtr pCaps = new IntPtr(4);
uint dwImpLevel, IntPtr pAuthInfo, uint dwCapabilities); 47: CoTaskMemFree
static extern void CoTaskMemFree(IntPtr pv);
uint cHandles, IntPtr [] pHandles, out uint lpdwindex);
System.IntPtr[] waitHandles = { event.SafeWaitHandle.DangerousGetHandle() };
public extern static int CreateILockBytesOnHGlobal(IntPtr hGlobal, [MarshalAs(UnmanagedType.Bool)] bool fDeleteOnRelease, out ILockBytes ppLkbyt);
static extern int CreateILockBytesOnHGlobal(IntPtr /* HGLOBAL */ hGlobal, bool fDeleteOnRelease, [MarshalAs(UnmanagedType.Interface)]out object /* ILockBytes** */ ppLkbyt);
Public Shared Function CreateILockBytesOnHGlobal(ByVal hGlobal As IntPtr, _ hr = Win32.CreateILockBytesOnHGlobal(IntPtr.Zero, True, lockbytes)
static extern int CreateStreamOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease,
Declare Function CreateStreamOnHGlobal Lib "ole32" (ByVal hGlobal As IntPtr, ByVal fDeleteOnRelease As Boolean, ByRef ppstm As UCOMIStream) As Long
extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);
public extern static void GetHGlobalFromStream(IStream stm, ref IntPtr hGlobal);
IntPtr pIPStream = IntPtr.Zero;
IntPtr hGlobalMemHandle = (IntPtr)null;
IntPtr pIUnk = IntPtr.Zero;
if (pIUnk == IntPtr.Zero)
IntPtr nativePtr = Marshal.AllocHGlobal(SizeOfIstream); //buffer.Length); // allocate space on the native heap
static extern int GetHGlobalFromILockBytes(ILockBytes pLkbyt, out IntPtr phglobal);
static extern int GetHGlobalFromILockBytes([MarshalAs(UnmanagedType.Interface)] object /* ILockBytes* */pLkbyt, out IntPtr /* HGLOBAL* */ phglobal); 52: OleCreate
static extern void OleCreatePropertyFrame(IntPtr hwndOwner, int x, int y,
(ByVal hwndOwner As IntPtr, _
ByVal pvReserved As IntPtr) As Integer
if( cauuid.pElems != IntPtr.Zero )
static extern int OleCreatePropertyFrame(IntPtr hwndOwner, 7/6/2012 Dan Woerner : Changed olepro32.dll to oleaut32.dll because olepro32 doesn't work for x64, also changed the uint/UINT32/(and IntPtr reserved) to int because they are easier to deal with
static extern void OleCreatePropertyFrame(IntPtr hwndOwner, uint x, uint y,
uint lcid, UInt32 dwReserved, IntPtr lpvReserved);
(ByVal hwndOwner As IntPtr, _
ByVal pvReserved As IntPtr) As Integer 54: OleDraw
uint dwAspect, IntPtr hdcDraw, [In] ref RECT lprcBounds);
public static extern int OleDraw(IntPtr pUnk, int dwAspect, IntPtr hdcDraw, ref Rectangle lprcBounds);
IntPtr pUnk = Marshal.GetIUnknownForObject(c.GetOcx());
IntPtr hdc = graphics.GetHdc(); 55: OleLoad
pStm.Read(data, sizeof(ushort), IntPtr.Zero);
pStm.Read(data, sizeof(ushort), IntPtr.Zero);
static extern int OleRegGetUserType([In] ref Guid clsid, uint dwFormOfType, out IntPtr pszBuff);
IntPtr pszBuf; 58: OleRun IntPtr pUnknown = Marshal.GetIUnknownForObject(fooObject); 59: OleSave
extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);
IntPtr ptrIStream = IntPtr.Zero;
pOutStm.Seek(0, 0, IntPtr.Zero);// Get size of the stream and read its contents to a byte array.
IntPtr pRead = Marshal.AllocHGlobal(sizeOfInt32); 60: OleSaveToStream
extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);
IntPtr ptrIStream = IntPtr.Zero;
pOutStm.Seek(0, 0, IntPtr.Zero);// Get size of the stream and read its contents to a byte array.
IntPtr pRead = Marshal.AllocHGlobal(sizeOfInt32); Cut off search results after 60. Please refine your search. |