CeRapiFreeBuffer

The CeRapiFreeBuffer function frees the memory on the desktop PC allocated by a call to CeFindAllDatabases, CeFindAllFiles, or CeReadRecordProps.

Syntax

HRESULT CeRapiFreeBuffer(LPVOID Buffer);

At a Glance

Header file: Rapi.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

Buffer
Pointer to the buffer to be freed.

Return Values

If the function completes successfully it returns the value SOK, otherwise it returns E_FAIL.

Remarks

Any RAPI function that allocates memory on the desktop PC on the users behalf must be freed by calling the CeRapiFreeBuffer function.

When writing applications for Windows CE versions 1.0 and 1.01, use the RapiFreeBuffer function.

For more information about using RAPI functions, see Invoking Functions from a Desktop Computer.

See Also

CeFindAllDatabases, CeFindAllFiles, CeReadRecordProps.