AS HDGET WIN32 DLL
version 2.1
With this library you can get model serial and revision number
for all IDE HDD in the system.
You will get STATIC and DLL version. Two products for the price
of one

dll version
ashdget.h
ashdget.lib (2 Kb)
ashdget.dll (28 Kb)
static LIB version for VC 6.0
ashdgets.h
ashdgets.lib (4 Kb)
If you want to get HDD model,
serial and revision number than you need this little library with
just one function that is easy to use and to remember.
BOOL
asHDid(int nHd, int nSn,LPSTR cBuffer);
This library is for Windows
NT/2000/XP and you don't need to have administrative rights.
nHD is
number in range 0 to 3 (0 is first master IDE drive)
nSn is number 1,2
or 3 (1 mean you want model, 2 you want
serial number, 3 you want revision number)
cBuffer is pointer where to put information
you request. Size of this string buffer must be at least 41 bytes
including terminating zero.
Nice thing is that you don't need administrative
rights.
This library can be used on Windows NT/2000/XP only.
If you want to protect your applications, this little library
will do the job.
Here we don't use WMI only windows API.
You have some data in Windows registry but we get them from devices.
|