![]() |
![]() |
![]() |
![]() |
Data structure for system information
typedef struct Ph_sys_info { PhGeneralSysInfo_t gen; PhGrafxInfo_t gfx; PhKbdInfo_t kbd; PhPtrInfo_t ptr; PhIgInfo_t ig; } PhSysInfo_t;
The PhSysInfo_t structure contains system information, and is filled in by PhQuerySystemInfo() and PtQuerySystemInfo(). This structure includes at least:
![]() |
Always examine the general information gen first, to see which of the other structures contain data. |
The gen member is a PhGeneralSysInfo_t structure that contains at least:
The valid_fields field is a set of flags that indicates which of the other fields are valid. The flags include:
For example, before referring to gfx in the PhSysInfo_t structure, you should check that it's valid:
if (sysinfo.gen.valid_fields & Ph_GEN_INFO_NUM_GFX) { /* It's valid. */ ... }
The other fields in the PhSysInfo_t structure are similar. Each has a valid_fields field that you should check before using the data. For details on these structures, see the <photon/PhT.h> header file.
Photon
PhQuerySystemInfo(), PtQuerySystemInfo()
"System information" in the Regions chapter of the Programmer's Guide.
![]() |
![]() |
![]() |
![]() |