The SmartcardDeleteLink function deletes the link that was created with SmartcardCreateLink (WDM).
NTSTATUS SmartcardDeleteLink( IN
PUNICODE_STRINGLinkName
);
Use this function to remove the link to the driver from the registry when a dynamically loaded driver unloads.
For information on the SmartcardDeleteLink function for VxD drivers, see SmartcardDeleteLink (VxD).