The SmartcardDeleteLink function deletes the link that was created with SmartcardCreateLink (VxD).
NTSTATUS
SmartcardDeleteLink(
IN PSTR LinkName
);
Use this function to remove the link to the driver from the registry when a dynamically loaded driver unloads.
This function is not available when developing WDM drivers. For a list of the functions that can be used, see WDM Driver Functions.