http://bugs.winehq.org/show_bug.cgi?id=5824
------- Additional Comments From focht@gmx.net 2007-24-04 13:48 ------- Created an attachment (id=5925) --> (http://bugs.winehq.org/attachment.cgi?id=5925&action=view) Verification of SetupQueryRegisteredOsComponent prototype/stub impl
Hello,
the discussion regarding syssetup.dll.SetupQueryRegisteredOsComponent caught my interest :)
Attached is an extended test case (originating from developer thread) which contains the meaning of parameter/struct member data revealed (struct layout) and a working implementation. It could serve as sample for dozen other syssetup.dll api exports belonging to this category (Register/Unregister/SetRegistered/Enumerate OS Setup Components).
Both versions of this export (native windows and the impl) are compared against each other to ensure the data returned is really at right place.
All struct member data is read from registry. There is no magic involved (as implied in developer thread). Only the "unused"/"reserved" fields at the tail of each struct gave me some headache, but i came to conclusion it's just garbage from temporary stack copy (see comments inside code).
Regards