IIdentityChangeNotify::SwitchIdentities method
[SwitchIdentities is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Called when user identities are switched.
Syntax
HRESULT SwitchIdentities();
Parameters
This method has no parameters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
You may implement this method to provide custom behavior for your application when a user has successfully switched identities. To provide custom behavior before a user identity switch occurs, implement the IIdentityChangeNotify::QuerySwitchIdentities method.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
End of client support |
Windows 2000 Professional |
End of server support |
Windows 2000 Server |
Header |
|
IDL |
|
DLL |
|
See also