Wine, WineLib and "Programming Applications for Windows"
Last updated: 2001/3/1
Description
Calls the GetSystemInfo and displays returned information
in a dialog box.
Wine tests
- The minimum application address reported by Wine is
1GB which seems rather high. On Windows 95 it is 4MB and on NT it's 64KB.
(Note: all these values are in fact hardcoded so I'm putting this as a
bug)
Winelib tests
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GetSystemInfo
- MSVCRT20
_XcptFilter, __getmainargs, __p__acmdln, __p__commode, __p__fmode, _controlfp, _except_handler3, _exit, _initterm, _strrev, exit, sprintf
- USER32
DialogBoxParamA, EndDialog, GetWindowLongA, LoadIconA, SetClassLongA, SetDlgItemTextA
Last updated: 2001/3/1
Description
This application calls VirtualQuery to establish a map of the process's
virtual memory. It identifies each virtual memory block, and its properties:
size, execute, readonly, read/write, thread stack, etc.
Wine tests
- This seems to work just fine. Actually I'm not 100% sure that the
values that are returned are all correct to the byte, but it looks normal.
Winelib tests
Tested API
- KERNEL32
GetModuleFileNameA, GetModuleHandleA, GetProcessHeap, GetStartupInfoA, GetSystemInfo, VirtualQuery
- MSVCRT20
_XcptFilter, __getmainargs, __p__acmdln, __p__commode, __p__fmode, _controlfp, _except_handler3, _exit, _initterm, exit, memmove, sprintf, strchr
- USER32
DialogBoxParamA, EndDialog, GetClientRect, GetDialogBaseUnits, GetDlgItem, GetWindowLongA, LoadIconA, SendMessageA, SetClassLongA, SetWindowPos
Last updated: 2001/3/1
Description
Calls GlobalMemoryStatus and displays returned information
in a dialog box.
Wine tests
- Wine now returns values similar to those from NT for 'TotalVirtual'
and 'AvailVirtual'. More precisely, for 'TotalVirtual', Wine returns
2GB (max accessible address as reported by sysinfo) - 64KB (min accessible
address as reported by sysinfo) ~= 2GB. On Windows 95 this is
normally 2GB-4MB and on NT 2GB-128KB. 'AvailVirtual' is the same value
minus 64KB. It should in fact take into account the memory already
allocated by the process.
Winelib tests
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GlobalMemoryStatus
- MSVCRT20
_XcptFilter, __getmainargs, __p__acmdln, __p__commode, __p__fmode, _controlfp, _except_handler3, _exit, _initterm, _strrev, exit
- USER32
DialogBoxParamA, EndDialog, GetWindowLongA, LoadIconA, SetClassLongA, SetDlgItemTextA