IVHooks interface : UserLoggedOut method

UserLoggedOut method
Event
A user logged out of VWorks software.
Description
VWorks software calls the UserLoggedOut method after a user logs out of VWorks software.
Syntax
 
HRESULT UserLoggedOut(
[in] BSTR sXML,
[in, out] BSTR* sResultXML
);
Parameters
 
[in] A LogoutComplete XML element that contains the name of the user who logged out of VWorks software.
UserLoggedOut method input
VWorks software passes a LogoutComplete XML element into the sXML parameter of the UserLoggedOut method. This XML element provides the name of the user who logged out of VWorks software.
LogoutComplete element
The LogoutComplete element has the following attribute:
 
Example of UserLoggedOut method input
The following sample code is a LogoutComplete XML element that is received from VWorks software by the plugin as a string in the sXML parameter of the UserLoggedOut method. VWorks software tells the plugin that the user named LSinclair logged out of VWorks software.
 
<LogoutComplete UserName='LSinclair' />
UserLoggedOut method output
The plugin returns a HookResults XML block in the sResultXML parameter of the UserLoggedOut method. For information about the structure and contents of this XML block, see “HookResults XML block” .
Example of UserLoggedOut method output
The following sample code is a HookResults XML block that is returned to VWorks software by the plugin as a string in the sResultXML parameter of the UserLoggedOut method. The plugin tells VWorks software to write the following Info-type message to the Main Log:
LSinclair logged out.
 
<HookResults>
<Results>
<HookResult ResultType='Log Message' ResultValue='LSinclair logged out.' />
</Results>
</HookResults>
Related information