Flora Edwards
asked on
window API declaration what is the difference between these two
what is the difference between
and
?
aren't[/code] these both the same?
if they are different, how can i change the
Private Declare Function GetUserNameEx Lib "secur32.dll" Alias "GetUserNameExA" ByVal NameFormat As Long,ByVal lpNameBuffer As String,ByRef nSize As Long) As Long
and
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
and
[code]Private Declare Function GetUserNameEx Lib "secur32.dll" Alias _
"GetUserNameExA" (ByVal NameFormat As EXTENDED_NAME_FORMAT, _
ByVal lpNameBuffer As String, ByRef nSize As Long) As Long
?
aren't[/code] these both the same?
if they are different, how can i change the
Private Declare Function GetUserNameEx Lib "secur32.dll" Alias "GetUserNameExA" ByVal NameFormat As Long,ByVal lpNameBuffer As String,ByRef nSize As Long) As Long
to support 64Bit
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
The first example you give has a typo and is missing a "("
Open in new window
Open in new window
Hope this Helps