Jump to content
Xtreme .Net Talk

Recommended Posts

Guest cgchris99
Posted

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...