Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "CreateProcessAsUser" in [All]

advapi32

.

static extern bool CreateProcessAsUser(

.

Private Declare Auto Function CreateProcessAsUser Lib "advapi32" ( _

.

Private Shared Function CreateProcessAsUser( _

.

The Unicode version of this function, CreateProcessAsUserW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation.

.

     if (!CreateProcessAsUser(hToken, String.Empty, commandLine,

.

     throw new Exception("Failed to CreateProcessAsUser");

.

     If Not CreateProcessAsUser(hToken, "", strCmdLine, Nothing, _

.
Documentation
.

static extern TODO CreateProcessAsUserW(TODO);

.

Declare Function CreateProcessAsUserW Lib "advapi32.dll" (TODO) As TODO

.
Documentation
[CreateProcessAsUserW] on MSDN
.

The following enum (Create Process Flags) can be used by CreateProcess, CreateProcessAsUser, CreateProcessWithLogonW, and CreateProcessWithTokenW.

Structures

.
Summary

shell32

userenv

.

Note that it is your responsibility to load the user's registry hive into the HKEY_USERS registry key with the LoadUserProfile function before calling CreateProcessAsUser. This is because CreateProcessAsUser does not load the specified user's profile into HKEY_USERS. This means that access to information in the HKEY_CURRENT_USER registry key may not produce results consistent with a normal interactive logon.


 
Access PInvoke.net directly from VS: