You need to update your Platform SDK. Hacking it with manual
declarations won't help. From your other post I assume that you
still use VC++6.0. The latest PSDK that is compatible with VC++6.0
is from February 2003.
http://www.qmedia.ca/launch/psdk.htm
HTH
Alex
!WHY! do I have to download whole psdk for just one function call??? btw when I used delphi, I didn't have any of those problems. where calling a function from unknown dll was a matter of single line code!
Why? Because doing it the other way is error prone and not easy,
apparently. You say that your version of "advapi32.lib" expects 10
parameters for `CreateProcessWithLogonW'. You cannot just
"squeeze" additional parameters. Alternatively, load "advapi.dll"
via `LoadLibrary' call, then obtain the function's address with
`GetProcAddress'.
HTH
Alex