T
Tom Shelton
I am not sure I understand what you are saying you prefer here -- you would
like people to call the "A" or "W" versions directly, with no aliasing? Or
something else?
It would be easier to understand what you meant if you posted an example
declare you believe to be "good" and then the version that you believe to be
"bad".
Good:
Declare Auto Function GetUserName Lib "advapi32" ( _
ByVal lpBuffer As System.Text.StringBuilder, _
ByRef nSize As Integer) As Boolean
Bad:
Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" ( _
ByVal lpBuffer As String, _
ByRef nSize As Integer) As Boolean
That make it clear? In other words, leave off the Alias and use the
Auto keyword.
Tom Shelton