please dont rip this site Prev Next

RasSetAutodialParam info  Overview  Group

The RasSetAutodialParam function sets the value of an AutoDial parameter.

DWORD RasSetAutodialParam(

    DWORD dwKey,

// indicates the parameter to set

    LPVOID lpvValue,

// pointer to a buffer that specifies the value

    DWORD dwcbValue

// size, in bytes, of the buffer

   );

Parameters

dwKey
Indicates the AutoDial parameter to set. This parameter can be one of the following values.

Value

Meaning

RASADP_DisableConnectionQuery

The lpvValue parameter points to a DWORD value. If this value is zero (the default), AutoDial displays a dialog box to query the user before creating a connection. If this value is 1, and the AutoDial database has the phone-book entry to dial, AutoDial creates a connection without displaying the dialog box.

RASADP_LoginSessionDisable

The lpvValue parameter points to a DWORD value. If this value is 1, the system disables all AutoDial connections for the current logon session. If this value is zero (the default), AutoDial connections are enabled. The AutoDial system service changes this value to zero when a new user logs on to the workstation.

RASADP_SavedAddressesLimit

The lpvValue parameter points to a DWORD value that indicates the maximum number of addresses that AutoDial stores in the registry. AutoDial first stores addresses that it used to create an AutoDial connection; then it stores addresses that it learned after a RAS connection was created. Addresses written using the RasSetAutodialAddress function are always saved, and are not included in calculating the limit. The default value is 100.

RASADP_FailedConnectionTimeout

The lpvValue parameter points to a DWORD value that indicates a timeout value, in seconds. When an AutoDial connection attempt fails, the AutoDial system service disables subsequent attempts to reach the same address for the timeout period. This prevents AutoDial from displaying multiple connection dialog boxes for the same logical request by an application. The default value is 5.

lpvValue
Pointer to a buffer that contains the new value for the specified parameter.
dwcbValue
Specifies the size, in bytes, of the value in the lpvValue buffer.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value can be one of the following error codes.

Value

Meaning

ERROR_INVALID_PARAMETER

The dwKey or lpvValue parameter is invalid.

ERROR_INVALID_SIZE

The size specified by the dwcbValue is invalid.

See Also

RasGetAutodialParam, RasSetAutodialAddress


file: /Techref/os/win/api/win32/func/src/f70_35.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/26 17:41,
TOP NEW HELP FIND: 
3.133.157.231: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://techref.massmind.org/Techref/os/win/api/win32/func/src/f70_35.htm"> RasSetAutodialParam</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 massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .