Поделиться через


CardGetFileInfo function

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

The CardGetFileInfo function, defined by a smart card module, gets the size and access permissions of a smart card file.

Syntax

DWORD WINAPI CardGetFileInfo(
  _In_    PCARD_DATA      pCardData,
  _In_    LPSTR           pszDirectoryName,
  _In_    LPSTR           pszFileName,
  _Inout_ PCARD_FILE_INFO pCardFileInfo
);

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 that contains the file. The function fails if the specified directory does not exist. Set the value of this parameter to NULL if the file is in the ROOT directory.

pszFileName [in]

A pointer to a null-terminated string that contains the name of the file. The function fails if the specified file does not exist.

pCardFileInfo [in, out]

On input, this parameter contains a pointer to a CARD_FILE_INFO structure.

On output, the CARD_FILE_INFO structure contains the size and access permissions of the file specified by the pszFileName parameter.

Return value

If the function succeeds, the function returns zero.

If the function fails, it returns a nonzero value.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Cardmod.h

See also

Microsoft Base Smart Card Cryptographic Service Provider

CARD_DATA

CARD_FILE_INFO

CardAcquireContext