UINT GetFreeSystemResources(fuSysResource) | |||||
UINT fuSysResource; | /* type of resource to check | */ |
The GetFreeSystemResources function returns the percentage of free space for system resources.
fuSysResource
Specifies the type of resource to be checked. This parameter can be one of the following values:
Value | Meaning |
GFSR_SYSTEMRESOURCES | Returns the percentage of free space for system resources. |
GFSR_GDIRESOURCES | Returns the percentage of free space for GDI resources. GDI resources include device-context handles, brushes, pens, regions, fonts, and bitmaps. |
GFSR_USERRESOURCES | Returns the percentage of free space for USER resources. These resources include window and menu handles. |
The return value specifies the percentage of free space for resources, if the function is successful.
Since the return value from this function does not guarantee that an application will be able to create a new object, applications should not use this function to determine whether it will be possible to create an object.