http://bugs.winehq.org/show_bug.cgi?id=8241
Paul Vriens Paul.Vriens.Wine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Paul.Vriens.Wine@gmail.com
--- Comment #26 from Paul Vriens Paul.Vriens.Wine@gmail.com 2009-05-22 03:37:36 --- Why? As Dmitry and Vincent suggested we can do:
Check for existence of the GlobalFlags function:
static UINT (WINAPI *pGlobalFlags)(HGLOBAL); pGlobalFlags = (void*)GetProcAddress(GetModuleHandle(<dll>),"GlobalFlags");
The test:
if (!pGlobalFlags) { win_skip("GlobalFlags is not available\n"); return; }
g = GlobalAlloc(<fill in loads of possible flag combinations>, <whatever size>); f = GlobalFlags(g); compare f with the given flag combinations. GlobalFree(g);
Use this is in some kind of loop with dozens of combinations. There are loads of examples in our tests that define a struct with inputs and expected outputs and a loop with the needed test(s).
Just my $0.02