iad_sysinfo.h 718 B

123456789101112131415161718192021222324
  1. /*
  2. * ********************************************
  3. *
  4. * Licensed Materials - Property of IBM and/or HCL
  5. *
  6. * IBM Informix Dynamic Server
  7. * Copyright IBM Corporation 2010, 2013
  8. * (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved.
  9. *
  10. * ********************************************
  11. */
  12. #include "API.h"
  13. #ifndef IAD_SYSINFO_H
  14. #define IAD_SYSINFO_H
  15. EXPORT double STDCALL iadGetCPUSpeed(install_t *is);
  16. EXPORT int STDCALL iadGetTotalCPU(install_t *is);
  17. EXPORT off_t STDCALL iadGetTotalMemory(install_t *is);
  18. EXPORT size_t STDCALL iadGetPageSize(install_t *is);
  19. void initMachInfo(install_t *is);
  20. #define CPU_MHZ_KEY "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"
  21. #endif /* IAD_SYSINFO_H */