please dont rip this site Prev Next

RasEnumDevices info  Overview  Group

The RasEnumDevices function returns 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

   );

Parameters

lpRasDevInfo
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
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.

To determine the required buffer size, call RasEnumDevices with the lpRasDevInfo parameter set to NULL and the variable pointed to by lpcb set to zero. The function returns the required buffer size in the variable pointed to by lpcb.

lpcDevices
Pointer to a variable that the function sets to the number of RASDEVINFO structures written to the lpRasDevInfo buffer.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value is a nonzero RAS error value or one of following error codes.

Value

Meaning

ERROR_BUFFER_TOO_SMALL

The lpRasDevInfo buffer is not large enough. The function returns the required buffer size in the variable pointed to by lpcb.

ERROR_NOT_ENOUGH_MEMORY

Indicates insufficient memory.

ERROR_INVALID_PARAMETER

Indicates an invalid parameter value.

ERROR_INVALID_USER_BUFFER

The address or buffer specified by lpRasDevInfo is invalid.

See Also

RASDEVINFO 


file: /Techref/os/win/api/win32/func/src/f70_8.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/26 06:33,
TOP NEW HELP FIND: 
3.133.146.94:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f70_8.htm"> RasEnumDevices</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .