ISensLogon2::PostShell method (sensevts.h)

Use the PostShell method when a user has logged on and Windows Explorer is running. This method is different from the Logon method because Logon is called after logon when the Shell may not yet be running.

Syntax

HRESULT PostShell(
  [in] BSTR  bstrUserName,
  [in] DWORD dwSessionId
);

Parameters

[in] bstrUserName

Name of the current user.

[in] dwSessionId

The session identifier of the session.

Return value

This method can return one of these values.

Return code Description
S_OK
Method returned successfully.

Remarks

SENS calls this method to notify your application that a user has logged on and the Windows Explorer (Shell) is running.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header sensevts.h
DLL Sens.dll

See also

About System Event Notification Service

ISensLogon2

ISensLogon::Logoff

Terminal Services