Results 1 to 5 of 5

Thread: API calls in VB .NET

Threaded View

  1. #1

    Thread Starter
    Member Penavin's Avatar
    Join Date
    Oct 2001
    Location
    Sisak, Croatia
    Posts
    42

    Question API calls in VB .NET

    Hi!

    When using API calls in .NET like in VB 6 I can't obtain the same result. Actually, there are no results at all!
    What is the problem?

    Here are functions I tryed to use:
    Code:
    Private Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" _
         (ByVal hKey As Long, _
          ByVal lpSubKey As String, _
          ByVal ulOptions As Long, _
          ByVal samDesired As Long, _
          ByRef phkResult As Long) As Long
    
    Private Declare Function RegQueryValueEx Lib "advapi32" Alias "RegQueryValueExA" _
         (ByVal hKey As Long, _
          ByVal lpValueName As String, _
          ByVal lpReserved As Long, _
          ByRef lpType As Long, _
          ByVal lpData As String, _
          ByRef lpcbData As Long) As Long
    
    Private Declare Function RegCloseKey Lib "advapi32" _
         (ByVal hKey As Long) As Long
    Thank you.
    Last edited by Penavin; Mar 27th, 2003 at 02:11 AM.
    Penavin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width