M
Mark Field
When I insert the code below, it claims that there is a User Defined Type
Not Defined. In the cases below, it's refering to SYSTEM_INFO and
OSVERSIONINFO. I have matched the reference libraries up, and it still does
not compile. Any ideas? Thanks!
-Mark
** THESE TWO DO NOT WORK ***
Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As
SYSTEM_INFO)
Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA"
(lpOSInfo As OSVERSIONINFO) As Boolean
** THIS ONE WORKS!! **
Private Declare Function api_GetUserName Lib "advapi32.dll" Alias
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Not Defined. In the cases below, it's refering to SYSTEM_INFO and
OSVERSIONINFO. I have matched the reference libraries up, and it still does
not compile. Any ideas? Thanks!
-Mark
** THESE TWO DO NOT WORK ***
Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As
SYSTEM_INFO)
Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA"
(lpOSInfo As OSVERSIONINFO) As Boolean
** THIS ONE WORKS!! **
Private Declare Function api_GetUserName Lib "advapi32.dll" Alias
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long