Just wondering, whats the dll entrypoint name for the LogonUser API ?
Can't seem to declare it as LogonUser, LogonUserA or LogonUserW ...
Printable View
Just wondering, whats the dll entrypoint name for the LogonUser API ?
Can't seem to declare it as LogonUser, LogonUserA or LogonUserW ...
It should be declared as follows ;
VB Code:
Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal lpszUsername As String, ByVal lpszDomain As Any, ByVal lpszPassword As String, ByVal dwLogonType As Long, ByVal dwLogonProvider As Long, phToken As Long) As Long
and not like how its done in win32api.txt ;
VB Code:
Private Declare Function LogonUser Lib "kernel32" Alias "LogonUserA" (ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Long, ByVal dwLogonProvider As Long, phToken As Long) As Long
This is under Windows 2000 Pro anyway.