#include <basis/portable.h>Include dependency graph for dcomperm.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | GUIDSTR_MAX 38 |
| #define | STR2UNI(unistr, regstr) mbstowcs (unistr, regstr, strlen (regstr)+1); |
| #define | UNI2STR(regstr, unistr) wcstombs (regstr, unistr, wcslen (unistr)+1); |
Functions | |
| DWORD | ListDefaultAccessACL () |
| DWORD | ListDefaultLaunchACL () |
| DWORD | ListAppIDAccessACL (LPTSTR AppID) |
| DWORD | ListAppIDLaunchACL (LPTSTR AppID) |
| DWORD | ZapAppIDLaunchACL (LPTSTR AppID) |
| DWORD | ChangeDefaultAccessACL (LPTSTR Principal, BOOL SetPrincipal, BOOL Permit) |
| DWORD | ChangeDefaultLaunchACL (LPTSTR Principal, BOOL SetPrincipal, BOOL Permit) |
| DWORD | ChangeAppIDAccessACL (LPTSTR AppID, LPTSTR Principal, BOOL SetPrincipal, BOOL Permit) |
| DWORD | ChangeAppIDLaunchACL (LPTSTR AppID, LPTSTR Principal, BOOL SetPrincipal, BOOL Permit) |
| DWORD | GetRunAsPassword (LPTSTR AppID, LPTSTR Password) |
| DWORD | SetRunAsPassword (LPTSTR AppID, LPTSTR Principal, LPTSTR Password) |
| DWORD | SetRunAsPassword (LPTSTR AppID, LPTSTR Password) |
| DWORD | CreateNewSD (SECURITY_DESCRIPTOR **SD, bool install_defaults=true) |
| DWORD | MakeSDAbsolute (PSECURITY_DESCRIPTOR OldSD, PSECURITY_DESCRIPTOR *NewSD) |
| DWORD | SetNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName, SECURITY_DESCRIPTOR *SD) |
| DWORD | GetNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName, SECURITY_DESCRIPTOR **SD, BOOL *NewSD, bool install_defaults=true) |
| DWORD | ListNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName) |
| DWORD | ZapNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName) |
| DWORD | AddPrincipalToNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName, LPTSTR Principal, BOOL Permit, bool install_defaults=true) |
| DWORD | RemovePrincipalFromNamedValueSD (HKEY RootKey, LPTSTR KeyName, LPTSTR ValueName, LPTSTR Principal, bool install_defaults=true) |
| DWORD | GetCurrentUserSID (PSID *Sid) |
| DWORD | GetPrincipalSID (LPTSTR Principal, PSID *Sid) |
| DWORD | CopyACL (PACL OldACL, PACL NewACL) |
| DWORD | AddAccessDeniedACEToACL (PACL *Acl, DWORD PermissionMask, LPTSTR Principal) |
| DWORD | AddAccessAllowedACEToACL (PACL *Acl, DWORD PermissionMask, LPTSTR Principal) |
| DWORD | RemovePrincipalFromACL (PACL Acl, LPTSTR Principal) |
| void | ListACL (PACL Acl) |
| DWORD | SetAccountRights (LPTSTR User, LPTSTR Privilege) |
| LPTSTR | SystemMessage (LPTSTR szBuffer, HRESULT hr) |
| #define GUIDSTR_MAX 38 |
| #define STR2UNI | ( | unistr, | |||
| regstr | ) | mbstowcs (unistr, regstr, strlen (regstr)+1); |
Definition at line 31 of file dcomperm.h.
Referenced by GetRunAsPassword(), SetAccountRights(), and SetRunAsPassword().
| #define UNI2STR | ( | regstr, | |||
| unistr | ) | wcstombs (regstr, unistr, wcslen (unistr)+1); |
Definition at line 124 of file aclmgmt.cpp.
References CopyACL(), GetPrincipalSID(), and NIL.
Referenced by AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
Definition at line 72 of file aclmgmt.cpp.
References CopyACL(), GetPrincipalSID(), and NIL.
Referenced by AddPrincipalToNamedValueSD().
| DWORD AddPrincipalToNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName, | |||
| LPTSTR | Principal, | |||
| BOOL | Permit, | |||
| bool | install_defaults = true | |||
| ) |
Definition at line 385 of file sdmgmt.cpp.
References AddAccessAllowedACEToACL(), AddAccessDeniedACEToACL(), GetNamedValueSD(), MakeSDAbsolute(), NIL, and SetNamedValueSD().
Referenced by ChangeAppIDAccessACL(), ChangeAppIDLaunchACL(), ChangeDefaultAccessACL(), ChangeDefaultLaunchACL(), and ZapNamedValueSD().
| DWORD ChangeAppIDAccessACL | ( | LPTSTR | AppID, | |
| LPTSTR | Principal, | |||
| BOOL | SetPrincipal, | |||
| BOOL | Permit | |||
| ) |
Definition at line 114 of file wrappers.cpp.
References AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
Referenced by HandleAAOption().
| DWORD ChangeAppIDLaunchACL | ( | LPTSTR | AppID, | |
| LPTSTR | Principal, | |||
| BOOL | SetPrincipal, | |||
| BOOL | Permit | |||
| ) |
Definition at line 136 of file wrappers.cpp.
References AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
Referenced by HandleALOption().
| DWORD ChangeDefaultAccessACL | ( | LPTSTR | Principal, | |
| BOOL | SetPrincipal, | |||
| BOOL | Permit | |||
| ) |
Definition at line 84 of file wrappers.cpp.
References AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
Referenced by HandleDAOption().
| DWORD ChangeDefaultLaunchACL | ( | LPTSTR | Principal, | |
| BOOL | SetPrincipal, | |||
| BOOL | Permit | |||
| ) |
Definition at line 99 of file wrappers.cpp.
References AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
Referenced by HandleDLOption().
| DWORD CopyACL | ( | PACL | OldACL, | |
| PACL | NewACL | |||
| ) |
Definition at line 33 of file aclmgmt.cpp.
References NIL.
Referenced by AddAccessAllowedACEToACL(), and AddAccessDeniedACEToACL().
| DWORD CreateNewSD | ( | SECURITY_DESCRIPTOR ** | SD, | |
| bool | install_defaults = true | |||
| ) |
Definition at line 34 of file sdmgmt.cpp.
References GetCurrentUserSID(), NIL, and NULL.
Referenced by GetNamedValueSD().
| DWORD GetCurrentUserSID | ( | PSID * | Sid | ) |
| DWORD GetNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName, | |||
| SECURITY_DESCRIPTOR ** | SD, | |||
| BOOL * | NewSD, | |||
| bool | install_defaults = true | |||
| ) |
Definition at line 235 of file sdmgmt.cpp.
References CreateNewSD(), and NULL.
Referenced by AddPrincipalToNamedValueSD(), ListNamedValueSD(), and RemovePrincipalFromNamedValueSD().
| DWORD GetPrincipalSID | ( | LPTSTR | Principal, | |
| PSID * | Sid | |||
| ) |
Definition at line 79 of file utils.cpp.
References NULL.
Referenced by AddAccessAllowedACEToACL(), AddAccessDeniedACEToACL(), RemovePrincipalFromACL(), and SetAccountRights().
| DWORD GetRunAsPassword | ( | LPTSTR | AppID, | |
| LPTSTR | Password | |||
| ) |
Definition at line 33 of file srvcmgmt.cpp.
References GUIDSTR_MAX, NIL, NULL, STR2UNI, and UNI2STR.
| void ListACL | ( | PACL | Acl | ) |
| DWORD ListAppIDAccessACL | ( | LPTSTR | AppID | ) |
Definition at line 44 of file wrappers.cpp.
References ListNamedValueSD().
Referenced by HandleAAOption().
| DWORD ListAppIDLaunchACL | ( | LPTSTR | AppID | ) |
Definition at line 58 of file wrappers.cpp.
References ListNamedValueSD().
Referenced by HandleALOption().
| DWORD ListDefaultAccessACL | ( | ) |
Definition at line 32 of file wrappers.cpp.
References ListNamedValueSD().
Referenced by HandleDAOption().
| DWORD ListDefaultLaunchACL | ( | ) |
Definition at line 38 of file wrappers.cpp.
References ListNamedValueSD().
Referenced by HandleDLOption().
| DWORD ListNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName | |||
| ) |
Definition at line 307 of file sdmgmt.cpp.
References GetNamedValueSD(), ListACL(), and NIL.
Referenced by ListAppIDAccessACL(), ListAppIDLaunchACL(), ListDefaultAccessACL(), and ListDefaultLaunchACL().
| DWORD MakeSDAbsolute | ( | PSECURITY_DESCRIPTOR | OldSD, | |
| PSECURITY_DESCRIPTOR * | NewSD | |||
| ) |
Definition at line 118 of file sdmgmt.cpp.
References NIL.
Referenced by AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
| DWORD RemovePrincipalFromACL | ( | PACL | Acl, | |
| LPTSTR | Principal | |||
| ) |
Definition at line 176 of file aclmgmt.cpp.
References GetPrincipalSID(), and NIL.
Referenced by RemovePrincipalFromNamedValueSD().
| DWORD RemovePrincipalFromNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName, | |||
| LPTSTR | Principal, | |||
| bool | install_defaults = true | |||
| ) |
Definition at line 476 of file sdmgmt.cpp.
References AddAccessAllowedACEToACL(), GetNamedValueSD(), MakeSDAbsolute(), NIL, RemovePrincipalFromACL(), and SetNamedValueSD().
Referenced by ChangeAppIDAccessACL(), ChangeAppIDLaunchACL(), ChangeDefaultAccessACL(), and ChangeDefaultLaunchACL().
| DWORD SetAccountRights | ( | LPTSTR | User, | |
| LPTSTR | Privilege | |||
| ) |
Definition at line 172 of file srvcmgmt.cpp.
References GetPrincipalSID(), NULL, and STR2UNI.
Referenced by SetRunAsPassword().
| DWORD SetNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName, | |||
| SECURITY_DESCRIPTOR * | SD | |||
| ) |
Definition at line 202 of file sdmgmt.cpp.
References NULL.
Referenced by AddPrincipalToNamedValueSD(), and RemovePrincipalFromNamedValueSD().
| DWORD SetRunAsPassword | ( | LPTSTR | AppID, | |
| LPTSTR | Password | |||
| ) |
| DWORD SetRunAsPassword | ( | LPTSTR | AppID, | |
| LPTSTR | Principal, | |||
| LPTSTR | Password | |||
| ) |
| LPTSTR SystemMessage | ( | LPTSTR | szBuffer, | |
| HRESULT | hr | |||
| ) |
| DWORD ZapAppIDLaunchACL | ( | LPTSTR | AppID | ) |
Definition at line 72 of file wrappers.cpp.
References ZapNamedValueSD().
Referenced by HandleALOption().
| DWORD ZapNamedValueSD | ( | HKEY | RootKey, | |
| LPTSTR | KeyName, | |||
| LPTSTR | ValueName | |||
| ) |
Definition at line 349 of file sdmgmt.cpp.
References AddPrincipalToNamedValueSD(), and NIL.
Referenced by ZapAppIDLaunchACL().
1.5.1