home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
- '=============================================
- ' Global Constants Section
- '=============================================
- ' WindowState
- Global Const NORMAL = 0 ' 0 - Normal
- Global Const MINIMIZED = 1 ' 1 - Minimized
- Global Const MAXIMIZED = 2 ' 2 - Maximized
-
- ' GetFreeSystemResources Constants
- Global Const GFSR_SYSTEMRESOURCES = 0
- Global Const GFSR_GDIRESOURCES = 1
- Global Const GFSR_USERRESOURCES = 2
-
- ' Windows flag bitmasks
- Global Const WF_PMODE = &H1
- Global Const WF_STANDARD = &H10
- Global Const WF_ENHANCED = &H20
-
- '=============================================
- ' API/DLL Procedure Declaration Section
- '=============================================
- ' Windows API functions
- Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As Long
- Declare Function GetFreeSystemResources Lib "User" (ByVal fuSysResource As Integer) As Integer
- Declare Function GetWinFlags Lib "Kernel" () As Long
- Declare Function GetVersion Lib "Kernel" () As Long
-
- '=============================================
- ' Type Definition Declaration Section
- '=============================================
- Type SizeStruct
- Top As Single
- Left As Single
- Height As Single
- Width As Single
- End Type
-
-