C
cgchris99
Guest
I am trying to use RegQueryValueEx API call. I have the example that works in VB6.
My example has it defined as follows...
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Notice lpData as Any, VB.Net does not allow this. So, how do I make this work?
Thanks for any help
My example has it defined as follows...
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Notice lpData as Any, VB.Net does not allow this. So, how do I make this work?
Thanks for any help