RtQuerySharedMemory

RtQuerySharedMemory returns shared memory information.

Syntax

BOOL RtQuerySharedMemory(
    HANDLE hHandle,
    PSHARED_MEMORY_INFO pSharedMemoryInfo
);

Parameters

hHandle

A handle to the shared memory object that you want to get information on.

pSharedMemoryInfo

A pointer to a SHARED_MEMORY_INFO structure that receives the shared memory information.

Return Value

TRUE if the function succeeds, FALSE if the function fails. For extended error information, call GetLastError.

Possible error codes:

Code Meaning
ERROR_INVALID_HANDLE The process handle cannot be found.
ERROR_INVALID_PARAMETER The specified parameter is invalid.

Requirements

Minimum Supported Version RTX64 4.1
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also: