AccpacSession.IsWinUserLoggedOn
Determines if the specified Windows user is the user that is currently logged on to the session.
Sub IsWinUserLoggedOn(
Domain As String,
WinUserID As String,
pVal As Boolean)
Parameters
Domain
[in] the Windows domain the user is logged on to
WinUserID
[in] the Windows user ID on the supplied domain
pVal
[out] returns TRUE if the current ACCPAC session user and the Windows user are the same; otherwise, returns FALSE