Solved

CreateProcessWithLogonW compile & link error

Posted on 2004-04-19
2
581 Views
Last Modified: 2010-08-05
I have a program vritten in VC++ 6.0 SP5 that uses the CreateProcessWithLogonW function.
Unicode libraries are installed, UNICODE and _WIN32_WINNT=0x0500 are defined but the compiler cannot find the definition for the function. If I supply my own prototype it compiles ok but cannot link.
I've included advapi32.lib to no avail.

atex.obj : error LNK2001: unresolved external symbol _CreateProcessWithLogonW

Any clues?
Regards
Peter


0
Comment
Question by:peakpeak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
_corey_ earned 50 total points
ID: 10860172
It looks like you need to downoad the Platform SDK.  http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm?p=/msdownload/platformsdk/sdkupdate/home.htm is where you would download it from, but the site seems to be having a few problems at the moment.
0
 
LVL 28

Author Comment

by:peakpeak
ID: 10860234
Ouch, I already had it, just included the path in Preprocessor & lib. Working,
Thanks
Peter
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DCT of  2D array using fftw in c++ 9 133
One named event, multiple event handlers 2 58
learn programming 8 94
Winapi.Windows.hpp problem 7 44
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question