Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than difxapi, prefix the name with the module name and a period.
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 Sub DIFxAPILogCallbackFunc(ByVal EventType As DIFXAPI_LOG, ByVal ErrorCode As Int32, ByVal EventDescription As String, ByVal CallbackContext As IntPtr)
Select Case EventType
Case DIFXAPI_LOG.DIFXAPI_SUCCESS
Console.WriteLine("SUCCESS: {0}. Error code: {1}", EventDescription, ErrorCode)
Exit Sub
Case DIFXAPI_LOG.DIFXAPI_INFO
Console.WriteLine("INFO: {0}. Error code: {1}", EventDescription, ErrorCode)
Exit Sub
Case DIFXAPI_LOG.DIFXAPI_WARNING
Console.WriteLine("WARNING: {0}. Error code: {1}", EventDescription, ErrorCode)
Exit Sub
Case DIFXAPI_LOG.DIFXAPI_ERROR
Console.WriteLine("ERROR: {0}. Error code: {1}", EventDescription, ErrorCode)
Exit Sub
End Select
End Sub
TODO - a short description of this collection of constants
5/15/2017 2:59:47 AM - 94.229.131.27
The DIFXAPISetLogCallback function registers a caller-supplied callback function that DIFxAPI calls to log information about events that occur during DIFxAPI operations.
TODO - a short description of this collection of constants
5/15/2017 2:59:47 AM - 94.229.131.27
TODO - a short description of this collection of constants
5/15/2017 2:59:47 AM - 94.229.131.27
A DIFXAPI_LOG-typed enumerator that indicates the event type.
4/7/2008 1:43:30 PM - anonymous
TODO - a short description
3/2/2014 11:52:51 PM - anonymous
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).