I'm trying to start a process with different credentials. But I cannot even
compile my code as the compiler (VC++.NET) says "error C3861:
'CreateProcessWithLogonW': identifier not found, even with
argument-dependent lookup".
I have included the following headers etc, which I belive should be
sufficient:
#include "stdafx.h"
#define UNICODE
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <stdio.h>
#include <userenv.h>
#include <winbase.h
Any idea what might be wrong?
Regards,
chris
Hi,I have written a method to convert a managed string to anunmanaged string in C++. However, I am j...
By tommy
I am working on a function that displays all related names when the userentering name. For now, I on...
By anhtruong
Hello,I have C++ code that I used to compile on VC++ 6.0compiler. Now after some modifications I hav...
By vibhesh
I have my application coded in C++. Previously I used VC++6.0 compiler. For compiling I use make fil...
By vibhesh
Hi,on some opensource group when I tried to compile there compiler with vc++someone said this to me:...
By abubakar, 4 Comments
Hello,I'm not quite sure if all objects in my code are released properly bythe garbage collector, be...
By the_newsletter_gmx_net, 2 Comments
I am resurrecting this question (since it got bumped down by morerecent posts).This is probably very...
By rich, 7 Comments
Hye,I am trying to get notification of any browser request... (not only thatof the local server.. e....
By jigarmehta, 2 Comments
Hi all,Can we create an ActiveX (.OCX) control in ATL project type? Is project typefor creation of ....
By vinay, 6 Comments
Hi!
I have realized that winbase.h is not included corretly. Even though, I
don't know why.
As my code starts with #define _WIN32_WINNT 0x0500, the corresponding define
statements and CreateProcessWithLogonW should be processed. But in fact,
LOGON_WITH_PROFILE for example remains undefined after importing winbase.h.
Any ideas?
Regards,
Chris
chris | Mon, 31 Dec 2007 15:15:00 GMT |
Why do you include winbase at all? It is automatically included by
windows.h. I guess that's the problem.
"chris" <no...mail.com> wrote in message
news:OvGonlFxFHA.2516...TK2MSFTNGP12.phx.gbl...
> Hi!
>
> I have realized that winbase.h is not included corretly. Even though, I
> don't know why.
> As my code starts with #define _WIN32_WINNT 0x0500, the corresponding
> define statements and CreateProcessWithLogonW should be processed. But in
> fact, LOGON_WITH_PROFILE for example remains undefined after importing
> winbase.h.
> Any ideas?
> Regards,
> Chris
marcusheege | Mon, 31 Dec 2007 15:16:00 GMT |
"chris" <no...mail.com> wrote in message
news:uOgSkMFxFHA.3556...TK2MSFTNGP12.phx.gbl...
> Hi!
> I'm trying to start a process with different credentials. But I cannot
> even compile my code as the compiler (VC++.NET) says "error C3861:
> 'CreateProcessWithLogonW': identifier not found, even with
> argument-dependent lookup".
> I have included the following headers etc, which I belive should be
> sufficient:
> #include "stdafx.h"
> #define UNICODE
> #define _WIN32_WINNT 0x0500
> #include <windows.h>
> #include <stdio.h>
> #include <userenv.h>
> #include <winbase.h>
> Any idea what might be wrong?
What does stdafx.h look like? Does it include <windows.h> or an MFC header
that does? If so, and if you are using the precompiled header option, the
definition for _WIN32_WINNT comess too late to be seen.
Why not set the minimum version you target in stdafx.h?
Regards,
Will
williamdepalomvpvc | Mon, 31 Dec 2007 15:17:00 GMT |