Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Quick ideas for activation

Quick ideas for activation

Scheduled Pinned Locked Moved C / C++ / MFC
questiontestingbeta-testing
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex Korchemniy
    wrote on last edited by
    #1

    I have a finished implementation for activation that relies on the manufacturer assigned non-changable serial number of a hard drive. During testing I discovered that my method of discovering this number does not work on all versions of Windows that are going to be supported. The WMI claass Win32_PhysicalMedia does not exist in Win2k. The workaround for this is also very painful, requiring DeviceIoControl and probably administrative priveleges at runtime. I noticed that there is Wmi32_BaseBoard class that provides a serial number. However, not all motherboard provide this information (driver code never sets the number). What is a good, simply way to identify a machine that works consistently on Windows 2000 and newer? Alex Korchemniy

    T 2 Replies Last reply
    0
    • A Alex Korchemniy

      I have a finished implementation for activation that relies on the manufacturer assigned non-changable serial number of a hard drive. During testing I discovered that my method of discovering this number does not work on all versions of Windows that are going to be supported. The WMI claass Win32_PhysicalMedia does not exist in Win2k. The workaround for this is also very painful, requiring DeviceIoControl and probably administrative priveleges at runtime. I noticed that there is Wmi32_BaseBoard class that provides a serial number. However, not all motherboard provide this information (driver code never sets the number). What is a good, simply way to identify a machine that works consistently on Windows 2000 and newer? Alex Korchemniy

      T Offline
      T Offline
      TheGreatAndPowerfulOz
      wrote on last edited by
      #2

      get the MAC address from the wired network card. How To Get the MAC Address for an Ethernet Adapter[^]

      S 1 Reply Last reply
      0
      • A Alex Korchemniy

        I have a finished implementation for activation that relies on the manufacturer assigned non-changable serial number of a hard drive. During testing I discovered that my method of discovering this number does not work on all versions of Windows that are going to be supported. The WMI claass Win32_PhysicalMedia does not exist in Win2k. The workaround for this is also very painful, requiring DeviceIoControl and probably administrative priveleges at runtime. I noticed that there is Wmi32_BaseBoard class that provides a serial number. However, not all motherboard provide this information (driver code never sets the number). What is a good, simply way to identify a machine that works consistently on Windows 2000 and newer? Alex Korchemniy

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #3

        look into using following Win32 API GetVolumneInformation[^] Note that the forth parameter gives you the volume serial number that the operating system assigns when a hard disk is formatted. To programmatically obtain the hard disk's serial number that the manufacturer assigns, use the Windows Management Instrumentation (WMI) Win32_PhysicalMedia property SerialNumber. But obviously you already know that Win32_PhysicalMedia doesn't work in less than WinXP

        A 1 Reply Last reply
        0
        • T TheGreatAndPowerfulOz

          get the MAC address from the wired network card. How To Get the MAC Address for an Ethernet Adapter[^]

          S Offline
          S Offline
          Sebastian Schneider
          wrote on last edited by
          #4

          All the network cards I own (3COM PCI, REALTEK PCIE, 3COM PCMCIA models) allow me to set the MAC-Address on my own. Yes, they DO originally have a "unique"-MAC, but its changeable. Cheers, Sebastian -- Contra vim mortem non est medicamen in hortem.

          1 Reply Last reply
          0
          • T TheGreatAndPowerfulOz

            look into using following Win32 API GetVolumneInformation[^] Note that the forth parameter gives you the volume serial number that the operating system assigns when a hard disk is formatted. To programmatically obtain the hard disk's serial number that the manufacturer assigns, use the Windows Management Instrumentation (WMI) Win32_PhysicalMedia property SerialNumber. But obviously you already know that Win32_PhysicalMedia doesn't work in less than WinXP

            A Offline
            A Offline
            Alex Korchemniy
            wrote on last edited by
            #5

            GetVolumeInformation can be easily changed and does get changed after formating. I got a good suggested at ms newsgroups... using Win32_ComputerSystemProduct. Its a class that is designed to uniquely identify a computer. So far so good. Alex Korchemniy

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups