SmartcardDeleteLink (Windows Embedded CE 6.0)
1/6/2010
The SmartcardDeleteLink function deletes links that were created with SmartcardCreateLink.
Syntax
NTSTATUS SmartcardDeleteLink(
LPCWSTR pszFriendlyName
);
Parameters
- pszFriendlyName
[in] Points to the name to be removed from the registry.
Return Value
This function returns an NTSTATUS value. Possible values are the following.
Value | Description |
---|---|
STATUS_SUCCESS |
A protocol was successfully selected. |
STATUS_NO_MEDIA |
No card is in the reader. |
STATUS_IO_TIMEOUT |
The request has timed out. |
STATUS_BUFFER_TOO_SMALL |
The user buffer is not large enough to hold a ULONG. |
STATUS_INVALID_DEVICE_STATE |
The reader is not in the correct state to select a protocol. This is the case when a card is inserted, but not reset. |
STATUS_INVALID_DEVICE_REQUEST |
The mask contains an unknown protocol. |
Remarks
Use this function to remove the link to the driver from the registry when a dynamically loaded driver unloads.
Requirements
Header | smclib.h |
Windows Embedded CE | Windows CE 3.0 and later |