View Full Version : DLL - Get OS's Serial Number - Intrigued
Intrigued
11-02-2005, 07:11 PM
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/DLLOSSerialNumber-AMS6-Intrigued.apz
Intrigued
11-02-2005, 07:21 PM
This was tested on Windows XP Pro and may only work on NTFS based systems.
Intrigued
11-02-2005, 07:29 PM
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
Thanks for the DLL Intrigued. :yes
Just to clarify, is this the Windows Product ID that it determines?
Intrigued
11-03-2005, 06:03 PM
:eek:, 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/DLLOSProductID-AMS6-Intrigued.apz
Excellent... thanks for the clarification... this might come in handy.
*Archives it away*
Intrigued
07-08-2006, 01:23 PM
*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:
-- 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.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.