method RunAs
Runs a program or an app with the current user profile or with
another one.
(This method is useful if for instance, you want to
run a program as an Admin user)
|
Username
[in] . PC Username (e.g PC1\JDoe) or Domain Username (e.g
INNOV.ORG\JDoe)
Password
[in] . Password
AppFilename
[in] . Program or application
full filename.
Remark:
When Username
and Password
are empty string (“”), then the application will
be
launched with the current
user profile.
Since version 2.38.6.9,
when Username
= "/adm"
and
Password
and AppFilename
are empty string (“”), then the application will run into
an
Administrator user
context like it is done from the contextual menu of Windows Explorer.
S_OK
The operation was successfull.
E_POINTER
A NULL pointer was supplied as an argument.
E_UNEXPECTED
An unexpected error occoured.