blnResult = LogonUser(strUser, strDomain, strPassword, _
lngLogonType, lngLogonProvider, _
lngTokenHandle)
If blnResult Then
blnResult = ImpersonateLoggedOnUser(lngTokenHandle)
CloseHandle(lngTokenHandle)
Else
MsgBox("Error logging on")
End If
End Sub
Alternative Managed API:
Do you know one? Please contribute it!
Click to read this page
3/21/2017 10:35:23 AM - -174.46.8.250
ByVal is a VB keyword that specifies a variable to be passed as a parameter BY VALUE. In other words, if the function or sub changes the value of the internal variable, it does not change the value of the external variable that was passed to it.
4/25/2007 3:19:55 AM - josep1er@cmich.edu-141.209.229.179
ByVal is a VB keyword that specifies a variable to be passed as a parameter BY VALUE. In other words, if the function or sub changes the value of the internal variable, it does not change the value of the external variable that was passed to it.
4/25/2007 3:19:55 AM - josep1er@cmich.edu-141.209.229.179
ByVal is a VB keyword that specifies a variable to be passed as a parameter BY VALUE. In other words, if the function or sub changes the value of the internal variable, it does not change the value of the external variable that was passed to it.
4/25/2007 3:19:55 AM - josep1er@cmich.edu-141.209.229.179