INtime SDK Help
ValidateRtBuffer
INtime SDK v7 > About INtime > INtime Kernel > Memory management > ValidateRtBuffer

Verifies that a buffer pointer is a valid pointer and has access rights to the memory it references.

BOOLEAN ValidateRtBuffer(
    LPVOID pBuffer,
    DWORD cbSize,
    DWORD dwFlags
);

Parameters

pBuffer
Pointer to buffer under test.
cbSize
The number of bytes in the buffer.
dwFlags
Valid values include:
BUFFER_WRITABLE Verify that this buffer is writable across the defined range.
BUFFER_READONLY Verify that this buffer is readable across the defined range.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError.

Status

E_BAD_ADDR
pBuffer does not refer to a location inside the process' VSEG, or BUFFER_WRITABLE was specified and one or more pages of the range are read-only.
E_NOT_ALLOCATED
There are pages missing within the range specified.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also

Memory management system calls