All my Api calls return EMPTY .
Some examples I tried:
Expand|Select|Wrap|Line Numbers
- Declare Function apiGetVersion Lib "kernel32" Alias "GetVersion" () As Long
- Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Declare Function api_GetUserName Lib "c:\windows\system32\advapi32.dll" Alias _
- "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Private Declare Function gethostbyname Lib "WSOCK32.DLL" (ByVal hostname As String) As Long
- Private Declare Function inet_addr Lib "WSOCK32.DLL" (ByVal s As String) As Long
I use MS Access 2003 and my computer(s) run Windows XP Pro (SP2).
The last time I needed to use Api calls was with Access 8 and Windows 95, can’t remember that is was such a struggle.
I really hope someone can help me with this.
Thanks,
Raymond