IIdentityChangeNotify::QuerySwitchIdentities method
[QuerySwitchIdentities is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Called when the current user has requested that their user identity be switched, but before the switch occurs.
Syntax
HRESULT QuerySwitchIdentities();
Parameters
This method has no parameters.
Return value
Type: HRESULT
Result of the switch query. If the switch should proceed, return S_OK. Otherwise, return E_PROCESS_CANCELLED_SWITCH to indicate that the user identity switch should be aborted.
Remarks
You may implement this method to provide custom behavior for your application when a user requests that identities be switched. You can stop the pending identity switch by returning the value E_PROCESS_CANCELLED_SWITCH.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for