stubbed powrprof.dll

Benjamin Cutler cutler at cs.colostate.edu
Sat Apr 9 21:46:11 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is my first attempt at contributing anything to the Wine tree, so
if I've made any common 'newbie' mistakes, that's probably why.

I've been experimenting with dx9wine to see if I can get Planetside
working (that game is the only reason I'd even consider going back to
windows), but the program requires one function from powrprof.dll,
which, unless I'm blind, doesn't seem to exist in the wine tree at
present. So I spent a few hours looking at the source tree and looking
up info on the functions provided by powrprof.dll, and wrote up a
header and a .c file that includes stubbed out functions so that
applications that use powrprof will at least load (they of course
might not run properly). Attached you'll find the result of that work,
including a patch to configure.ac and dlls/Makefile.in, and a tarball
containing dlls/powrprof/ and include/powrprof.h. Note that powrprof.h
contains several struct and enum definitions that really belong in
winnt.h, but I wasn't sure where in winnt.h I should place them, so I
simply stuck them in powrprof.h for now.

After compiling powrprof.dll.so and placing it in
/usr/lib/dx9wine/lib/wine/, I was able to get the Planetside exe to
load, but it promptly bombed out because it thought my graphics card
was only 16 megs (it's 128, but I'm sure I just need to fix a config
variable), so I think I'm on the right track.

Thank you for your time.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCWJNy3ZWQ5WzMh1oRAupIAJ9tOd4krieCMN5xBm1ypbqfxk8m7gCgj3Rr
52ZhgBcks8jKFkuWF+mElT4=
=EEgB
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: powrprof.stub.patch
Type: text/x-patch
Size: 1955 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050409/b3bd6bc3/powrprof.stub.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powrprof.tar.gz
Type: application/gzip
Size: 4258 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050409/b3bd6bc3/powrprof.tar.bin


More information about the wine-devel mailing list