Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
WSD Challenger functionality has been deprecated and all WSD Challenger-related documentation will be removed in 2018.
The following code shows constant definitions and common variables that are used in the code examples in this section.
//
// WSD Challenge DLL name (including a forward path separator) and public API names
//
#define WSDCHNGR_DLL_NAME L"\\WSDCHNGR.DLL"
#define WSDCHNR_INITIALIZE "WSDCHNGRInitialize"
#define WSDCHNR_SHUTDOWN "WSDCHNGRShutdown"
#define WSDCHNR_REGISTER_DEVICE_TO_CHALLENGE "WSDCHNGRRegisterDeviceToChallenge"
//
// Function pointer types for public WSD Challenge APIs
//
typedef HRESULT (*PFN_WSDCHNR_INITIALIZE)();
typedef HRESULT (*PFN_WSDCHNR_SHUTDOWN)();
typedef HRESULT (*PFN_WSDCHNR_REGISTER_DEVICE_TO_CHALLENGE)(__in IFunctionInstance *pFunctionInstance);
//
// The instance module of the WSD Challenge DLL (WSDCHNGR.DLL)
//
HMODULE m_hChallengeDll;
//
// Function pointer for public WSD Challenge APIs that are used by this driver
//
PFN_WSDCHNR_REGISTER_DEVICE_TO_CHALLENGE m_pfnRegisterDeviceToChallenge;
PFN_WSDCHNR_INITIALIZE m_pfnInitializeChallenge;
PFN_WSDCHNR_SHUTDOWN m_pfnShutdownChallenge;