![]() | |
| This function reference is C oriented. The WinDriver .NET, Visual Basic and Delphi APIs have been implemented as closely as possible to the C APIs, therefore .NET, VB and Delphi programmers can also use this reference to better understand the WinDriver APIs for their selected development language. For the exact API implementation and usage examples for your selected language, refer to the WinDriver .NET/VB/Delphi source code. |
• Sets the name of the WinDriver kernel module, which will be used by the calling application.
WD_Open() /
WDC_DriverOpen() / WDC_xxxDeviceOpen()),
as demonstrated in the sample and generated DriverWizard WinDriver
applications, which include a call to this function with the default driver
name – windrvr6 or
WinDriver (on
Mac OS X).
WD_DriverName() with your new driver name.
WD_DriverName() function, your user-mode
driver project must be built with WD_DRIVER_NAME_CHANGE
preprocessor flag (e.g.: -DWD_DRIVER_NAME_CHANGE – for
Visual Studio and gcc).const char* DLLCALLCONV WD_DriverName(const char* sName);
| Name | Type | Input/Output |
|---|---|---|
| sName | const char* | Input |
| Name | Description |
|---|---|
| sName |
The name of the WinDriver kernel module to be used by the application. NOTE: The driver name should be indicated without the driver file's extension. For example, use windrvr6, not windrvr6.sys or windrvr6.o. |
Returns the selected driver name on success; returns NULL on failure (e.g., if the function is called twice from the same application)long.
WD_DriverName() function with
the default WinDriver kernel module name – windrvr6 or
WinDriver (on
Mac OS X) – or
refrain from calling the function altogether.