Desktop Functions: Smart Device Functions:
|
Search Results for "DIFxAPI" in [All]Constants2: DIFxAPI StructurespApplicationId: a string that supplies a vendor-defined token. DIFxAPI uses this token to associate an application with the driver package. This token should be a unique application-specific value, such as a GUID. DIFxAPI does not enforce uniqueness among the tokens. If a caller supplies an INSTALLERINFO structure that specifies an association between an application and a driver package, this member must not be NULL or supply an empty string. pDisplayName: a string that supplies the display name of an application that is associated with a driver package. DIFxAPI requires an application display name to inform a user which application is associated with a driver package. For example, if a user clicks on the Remove button of an Add or Remove Programs entry that was created by the DIFx tools to represent a driver package, the resulting user dialog box will list the display names of the applications that are associated with the driver package. If a caller supplies an INSTALLERINFO structure that specifies an association between an application and a driver package, this member must not be NULL or supply an empty string. Enums4: DIFXAPI_LOG
public enum DIFXAPI_LOG
DIFXAPI_SUCCESS = 0, // Successes
DIFXAPI_INFO = 1, // Basic logging information that should always be shown
DIFXAPI_WARNING = 2, // Warnings
DIFXAPI_ERROR = 3 // Errors
Public Enum DIFXAPI_LOG
DIFXAPI_SUCCESS = 0 ' Successes
DIFXAPI_INFO = 1 ' Basic logging information that should always be shown
DIFXAPI_WARNING = 2 ' Warnings
DIFXAPI_ERROR = 3 ' Errors difxapi8: !!!!!!!!!!! 9: !!! 10: !! 11: DIFLOGCALLBACK
public delegate void DIFLOGCALLBACK(DIFXAPI_LOG EventType, Int32 ErrorCode, [MarshalAs(UnmanagedType.LPTStr)] string EventDescription, IntPtr CallbackContext);
Public Delegate Sub DIFLOGCALLBACK(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, <MarshalAs(UnmanagedType.LPTStr)> ByVal EventDescription As String, ByVal CallbackContext As IntPtr) To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
public static void DIFLogCallbackFunc(DIFXAPI_LOG EventType, Int32 ErrorCode, string EventDescription, IntPtr CallbackContext)
case DIFXAPI_LOG.DIFXAPI_SUCCESS:
case DIFXAPI_LOG.DIFXAPI_INFO:
case DIFXAPI_LOG.DIFXAPI_WARNING:
case DIFXAPI_LOG.DIFXAPI_ERROR:
Public Sub DIFLogCallbackFunc(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, ByVal EventDescription As String, ByVal CallbackContext As IntPtr)
Case DIFXAPI_LOG.DIFXAPI_SUCCESS
Case DIFXAPI_LOG.DIFXAPI_INFO
Case DIFXAPI_LOG.DIFXAPI_WARNING
Case DIFXAPI_LOG.DIFXAPI_ERROR
public delegate void DIFXAPILOGCALLBACK(DIFXAPI_LOG EventType, Int32 ErrorCode, [MarshalAs(UnmanagedType.LPTStr)] string EventDescription, IntPtr CallbackContext);
Public Delegate Sub DIFXAPILOGCALLBACK(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, <MarshalAs(UnmanagedType.LPTStr)> ByVal EventDescription As String, ByVal CallbackContext As IntPtr) To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
public static void DIFxAPILogCallbackFunc(DIFXAPI_LOG EventType, Int32 ErrorCode, string EventDescription, IntPtr CallbackContext)
case DIFXAPI_LOG.DIFXAPI_SUCCESS:
case DIFXAPI_LOG.DIFXAPI_INFO:
case DIFXAPI_LOG.DIFXAPI_WARNING:
case DIFXAPI_LOG.DIFXAPI_ERROR:
Public Sub DIFxAPILogCallbackFunc(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, ByVal EventDescription As String, ByVal CallbackContext As IntPtr)
Case DIFXAPI_LOG.DIFXAPI_SUCCESS
Case DIFXAPI_LOG.DIFXAPI_INFO
Case DIFXAPI_LOG.DIFXAPI_WARNING
Case DIFXAPI_LOG.DIFXAPI_ERROR
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern Int32 DIFXAPISetLogCallback(DIFXAPILOGCALLBACK LogCallback, IntPtr CallbackContext);
Public Declare Auto Function DIFXAPISetLogCallback Lib "DIFxAPI.dll" (ByVal LogCallback As DIFXAPILOGCALLBACK, ByVal CallbackContext As IntPtr) As Int32 To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
DIFXAPISetLogCallback(new DIFXAPILOGCALLBACK(DIFxAPILogCallbackFunc), IntPtr.Zero)
DIFXAPISetLogCallback(New DIFXAPILOGCALLBACK(AddressOf DIFxAPILogCallbackFunc), IntPtr.Zero)
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
Public Declare Auto Function DriverPackageGetPath Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal pDestInfPath As String, ByRef pNumOfChars As Int32) As Int32
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)] To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
Public Declare Auto Function DriverPackageInstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32, ByVal pInstallerInfo As IntPtr, ByRef pNeedReboot As Boolean) As Int32 DIFxAPI Constants - see http://www.pinvoke.net/default.aspx/Constants.DIFxAPI%20Constants To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
Public Declare Auto Function DriverPackagePreinstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32) As Int32 DIFxAPI Constants - see http://www.pinvoke.net/default.aspx/Constants.DIFxAPI%20Constants To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you.
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
Public Declare Auto Function DriverPackageUninstall Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal Flags As Int32, ByVal pInstallerInfo As IntPtr, ByRef pNeedReboot As Boolean) As Int32 DIFxAPI Constants - see http://www.pinvoke.net/default.aspx/Constants.DIFxAPI%20Constants To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you. 18: DriverStore
[DllImport("difxapi.dll", SetLastError=true)]
Declare Function DriverStore Lib "difxapi.dll" (TODO) As TODO 19: lorem10 20: lorem18 21: lorem2 22: lorem26 23: lorem35 24: lorem36
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
Public Declare Auto Function SetDifxLogCallback Lib "DIFxAPI.dll" (ByVal LogCallback As DIFLOGCALLBACK, ByVal CallbackContext As IntPtr) As Int32 To use this function you just need difxapi.dll of appropriate architecture from Windows Server 2008/Vista WDK. The DriverStore will be created automatically for you. |