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 "DIFxAPI" in [All]

Constants

.
Summary
Main DIFxAPI constants

Structures

.

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

Enums

.
Summary
A DIFXAPI_LOG-typed enumerator that indicates the event type.
.

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

.
Documentation
[DIFXAPI_LOG] on MSDN

difxapi

9: !!!
10: !!
.
Summary
.

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)

.

DIFXAPI_LOG

.

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

.
Summary
.

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)

.

DIFXAPI_LOG

.

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

.
Documentation
[DIFXAPILOGCALLBACK] on MSDN
.
Summary
The DIFXAPISetLogCallback function registers a caller-supplied callback function that DIFxAPI calls to log information about events that occur during DIFxAPI operations.
.

[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

.

DIFXAPILOGCALLBACK

.

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)

.
Documentation
[DIFXAPISetLogCallback] on MSDN
.

[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.

.

[DllImport("difxapi.dll", SetLastError=true)]

.

Declare Function DriverStore Lib "difxapi.dll" (TODO) As TODO

21: lorem2
.
Summary
The SetDifxLogCallback function registers a caller-supplied callback function that DIFxAPI calls to log information about events that occur during DIFxAPI operations.
.

[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.

.
Namespace
difxapi
.
Description
difxapi.dll
.
Title
difxapi.dll

 
Access PInvoke.net directly from VS: