RasDeRegisterNetworkChangedEvent
The RasDeRegisterNetworkChangedEvent function deregisters the given connection for network changes events related to the Network Access Protection quarantine process.
DWORD RasDeRegisterNetworkChangedEvent(
HRASCONN hRasConn
);
Parameters
- hRasConn
[in] Handle to the connection. Use RasDial or RasEnumConnections to obtain this handle.
Return Value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is one of the following error codes.
| Value | Meaning |
|---|---|
| E_INVALIDARG | At least one of the following is true: the hRasConn parameter is zero, the lpStatistics parameter is NULL, or the value specified by the dwSize member of the RAS_STATS structure specifies a version of the structure that is not supported by the operating system in use. |
| ERROR_NOT_ENOUGH_MEMORY | The function could not allocate sufficient memory to complete the operation. |
| Other | Use FormatMessage to retrieve the system error message that corresponds to the error code returned. |
Requirements
Client |
Requires Windows Vista, Windows XP, or Windows 2000 Professional. |
Server |
Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server. |
Header |
Declared in Ras.h; include NapTypes.h. |
Library |
Use Rasapi32.lib. |
DLL |
Requires Rasapi32.dll. |
See Also
Remote Access Service (RAS) Overview
Remote Access Service Functions
Network Access Protection
RasGetQuarantineConnectionId
RasRegisterNetworkConnectionEvent
Send comments about this topic to Microsoft
Build date: 7/2/2007