
Need help with registry API function!!!
I'm trying to use the RegCreateKeyEx function in my program. I've entered
the following as a declaration:
Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA"
(ByVal hkey As Long, ByVal lpSubKey As String, ByVal Reserved As Long, ByVal
lpClass As String, ByVal dwOptions As Long, ByVal samDesired As Long,
lpSecurityAttributes As SECURITY_ATTRIBUTES, phkResult As Long,
lpdwDisposition As Long) As Long
when I try to run my program I get a compile error:
user defined type not defined.
What am I doing wrong??? I would appreciate any help I could get!!
Thanks in advance!
Steve