http://bugs.winehq.org/show_bug.cgi?id=10612
--- Comment #6 from Daniel Lehmann lehmannd@in.tum.de 2008-03-29 18:03:32 --- Sorry, forgot the source code. I uploaded it here:
http://www.daniellehmann.net/advapi32source.zip
It's Delphi code but I hope it will be useful anyway.
Thanks a lot!