RtQuerySharedMemory
RtQuerySharedMemory returns shared memory information.
Syntax
BOOL RtQuerySharedMemory(
[in] HANDLE hHandle,
[out] PSHARED_MEMORY_INFO pSharedMemoryInfo
);
Parameters
[in] hHandle
A handle to the shared memory object that you want to get information on.
[out] pSharedMemoryInfo
A pointer to a SHARED_MEMORY_INFO structure that receives the shared memory information.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
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 | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtApi.h |
RtApi.lib (Windows), Startup.lib (RTSS) |
See Also: