Unit FreeRes

Classes

Functions

GetFreeSystemResources - QT_Thunk needs a stack frame.

Types

Constants

Gfsr_GdiResources
Gfsr_SystemResources
Gfsr_UserResources

Variables


Functions


function GetFreeSystemResources(SysResource: Word): Word;

QT_Thunk needs a stack frame. } {$StackFrames On} { Thunking call to 16-bit USER.EXE. The ThunkTrash argument allocates space on the stack for QT_Thunk.

Types


Constants

Gfsr_GdiResources = 1

Gfsr_SystemResources = 0

Get free system resources in Windows 95. For reasons unknown outside of Microsoft, the Win32 API does not define the GetFreeSystemResources function. The only way to get this information is to call a 16-bit function in USER.EXE. You can try messing around with thunking, but there's an easier way in Windows 95. (I don't know how to do this in NT, though.) This information comes from "Windows 95 System Programming Secrets" by Matt Pietrek. This unit provides the GetFreeSystemResources function for Windows 95. See the Windows 3.1 API documentation to learn more about this function. Copyright © 1996 Tempest Software You may use this software as part of an application program without fee or royalty. Use this software at your own risk. As free software, it is offered without guarantee.

Gfsr_UserResources = 2


Variables