CacheIoControl (Windows CE 5.0)

Send Feedback

This function sends a custom IOCTL to the cache.

BOOLCacheIoControl(DWORDdwCacheId, DWORDdwIoControlCode,LPVOID lpInbuf,DWORD nInBufSize,  LPVOID lpOutBuf,DWORD nOutBufSize,LPDWORD lpBytesReturned,LPOVERLAPPED lpOverlapped);

Parameters

  • dwCacheId
    [in] Cache ID value returned by CreateCache.

  • dwIoControlCode
    [in] IOCTL for the operation.

  • lpInBuf
    [in] Long pointer to a buffer that contains the data required to perform the operation.

    Set to NULL if the dwIoControlCode parameter specifies an operation that does not require input data.

  • nInBufSize
    [in] Size, in bytes, of the buffer pointed to by lpInBuf.

  • lpOutBuf
    [out] Long pointer to a buffer that receives the output data for the operation.

    Set to NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.

  • nOutBufSize
    [out] Size, in bytes, of the buffer pointed to by lpOutBuf.

  • lpBytesReturned
    [out] Long pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuf.

    Even when an operation produces no output data, and lpOutBuf is NULL, this function uses the variable pointed to by lpBytesReturned.

    After such an operation, the value of the variable has no meaning.

  • lpOverlapped
    Ignored; Set to NULL.

Return Values

Nonzero indicates success.

Zero indicates failure.

For extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Fsdmgr.h.
Link Library: Fsdmgr.lib.

See Also

Cache Manager Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.