RtEnumProxyProcesses

The RtEnumProxyProcesses function enumerates proxy processes associated with Windows processes linked to RTAPI.

Syntax

Copy
BOOL RtEnumProxyProcesses(
    [in]    DWORD *pProcessIds,
    [in]    DWORD cb,
    [out]   DWORD *pBytesReturned,
);

Parameters

[in] pProcessIds

A pointer to an array that receives the list of Windows process identifiers.

[in] cb

The size of the pProcessIds array, in bytes.

[out] pBytesReturned

The number of bytes returned in the pProcessIds array.

Return Value

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

Remarks

It is a good idea to use a large array, because it is hard to predict how many Windows processes linked to wRTOS there will be at the time you call RtEnumProxyProcesses.

Proxy processes created by an RTK-enabled Windows driver will return odd process identifiers, beginning with the number 1.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

RtApi.lib (Windows), Startup.lib (RTSS)