Group: Remote Access Service (RAS) - Library: rasapi32
Retrieving the name and type of all available RAS-capable devices
DWORD RasEnumDevices(
LPRASDEVINFO lpRasDevInfo, // buffer to receive
// information about RAS devices
LPDWORD lpcb, // size, in bytes, of the buffer
LPDWORD lpcDevices // receives the number of
// entries written to the buffer
); DECLARE INTEGER RasEnumDevices IN rasapi32;
STRING @ lpRasDevInfo,;
INTEGER @ lpcb,;
INTEGER @ lpcDevices lpRasDevInfo [in] Pointer to a buffer that receives an array of RASDEVINFO structures, one for each RAS-capable device.
lpcb [in, out] Pointer to a variable that, on input, contains the size, in bytes, of the lpRasDevInfo buffer.
lpcDevices [out] Pointer to a variable that receives the number of RASDEVINFO structures written to the lpRasDevInfo buffer.
If the function succeeds, the return value is zero.
Home