|
RunAsUser DLL package includes the following files:
| Windows 32-bit |
Windows 64-bit |
dll\
runasuserx32a.dll - ANSI DLL
runasuserx32a.lib - ANSI LIB
runasuserx32w.dll - UNICODE DLL
runasuserx32w.lib - UNICODE LIB |
dll\
runasuserx64a.dll - ANSI DLL
runasuserx64a.lib - ANSI LIB
runasuserx64w.dll - UNICODE DLL
runasuserx64w.lib - UNICODE LIB |
|
include\
runasuser.h - C/C++ header file
runasuser.pdf - software documentation
runasuser.url - URL to the webpage
files.txt - list of files
license.txt - license agreement
readme.txt - readme file
register.txt - registration information
samples\
vc6\ - Microsoft Visual C++ 6 sample
vc9\ - Microsoft Visual C++ 2008 sample
vb9\ - Microsoft Visual Basic 2008 sample
cs9\ - Microsoft C Sharp 2008 sample
delphi\ - Delphi 6 sample |
|
To use any functions from RunAsUser DLL you need to link your application with one of the
following files:
runasuserx32a.dll - 32-bit ASCII DLL;
runasuserx32w.dll - 32-bit UNICODE DLL;
runasuserx64a.dll - 64-bit ASCII DLL;
runasuserx64w.dll - 64-bit UNICODE DLL.
RunAsUser DLL Library has three main functions.
RunAsUser_Initialize() - Initializes the library. This function should be called prior to
using other functions.
RunAsUser_CommandLine() - Checks the command line and performs all the internal
operations connected with it. It should be called when you start the program that uses RunAsUser
DLL. If the function carries out internal operations then the program that called the function
should be immediately stopped with the exit code returned by this function.
RunAsUser_CreateProcess() - Main function that is actually start process as user.
All these functions are declared in the runasuser.h file. The library also exports many
additional functions that can be used in the program (they do not influence the work of the
library, we just made some of the internal functions available).
Back to contents
|