次の方法で共有


Dot11ExtIhvProcessSessionChange (Compact 2013)

3/26/2014

The operating system calls this function to notify the IHV Extensions DLL of a session change event.

Syntax

DWORD WINAPI Dot11ExtIhvProcessSessionChange(
    ULONG uEventType,
    PWTSSESSION_NOTIFICATION pSessionNotification
);

Parameters

  • uEventType
    [in] The type of event. This parameter can have one of the following values:

    Value

    Meaning

    WTS_CONSOLE_CONNECT

    A session was connected to the console session.

    WTS_CONSOLE_DISCONNECT

    A session was disconnected from the console session.

    WTS_REMOTE_CONNECT

    A session was connected to the remote session.

    WTS_REMOTE_DISCONNECT

    A session was disconnected from the remote session.

    WTS_SESSION_LOGON

    A user has logged on to the session.

    WTS_SESSION_LOGOFF

    A user has logged off the session.

    WTS_SESSION_LOCK

    A session has been locked.

    WTS_SESSION_UNLOCK

    A session has been unlocked.

    WTS_SESSION_REMOTE_CONTROL

    A session has changed its remote controlled status. To determine the status, call the GetSystemMetrics function and check the SM_REMOTECONTROL metric.

  • pSessionNotification
    [in] A pointer to a WTSSESSION_NOTIFICATION structure, which provides information about the session change notification.

Return Value

If the call succeeds, the function returns ERROR_SUCCESS. Otherwise, it returns an error code defined in Winerror.h.

Remarks

The operating system calls the function to notify the IHV Extensions DLL when a switch in a user session occurs.

If the uEventType parameter is set to WTS_SESSION_LOGOFF, the IHV Extensions DLL must cancel all pending user interface requests internally and must release any allocated resources for the user interface requests.

Requirements

Header

wlanihv.h

See Also

Reference

Native 802.11 IHV Handler Functions
Dot11ExtIhvInitAdapter
Native 802.11 IHV Extensions DLL

Other Resources

GetSystemMetrics