Wine, WineLib and "Programming Windows 95"
Last updated: 2003/5/4
Description
Displays an analogic clock using the isomorphic cartographic mode which
means a circle should display as a circle, not an ellipse, no matter what
the resolution. But since this stuff is never setup properly...
Wine tests
- Works just like on Windows.
Winelib tests
Tested API
- GDI32
Ellipse, GetStockObject, Polyline, SelectObject, SetMapMode, SetViewportExtEx, SetViewportOrgEx, SetWindowExtEx
- KERNEL32
CloseHandle, CompareStringA, CompareStringW, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetLocalTime, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetStringTypeA, GetStringTypeW, GetTimeZoneInformation, GetVersion, HeapAlloc, HeapCreate, HeapFree, HeapReAlloc, LCMapStringA, LCMapStringW, LoadLibraryA, MultiByteToWideChar, RaiseException, RtlUnwind, SetEnvironmentVariableA, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CreateWindowExA, DefWindowProcA, DispatchMessageA, EndPaint, GetDC, GetMessageA, KillTimer, LoadCursorA, LoadIconA, MessageBoxA, PostQuitMessage, RegisterClassExA, ReleaseDC, SetTimer, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
Sets up a timer so that it receives a WM_TIMER message every second. For
each message, changes the color of the window between red and blue and emits
a beep using MessageBeep. Note, the window starts blue and then alternates
between red and blue.
Wine tests
- Works just like on Windows.
Winelib tests
Tested API
- GDI32
CreateSolidBrush, DeleteObject, GetStockObject
- KERNEL32
CloseHandle, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CreateWindowExA, DefWindowProcA, DispatchMessageA, EndPaint, FillRect, GetClientRect, GetMessageA, InvalidateRect, KillTimer, LoadCursorA, LoadIconA, MessageBeep, MessageBoxA, PostQuitMessage, RegisterClassExA, SetTimer, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
Same as beeper1 but using a callback method instead of handling the
WM_TIMER message in the message loop. Note that this version starts with a
white window, and then, aternates between red and blue.
Wine tests
- Works just like on Windows.
Winelib tests
Tested API
- GDI32
CreateSolidBrush, DeleteObject, GetStockObject
- KERNEL32
CloseHandle, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
CreateWindowExA, DefWindowProcA, DispatchMessageA, FillRect, GetClientRect, GetDC, GetMessageA, KillTimer, LoadCursorA, LoadIconA, MessageBeep, MessageBoxA, PostQuitMessage, RegisterClassExA, ReleaseDC, SetTimer, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
Displays a bouncing ball. The movement of the ball is performed using bitblits and a timer.
Wine tests
- Works just like on Windows.
Winelib tests
Tested API
- GDI32
BitBlt, CreateCompatibleBitmap, CreateCompatibleDC, CreateHatchBrush, DeleteDC, DeleteObject, Ellipse, GetDeviceCaps, GetStockObject, Rectangle, SelectObject, SetBkColor
- KERNEL32
CloseHandle, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
CreateWindowExA, DefWindowProcA, DispatchMessageA, GetDC, GetMessageA, KillTimer, LoadCursorA, LoadIconA, MessageBoxA, PostQuitMessage, RegisterClassExA, ReleaseDC, SetTimer, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
Creates a popup window that docks itself in the top right corner of the
screen and displays a digital clock (with only two digits for the year).
Note that this window cannot be moved.
This clock is internationalized. So on Windows I can go into "Regional
Settings" and display the date as "12/2/00" instead of "2/12/00".
Wine tests
- Works just fine, including the placement in the top right corner of the
screen and internationalization (e.g. set LANG=fr_FR).
Winelib tests
Tested API
- GDI32
CreateICA, DeleteDC, GetStockObject, GetTextMetricsA
- KERNEL32
CloseHandle, CompareStringA, CompareStringW, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetLocalTime, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetProfileIntA, GetProfileStringA, GetStartupInfoA, GetStdHandle, GetStringTypeA, GetStringTypeW, GetTimeZoneInformation, GetVersion, HeapAlloc, HeapCreate, HeapFree, HeapReAlloc, LoadLibraryA, MultiByteToWideChar, RtlUnwind, SetEnvironmentVariableA, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CreateWindowExA, DefWindowProcA, DispatchMessageA, DrawTextA, EndPaint, GetClientRect, GetMessageA, GetSystemMetrics, InvalidateRect, KillTimer, LoadCursorA, LoadIconA, MessageBoxA, PostQuitMessage, RegisterClassExA, SetTimer, ShowWindow, TranslateMessage, UpdateWindow, wsprintfA