2.8.WD_CardUnregister()

Purpose

Unregisters 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 unregister, as received from WD_CardRegister()[2.6].
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise[A].

Example
WD_CardUnregister(hWD, &cardReg);