2.10  WD_CardUnregister

PURPOSE
• Un-registers a device and frees the resources allocated to it.
PROTOTYPE
DWORD WD_CardUnregister(
    HANDLE hWD,
    WD_CARD_REGISTER *pCardReg);
PARAMETERS
NameTypeInput/Output
hWDHANDLEInput
pCardRegWD_CARD_REGISTER* 
• CardWD_CARDN/A
• fCheckLockOnlyDWORDN/A
• hCardDWORDInput
• dwOptionsDWORDN/A
• cNameCHAR[32]N/A
• cDescriptionCHAR[100]N/A
DESCRIPTION
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open [5.2]
pCardReg Pointer to a card registration information structure
• hCard Handle to the card to un-register, as received from WD_CardRegister [2.8].
RETURN VALUE
Returns WD_STATUS_SUCCESS(0) on success, or an appropriate error code otherwise [A].
EXAMPLE
WD_CardUnregister(hWD, &cardReg);