Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CardDeleteDirectory Function

This topic is not current. For the most current information about the Smart Card API, see Smart Card Minidriver Specification.

The CardDeleteDirectory function, defined by a smart card module, deletes a directory from a smart card. The directory must be empty, and the caller must have permission to delete that directory.

Syntax

DWORD WINAPI CardDeleteDirectory(
  __in  PCARD_DATA pCardData,
  __in  LPSTR pszDirectoryName
);

Parameters

pCardData [in]

A pointer to a CARD_DATA structure received from a call to the CardAcquireContext function.

pszDirectoryName [in]

A pointer to a null-terminated string that contains the name of the directory to delete.

Return Value

If the function succeeds, the function returns zero.

If the function fails, it returns a nonzero error value or one of the following possible error values.

Return code/valueDescription
SCARD_W_SECURITY_VIOLATION
2148532330 (0x8010006A)

The caller did not authenticate to the smart card before calling this function.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Cardmod.h

See Also

Microsoft Base Smart Card Cryptographic Service Provider
CARD_DATA
CardAcquireContext
CardCreateDirectory

 

 

Send comments about this topic to Microsoft

Build date: 4/19/2011

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.