次の方法で共有


RasEnumDevices (Compact 2013)

3/26/2014

This function returns the name and type of all available RAS-capable devices.

Syntax

DWORD RasEnumDevices( 
  LPRASDEVINFOW lpRasDevinfo, 
  LPDWORD lpcb, 
  LPDWORD lpcDevices 
);

Parameters

  • lpRasDevinfo
    Long pointer to a buffer that receives an array of RASDEVINFO structures, one for each RAS-capable device. Before calling the function, set the dwSize member of the first RASDEVINFO structure in the buffer to sizeof(RASDEVINFO) to identify the version of the structure.
  • lpcb
    Long pointer to a variable that contains the size, in bytes, of the lpRasDevInfo buffer. On return, the function sets this variable to the number of bytes required to enumerate the devices.
  • lpcDevices
    Long pointer to a variable that the function sets to the number of RASDEVINFO structures written to the lpRasDevinfo buffer.

Return Value

Zero indicates success. A nonzero error value indicates failure. Valid error codes (as defined in Raserror.h) include: ERROR_BUFFER_TOO_SMALL.

Requirements

Header

ras.h

Library

coredll.lib

See Also

Reference

RAS Functions
RASCONN
RasEnumEntries
RasGetConnectStatus