Results 1 to 5 of 5

Thread: How can I get the serial number of the processor?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    88

    Question How can I get the serial number of the processor?

    I want to protect my program from illegal copying;

    How can I get the serial number of the processor or other hardware

    And is there a better way for protection?

  2. #2
    Hyperactive Member Capp's Avatar
    Join Date
    May 2005
    Location
    Texas
    Posts
    409

    Re: How can I get the serial number of the processor?

    Here is a premade project that shows you how to get all sorts of hardware information:

    http://www.codeproject.com/vbscript/VvvHardwareInfo.asp


    If you are selling this program and want to issue licenses and help prevent pirating, I suggest using a "wrapper program" or an encapsulating program such as Armadillo: Armadillo
    AmazingAntivirus.com
    Remote Data Backups


    Please Mark your Thread "Resolved", if the query is solved...

    If a post has helped you then Please Rate it!

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: How can I get the serial number of the processor?

    Quote Originally Posted by Amr Al-Amir
    I want to protect my program from illegal copying;

    How can I get the serial number of the processor or other hardware

    And is there a better way for protection?
    Microsoft, with all their expertise and resources, can't prevent all copying, so the best you can do is make it difficult for the person to copy. The more difficult you make it the better the chance that they'll give up. (That means a few totally unrelated methods. They break one, it still doesn't work. They find another and break it, it still doesn't work. After the 5th or 6th one, most people will have given up.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can I get the serial number of the processor?

    Using WMI in VB will get you just about anything too. But do note that a CPU serial number is protected in the BIOS with an option to hide it from discovery/reading outside of the BIOS.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I get the serial number of the processor?

    Quote Originally Posted by Al42
    Microsoft, with all their expertise and resources, can't prevent all copying, so the best you can do is make it difficult for the person to copy. The more difficult you make it the better the chance that they'll give up. (That means a few totally unrelated methods. They break one, it still doesn't work. They find another and break it, it still doesn't work. After the 5th or 6th one, most people will have given up.)
    This is something that you should keep in mind when adding "copy protection" to your application.

    There is no 100% guarentee.

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