Results 1 to 3 of 3

Thread: [1.0/1.1] Registry-related codes in C#

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    73

    [1.0/1.1] Registry-related codes in C#

    hi all,
    can someone help me to explain the following codes. i got no idea what it wanna do.

    int hKey = 0;
    byte[] uidByte = new byte[] {};
    hKey = Registry.OpenKey(Registry.RootKey.HKEY_LOCAL_MACHINE, "PDALOCK");
    uidByte = Registry.QueryValueBinary(hKey, "UID");
    Registry.CloseKey(ref hKey);

    longwar

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [1.0/1.1] Registry-related codes in C#

    It looks like it's supposed to open the PDALOCK key under HKLM and read the binary value named UID. Those methods are not members of the Microsoft.Win32.Registry class though.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [1.0/1.1] Registry-related codes in C#

    Delphi.NET?

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