M
Mobile Boy 36
I used RegCreateKeyEx in EVB without problems. In Vb.net I had to change the
long types into integer types because you have to pass a 32 bit value ( a
long in Evb was 32 bits; in vb.net you have to use the integer type).
I didm't touch the other parameters.
My return value is 87 (ERROR_INVALID_PARAMETERS). The registry key is not
created.
It seems that there is something wrong with the parameters (or with my
call...)
Does someone know how to resolve this problem? I would appreciate a
reaction...
My function:
Declare Function RegCreateKeyEx Lib "Coredll" Alias "RegCreateKeyExW" ( _
ByVal hkey As Integer, _
ByVal lpSubKey As String, _
ByVal Reserved As Integer, _
ByVal lpClass As String, _
ByVal dwOptions As Integer, _
ByVal samDesired As Integer, _
ByVal lpSecurityAttributes As Integer, _
ByVal phkResult As Integer, _
ByVal lpdwDisposition As Integer) _
As Integer
My call:
RetVal = RegCreateKeyEx _
(HKEY_LOCAL_MACHINE, "Software\Test", 0, _
vbNullString, 0, 0, 0, 0, 0)
Best regards,
Kevin
long types into integer types because you have to pass a 32 bit value ( a
long in Evb was 32 bits; in vb.net you have to use the integer type).
I didm't touch the other parameters.
My return value is 87 (ERROR_INVALID_PARAMETERS). The registry key is not
created.
It seems that there is something wrong with the parameters (or with my
call...)
Does someone know how to resolve this problem? I would appreciate a
reaction...
My function:
Declare Function RegCreateKeyEx Lib "Coredll" Alias "RegCreateKeyExW" ( _
ByVal hkey As Integer, _
ByVal lpSubKey As String, _
ByVal Reserved As Integer, _
ByVal lpClass As String, _
ByVal dwOptions As Integer, _
ByVal samDesired As Integer, _
ByVal lpSecurityAttributes As Integer, _
ByVal phkResult As Integer, _
ByVal lpdwDisposition As Integer) _
As Integer
My call:
RetVal = RegCreateKeyEx _
(HKEY_LOCAL_MACHINE, "Software\Test", 0, _
vbNullString, 0, 0, 0, 0, 0)
Best regards,
Kevin