home *** CD-ROM | disk | FTP | other *** search
- Declare Function LocalInfo Lib "toolhelp.dll" (p As Any, ByVal h As Integer) As Integer
- Declare Function LocalFirst Lib "toolhelp.dll" (p As Any, ByVal h As Integer) As Integer
- Declare Function LocalNext Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function ClassFirst Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function ClassNext Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function TaskFirst Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function TaskNext Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function ModuleFirst Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function ModuleNext Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function GlobalFirst Lib "toolhelp.dll" (p As Any, ByVal w As Integer) As Integer
- Declare Function GlobalNext Lib "toolhelp.dll" (p As Any, ByVal w As Integer) As Integer
- Declare Function MemManInfo Lib "toolhelp.dll" (p As Any) As Integer
- Declare Function SendMessage Lib "user.exe" (ByVal h As Integer, ByVal m As Integer, ByVal w As Integer, ByVal l As Long) As Long
- Declare Function getFocus Lib "user.exe" () As Integer
- Declare Function GlobalDOSAlloc Lib "kernel" (ByVal dw&) As Long
- Declare Function GlobalDosFree Lib "kernel" (ByVal s%) As Integer
-
- Global Const MAX_CLASSNAME = 256
- Global Const MAX_MODULE_NAME = 10
- Global Const MAX_PATH = 256
-
- Global Const GLOBAL_ALL = 0
- Global Const GLOBAL_LRU = 1
- Global Const GLOBAL_FREE = 2
-
- Global Const LF_FIXED = 1
- Global Const LF_FREE = 2
- Global Const LF_MOVEABLE = 4
-
- Global Const GT_UNKNOWN = 0
- Global Const GT_DGROUP = 1
- Global Const GT_DATA = 2
- Global Const GT_CODE = 3
- Global Const GT_TASK = 4
- Global Const GT_RESOURCE = 5
- Global Const GT_MODULE = 6
- Global Const GT_FREE = 7
- Global Const GT_INTERNAL = 8
- Global Const GT_SENTINEL = 9
- Global Const GT_BURGERMASTER = 10
-
- Type sCLASSENTRY
- dwSize As Long
- hInst As Integer
- szClassName As String * MAX_CLASSNAME
- wNext As Integer
- End Type
-
- Type sLOCALINFO
- dwSize As Long
- wcItems As Integer
- End Type
-
- Type sLOCALENTRY
- dwSize As Long
- hHandle As Integer
- wAddress As Integer
- wSize As Integer
- wFlags As Integer
- wcLock As Integer
- wType As Integer
- hHeap As Integer
- wHeapType As Integer
- wNext As Integer
- End Type
-
- Type sTASKENTRY
- dwSize As Long
- hTask As Integer
- hTaskParent As Integer
- hInst As Integer
- hModule As Integer
- wSS As Integer
- wSP As Integer
- wStackTop As Integer
- wStackMinimum As Integer
- wStackBottom As Integer
- wcEvents As Integer
- hQueue As Integer
- szModule As String * MAX_MODULE_NAME
- wPSPOffset As Integer
- hNext As Integer
- End Type
-
- Type sMODULEENTRY
- dwSize As Long
- szModule As String * MAX_MODULE_NAME
- hModule As Integer
- wUsageFlags As Integer
- szExePath As String * MAX_PATH
- wNext As Integer
- End Type
-
- Type sGLOBALENTRY
- dwSize As Long
- dwAddress As Long
- dwBlockSize As Long
- hBlock As Integer
- wcLock As Integer
- wcPageLock As Integer
- wFlags As Integer
- wHeapPresent As Integer
- hOwner As Integer
- wType As Integer
- wData As Integer
- dwNext As Long
- dwNextAlt As Long
- End Type
-
- Type sMEMMANINFO
- dwSize As Long
- dwLargestFreeBlock As Long
- dwMaxPagesAvailable As Long
- dwMaxPagesLockable As Long
- dwTotalLinearSpace As Long
- dwTotalUnlockedPages As Long
- dwFreePages As Long
- dwTotalPages As Long
- dwFreeLinearSpace As Long
- dwSwapFilePages As Long
- wPageSize As Integer
- End Type
-
- Global Const WM_USER = 1024
- Global Const LB_RESETCONTENT = WM_USER + 5
- Global Const WM_SETREDRAW = &HB
-
- Global Const MAX_DOSALLOCS = 200
- Global hTMList As Integer
- Global ahDosMem(0 To MAX_DOSALLOCS) As Integer
-
-