RtgvCloseSharedBuffer

RtgvCloseSharedBuffer closes a handle to a shared buffer.

Syntax

Copy
BOOL RtgvCloseSharedBuffer(
    [in]    HANDLE hBuffer
);

Parameters

[in] hBuffer

The handle to a shared buffer that will be closed.

Return Values

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.

Remarks

RtgvCloseSharedBuffer decreases the reference count to the shared buffer.  When the reference count is zero, the buffer is freed and can no longer be accessed.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtgvComm.h

RtgvComm.lib

See Also: