Results 1 to 4 of 4

Thread: Creating registry key when register a prog [SOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68

    Creating registry key when register a prog [SOLVED]

    I would like to force users to register first the prog before using it.

    First, I would like to take the MacAdress of the network card.

    2nd convert it to a number.

    3rd user register itself with this number and a new one is generated with an algorythm

    4th the user enter this new one into the popup dialog and a key is vreated in the registry.

    Next time the prog is executed, it will check first if the key exist in the registry compare it to the MacAdress and run the prog if succesfull.


    How can I create a registry key at PC level (not user) ?
    How can I read it after ?
    How can I read the MacAdress of the network Card ?
    How can I convert the MacAdress to a number (example : 00-50-8D-5C-85-96)

    Thanks for all your support during 1 month

    The prog is a network application, so each PC has a network card !
    Last edited by oxbow123; Jun 18th, 2003 at 11:40 AM.

  2. #2
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    you should look into the help, i know there is a class available in .NET that alows reading and writing in the registry.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Reading and writing to the registry is easy. All what you need is in the System.Win32 namspace. Now for getting the MAC address, thats a little difficult. You can use WMI which is kind of easy, however you have to make sure its installed on the clients machine.

    Its installed by default on Win 2000 and up.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68
    What I need is some Example code for each point

    How can I create a registry key at PC level (not user) ?
    How can I read it after ?
    How can I read the MacAdress of the network Card ?
    How can I convert the MacAdress to a number (example : 00-50-8D-5C-85-96)


    I'm novice in Vb.Net

    Thanks

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