srvcmgmt.cpp File Reference

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <tchar.h>
#include <malloc.h>
#include "ntsecapi.h"
#include "dcomperm.h"

Include dependency graph for srvcmgmt.cpp:

Go to the source code of this file.

Functions

DWORD GetRunAsPassword (LPTSTR AppID, LPTSTR Password)
DWORD SetRunAsPassword (LPTSTR AppID, LPTSTR Principal, LPTSTR Password)
DWORD SetAccountRights (LPTSTR User, LPTSTR Privilege)


Function Documentation

DWORD GetRunAsPassword ( LPTSTR  AppID,
LPTSTR  Password 
)

Definition at line 33 of file srvcmgmt.cpp.

References GUIDSTR_MAX, NIL, NULL, STR2UNI, and UNI2STR.

DWORD SetAccountRights ( LPTSTR  User,
LPTSTR  Privilege 
)

Definition at line 172 of file srvcmgmt.cpp.

References GetPrincipalSID(), NULL, and STR2UNI.

Referenced by SetRunAsPassword().

DWORD SetRunAsPassword ( LPTSTR  AppID,
LPTSTR  Principal,
LPTSTR  Password 
)

Definition at line 99 of file srvcmgmt.cpp.

References GUIDSTR_MAX, NULL, SetAccountRights(), and STR2UNI.


Generated on Fri Nov 21 04:30:17 2008 for HOOPLE Libraries by  doxygen 1.5.1