RtgvOpenSharedBuffer

RtgvOpenSharedBuffer opens a handle to a shared buffer for passing images between an RTSS application and a Windows application linked to RTAPI.

Syntax

Copy
HANDLE RtgvOpenSharedBuffer(
    [in]    PCHAR pBufferName
);

Parameters

[in] pBufferName

A pointer to a string that holds the name of the shared buffer to be opened. Name comparisons are case-sensitive.

Return Values

Returns an open handle to the named shared buffer object if it succeeds. Otherwise, it returns NULL. Call GetLastError to obtain an error code.

Remarks

RtgvOpenSharedBuffer increments the reference count to the shared buffer. This can be decremented by calling RtgvCloseSharedBuffer.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtgvComm.h

RtgvComm.lib

See Also: