PFNRASSETCOMMSETTINGS callback function (ras.h)
Call RasSetCommSettings from a custom-scripting DLL to change the settings on the port for the connection.
Syntax
PFNRASSETCOMMSETTINGS Pfnrassetcommsettings;
DWORD Pfnrassetcommsettings(
[in] HANDLE hPort,
[in] tagRASCOMMSETTINGS *pRasCommSettings,
[in] PVOID pvReserved
)
{...}
Parameters
[in] hPort
Handle to the port on which to apply the settings. This handle is passed to the custom-scripting DLL in the RasCustomScriptExecute function.
[in] pRasCommSettings
Pointer to a RASCOMMSETTINGS structure that specifies the settings to be applied to the port.
[in] pvReserved
Reserved for future use. This parameter must be NULL.
Return value
This callback function does not return a value.
Remarks
RAS passes the custom-scripting DLL a pointer to the RasSetCommSettings function when RAS calls RasCustomScriptExecute. The pointer is stored in the RASCUSTOMSCRIPTEXTENSIONS structure that is passed as the last parameter of RasCustomScriptExecute.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP, Windows 2000 Professional with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003, Windows 2000 Server with SP2 [desktop apps only] |
Target Platform | Windows |
Header | ras.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for