Jungo WinDriver  
Official Documentation

◆ WD_License

#define WD_License (   h,
  pLicense 
)     WD_FUNCTION(IOCTL_WD_LICENSE, h, pLicense, sizeof(WD_LICENSE), FALSE)

Transfers the license string to the WinDriver kernel module When using the high-level WDC library APIs, described in the WinDriver PCI Manual, the license registration is done via the WDC_DriverOpen() function, so you do not need to call WD_License() directly.

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open()
[in]pLicensePointer to a WinDriver license information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
Remarks
When using a registered version, this function must be called before any other WinDriver API call, apart from WD_Open(), in order to register the license from the code.
/* Use the returned handle when calling WinDriver API functions */
HANDLE WinDriverOpenAndRegister(void)
{
HANDLE hWD;
DWORD dwStatus;
hWD = WD_Open();
{
BZERO(lic);
/* Replace the following string with your license string: */
strcpy(lic.cLicense, "12345abcde12345.CompanyName");
dwStatus = WD_License(hWD, &lic);
if (dwStatus != WD_STATUS_SUCCESS)
{
WD_Close(hWD);
}
}
return hWD;
}
char *__cdecl strcpy(char *s1, const char *s2)
CHAR cLicense[WD_LICENSE_LENGTH]
Buffer with license string to put.
Definition: windrvr.h:674
#define WD_Close
Definition: wd_log.h:64
#define WD_Open
Definition: wd_log.h:65
@ WD_STATUS_SUCCESS
[0] Operation completed successfully
Definition: windrvr.h:1066
#define INVALID_HANDLE_VALUE
Definition: windrvr.h:1557
#define BZERO(buf)
Definition: windrvr.h:1553
#define WD_License(h, pLicense)
Transfers the license string to the WinDriver kernel module When using the high-level WDC library API...
Definition: windrvr.h:2538

Definition at line 2538 of file windrvr.h.