Hardware Binding
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Hardware Binding

  1. #1
    Join Date
    Oct 2009
    Posts
    0

    Question Hardware Binding

    Hi guys, I'm wondering if anyone can help me with a bit of an odd request.

    Is there any way to bind a C++ application to the hardware; in other words, I want my application to only run on say Dell PCs or Toshiba Laptops etc.

    I have concluded that there must be a way to do this because the recovery disks that come with Toshiba laptops can tell they aren't being used on a Toshiba System and refuse to run.

    I have been trying to find information on this, I have searched google and google groups and even ventured into MSDN although the code MS suggested didn't work, it read info from the Registry which isn't reliable enough.

    I have found various articles mentioning Windows Management Instrumentation but I would like to refrain from using it - although it does raise another question in my mind, namely how does WMI populate the information on the hardware, if it gathers information from the hardware itself then surely there must be a way to retrieve this information without using WMI as a middle man.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,800

    Re: Hardware Binding

    Information on how to read SMBIOS data - http://www.codeguru.com/forum/showthread.php?t=459146

    If you're on Vista or higher, you'll have to use GetSystemFirmwareTable() instead of accessing \Device\PhysicalMemory.

    SMBIOS info: http://www.dmtf.org/standards/smbios/

    gg
    Last edited by Codeplug; October 22nd, 2009 at 09:59 AM. Reason: more info added

  3. #3
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Hardware Binding

    You will need to detect the brand specific hardware and validate it and then take decision of continuing further.
    Regards,
    Ramkrishna Pawar

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center