OnAdminClientLimit Event

Indicates the client limit was changed.

Syntax

NSUniMgr_OnAdminClientLimit( datetime, status, ipaddress, count, VirtualPath )

Parameters

datetime

A Date value indicating the time the event occurred, expressed in Greenwich Mean Time (GMT).

status

A Long value specifying the HRESULT passed back when this event is fired.

ipaddress

A String value specifying the administrator's IP address.

count

A Long value specifying the new client limit.

VirtualPath

A String value specifying the alias of the virtual root that caused the limit to be exceeded. A NULL value (or empty string in Visual Basic) indicates a system-wide limit has been exceeded.

Remarks

This event is called whenever an administrative client sets the MaxClients property. To receive notification of this event, the AdminEvents property must first be set to TRUE.

Example

In this example, the event handler for the OnAdminClientLimit event brings up a message box when the MaxClients property is changed. The message box shows the IP address of the administrative client making the change. (In this case, the IP of the computer running the example.) The last line in this sample causes the event to be fired.

Sub NSUnicastMgr_OnAdminClientLimit( time, hr, ip, count, vp)
 MsgBox( "computer at ip " & ip & " changed MaxClients to " & count)
End Sub
 ' event on next line opens message box
NSUnicastMgr.MaxClients = 200

See Also

MaxClients

© 1996-1998 Microsoft Corporation. All rights reserved.