I'm having troubles with this function. Declaration:
With the phkResult As Long, what am I supposed to put there? I've looked and can't find what kind of information goes there. I tried a Long var and I got an error. I tried 0& and I got an error, I tried ByVal 0& and got an error. What goes there? Please help.Code: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




Reply With Quote