Results 1 to 14 of 14

Thread: [RESOLVED] Registry Read with API only?

Hybrid View

  1. #1
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Registry Read with API only?

    Heres all the code in a module.
    Attached Files Attached Files

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Registry Read with API only?

    The link in my sig fully uses API

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    546

    Re: Registry Read with API only?

    Oh I see how it works now, but how can I check if a key exists? I'm using the read function but I am confused, can you give me an example?
    Did you find a post in this thread useful? Please click Rate This Post.

  4. #4
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Registry Read with API only?

    Sure bro,

    VB Code:
    1. Private Function KeyExists(Hkey As String, Section As String, Valuekey As String) As Boolean
    2.     On Error Resume Next
    3.     Set Reg = New cRegistry
    4.     Reg.ClassKey = Hkey
    5.     Reg.SectionKey = Section
    6.     Reg.Valuekey = Valuekey
    7.     If Reg.Value <> Empty Then KeyExists = True
    8. End Function

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