Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137

    DLL - Get OS's Serial Number - Intrigued

    Here is another .dll (in the Docs folder) offering. Easily get the serial number for a computer. The code is in the button's On Click even area.

    Project file (.apz, need AMS 6!):

    http://www.amsuser.com/ams/examples/...-Intrigued.apz
    Intrigued

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    This was tested on Windows XP Pro and may only work on NTFS based systems.
    Intrigued

  3. #3
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    This .dll accesses the Win32_OperatingSystem class. Which is a component of WMI, which came out in 1998. Soooo... it does look like this is only for NTFS systems. Well, enjoy anyway.

    :-D
    Intrigued

  4. #4
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Thanks for the DLL Intrigued.

    Just to clarify, is this the Windows Product ID that it determines?

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    , yes, it's the Windows Product ID (number). Sorry for the confusion and thanks for the catch!

    The previous .apz file was changed (name wise) to a name more aptly stated.

    http://www.amsuser.com/ams/examples/...-Intrigued.apz
    Intrigued

  6. #6
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Excellent... thanks for the clarification... this might come in handy.

    *Archives it away*

  7. #7
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    *Update* July 8, 2006 - Saturday

    This may come in handy for when you are checking against the Serial Number presented (check the Button object's On Click).

    Change the code to:
    Code:
    -- Get the Operating System's Serial Number (Tested on Windows XP Pro)
    dll_OSSerialNumber = DLL.CallFunction("AutoPlay\\Docs\\OSSerialNumber.dll", "OSSERIALNUMBER", "", DLL_RETURN_TYPE_STRING)
    	Dialog.Message("OS's Serial Number...", String.TrimLeft(dll_OSSerialNumber, "SerialNumber = "))
    You can then also used the String.TrimLeft() Action on a variable holding the return value from the .dll. Then you can use that to check against in your project.
    Intrigued

Similar Threads

  1. Serial Numbers for your AutoPlay applications
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 12
    Last Post: 11-30-2005, 01:20 PM
  2. Serial NUmber Entry Template
    By gbrown in forum Setup Factory 7.0
    Replies: 3
    Last Post: 10-14-2004, 11:17 PM
  3. Serial Number List Best Practice
    By jebc in forum Setup Factory 6.0
    Replies: 1
    Last Post: 08-17-2004, 09:31 AM
  4. Silent Installs and Serial Number
    By JimPark in forum Setup Factory 6.0
    Replies: 1
    Last Post: 07-22-2003, 09:05 AM
  5. Simple serial number question
    By Research in forum Setup Factory 6.0
    Replies: 5
    Last Post: 03-18-2002, 11:25 PM

Posting Permissions

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