MprAdminReleaseIpAddress2

The MprAdminReleaseIpAddress2 function is called when a user disconnects and the user's IP address is about to be released.

void CALLBACK MprAdminReleaseIpAddress2(
  WCHAR* lpwszUserName,
  WCHAR* lpwszPortName,
  DWORD* lpdwIpAddress,
  in6_addr* lpdwIpv6Address
);

Parameters

  • lpwszUserName
    [in] Pointer to a Unicode string that specifies the name of the user that disconnected.
  • lpwszPortName
    [in] Pointer to a Unicode string that specifies the name of the port on which the user disconnected.
  • lpdwIpAddress
    [in] Pointer to a DWORD variable. This variable specifies the IPv4 address to be released.
  • lpdwIpv6Address
    [in] Pointer to an in6_addr structure. This variable specifies the IPv6 address to be released.

Return Value

This function does not have a return value.

Remarks

An administration DLL need not implement the MprAdminReleaseIpAddress2 function. However, if the DLL implements MprAdminReleaseIpAddress2, it must also implement MprAdminGetIpAddressForUser2.

RAS supports multiple Administration DLLs. However, RAS calls MprAdminReleaseIpAddress2 only in the first DLL that implements and export it. RAS ignores implementations of these functions in the other DLLs. RAS checks the DLLs for these functions in the order in which they are listed in the registry.

Do not call any of the RAS Administration Functions or RAS User Administration Functions from inside MprAdminReleaseIpAddress2. Calls to these functions do not return when made from within a callout function.

Requirements

Server

Requires Windows Server 2008.

Header

Declared in Mprapi.h.

See Also

Remote Access Service Administration Reference
RAS Administration Functions
RAS Administration DLL
MprAdminConnectionHangupNotification
MprAdminGetIpAddressForUser2

Send comments about this topic to Microsoft

Build date: 7/2/2007