Fast File Download ActiveX
Our Products
 
 
 
GetSystemInfo ActiveX methods
GetSystemInfo ActiveX is a ATL-base COM component developed by microsoft visual c++ 2008. It only include method and no property. Its all interface method as follow:


Methods:
1. String GetDiskSerialNum(long lDiskNum)
      Retrieves the hard disk serial number.
        Parameters:
       lDiskNum: An integer variable to indicate disk index
        Return Value:
      The lDiskNum number of physical hard drive real serial number
2. String GetDiskModelNum(long lDiskNum)
      Retrieves the hard disk Model number.
        Parameters:
       lDiskNum: An integer variable to indicate disk index
        Return Value:
      The lDiskNum number of physical hard drive real model number
3. String GetFirmwareRev(long lDiskNum)
     Retrieves the hard disk firmware Revision.
        Parameters:
       lDiskNum: An integer variable to indicate disk index
        Return Value:
      The number of physical hard drive firmware Revision
4. int GetDiskBufSize(long lDiskNum)
     Retrieves the hard disk buffer size
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive buffer size
5. int GetDiskCylinders(long lDiskNum)
     Retrieves the hard disk Cylinders
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Cylinders
6. int GetDiskHeads(long lDiskNum)
     Retrieves the hard disk Heads .
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Heads
7. int GetDiskSectors(long lDiskNum)
     Retrieves the hard disk Sectors.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Sectors.
8. int GetSectorsPerTrack(long lDiskNum)
     Retrieves Sectors per track of hard disk.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Sectors per track.
9. int GetBytesPerSector(long lDiskNum)
     Retrieves Bytes per sectors of hard disk.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Bytes per sectors

10. String GetInterfaceType(long lDiskNum)
     Retrieves Interface Type of hard drive.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Interface Type
11. String GetDriveSize(long lDiskNum)
     Retrieves the total size of physical hard disk.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The number of physical hard drive the total size
12. String GetMediaType(long lDiskNum)
     Retrieves the hard disk Media type.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexx
        Return Value:
      The lDiskNum number of physical hard drive Media type.

13. int GetDriveCount()
    Get the count of local hard disk.
        Parameters:
      N/A
        Return Value:
      Return the count of local hard disk.
14. String GetDriveLetter(long lDiskNum)
     Retrieves the logical drive letter of specifies hard disk.
        Parameters:
       lDiskNum: An integer variable to indicate disk indexex
      Returns the logical drive letter of specifies hard disk.
15. String GetVolumeNum(BSTR DriveLetter)
     Retrieves the hard disk serial number.        lDiskNum: An integer variable to indicate disk indexex
        Return Value:
      The lDiskNum number of physical hard drive real serial number
16. boolean IsVMWare()
      Detect whether running in VMWare.
        Parameters:
       N/A
        Return Value:
       If current in the VMWare, the return value is 1. Otherwise return value is zero.
17. boolean IsVirtualPC()
     Detect whether running in Windows Virtual PC.
        Parameters:
      N/A
        Return Value:
     If current in the Virtual PC, the return value is 1. Otherwise return value is zero.
18. boolean RegMe(BSTR LicenseCode)
       Register the full version, the full version will not have the pop-up snag screen.
        Parameters:
       LicenseCode: Registration Code, The License key will be emailed
                            immediately after your purchased.
        Return Value:
      N/A
19. String GetIP()
     Retrieves the local IP address.
        Parameters:
       N/A
        Return Value:
      Local IP address string.
20. String GetMac()
     Retrieves the local mac address.
        Parameters:
       N/A
        Return Value:
      Local mac address string.
21. String GetCPUNum()
     Retrieves the cpu id number.
        Parameters:
       N/A
        Return Value:
      CPU id number string
22. SystemInfo GetSystemInfo(long lDiskNum)
     Retrieves in front of all system information and return through the structure.
        Parameters:
       lDiskNum: An integer variable to indicate disk index
        Return Value:
      The structure SystemInfo.
The structure is defined as follows:
        typedef struct SystemInfo
         {
               long BytesPerSector;
               char CPUNUM[MAX_PATH];
               long BufSize;
               long Cylinders;
               long Heads;
               char ModelNum[MAX_PATH];
               ULONGLONG Sectors;
               char SerialNum[MAX_PATH];
               char DriveLetter[100];
               char DriveSize[100];
               char FirmwareRev[100];
               char InterfaceType[30];
               char IP[30];
               char MAC[30];
               char MediaType[30];
               long SectorsPerTrack;
         }SYSTEMINFO;