I saw your project source code and comments, it is really healpfull and nice, but I have some problem, I will appriciate you if help me :)
I want to have informations of a computer hardware uniqely,
for example, hard ID , CPU ID or /and network card serial number.
Thank you very much if you can give me some help and comment.
How would I go about finding new devices, such as hot-plug drives, without having to use microsoft's rescan? is there any coding available that could give me the basic outline of what I would need to do to get this accomplished?
I am trying to write some code that will let a local user click a rescan button and upon that, the remote computer will scan for new hard drives, and then report back to the local machine a listing of hard drives. It will end up being much like the device manager, provided with windows, except only list harddrives. Does this sound possible, and if so, how would I get started with this project?
Can anyone please tell me how to detect CPU speed through Basic. I can read the registry key corresponding to '~MHz', but this only appears under Windows XP, 2000, ME & NT (not under Windows 95/98/98SE).
Does anyone know how to convert the source code provided by Intel on their site for CPUID, into something which is readibly in Basic, as I'm not familiar with C or with Assembler.
I wonder if someone could help me with this problem. I am trying to read the total capacity of a hard disk, at the moment I am using the code below to retrieve the bytes allocated to each drive, add them up and get the total capacity, but the problem comes when some bytes are not allocated to any partition. Any clue?
// GET THE DRIVE TYPE.
nDriveType = GetDriveType(szCurrentDrive);
// IF IT IS A HARD DRIVE TYPE OF DRIVE, THEN GET THE PARTITION INFORMATION.
if (nDriveType == DRIVE_FIXED)
fResult = GetDiskFreeSpaceEx(szCurrentDrive, &uFreeBytesAvailable, &uTotalNumberOfBytes, &uTotalNumberOfFreeBytes);
dwError = GetLastError ();
// If the drive is not ready, print error
if (dwError == ERROR_NOT_READY)
printf ("Error: Drive is not ready");
result += (double)(__int64)uTotalNumberOfBytes.QuadPart/(1024*1024*1024);
printf("Hard Disk Capacity : %.1fGB\n", result);