SCardFreeMemory function (winscard.h)

The SCardFreeMemory function releases memory that has been returned from the resource manager using the SCARD_AUTOALLOCATE length designator.

Syntax

LONG SCardFreeMemory(
  [in] SCARDCONTEXT hContext,
  [in] LPCVOID      pvMem
);

Parameters

[in] hContext

Handle that identifies the resource manager context returned from SCardEstablishContext, or NULL if the creating function also specified NULL for its hContext parameter. For more information, see Smart Card Database Query Functions.

[in] pvMem

Memory block to be released.

Return value

This function returns different values depending on whether it succeeds or fails.

Return code Description
Success
SCARD_S_SUCCESS.
Failure
An error code. For more information, see Smart Card Return Values.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winscard.h
Library Winscard.lib
DLL Winscard.dll

See also

SCardEstablishContext

SCardGetProviderId

SCardListCards

SCardListInterfaces

SCardListReaderGroups

SCardListReaders