Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateProcessWithLogonW undeclared?

Status
Not open for further replies.

tguice

MIS
Jun 16, 2003
3
US
I'm trying to call CreateProcessWithLogonW however it says error C2065 CreateProcessWithLogonW. I'm trying to create a mfc app in vc6.0. I can use CreateProcess and CreateProcessAsUser why can't I use the other? Including windows.h doesn't help either.
 
As the MSDN's documentation states:

Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use advapi32.lib.

Visual C++ 6.0 was released about a year and a half before Windows 2000, thus the "new functions" were not present in the headers and libs. You can update your Platform SDK at
WARNING: It's a huge download.

>> Including windows.h doesn't help either.

True, but if including windows.h was an afterthought, I would be worried. [lol]

I REALLY hope that helps.
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top