(
const string& obj_name, SE_OBJECT_TYPE obj_type,
95 string* owner,
string* group,
96 unsigned int* uid = 0,
unsigned int* gid = 0);
101 string* owner,
string* group,
102 unsigned int* uid = 0,
unsigned int* gid = 0);
110 string* owner,
string* group,
111 unsigned int* uid = 0,
unsigned int* gid = 0)
113 return GetObjectOwner(filename, SE_FILE_OBJECT, owner, group, uid, gid);
141 const string& owner,
const string& group =
kEmptyStr,
142 unsigned int* uid = 0 ,
unsigned int* gid = 0);
164 boolenable,
bool*
prev= 0);
181 boolenable,
bool*
prev= 0);
static bool FindProcessEntry(DWORD id, PROCESSENTRY32 &entry)
Find process entry information by process identifier (pid).
static bool GetFileOwner(const string &filename, string *owner, string *group, unsigned int *uid=0, unsigned int *gid=0)
Get file owner name.
static bool GetFilePermissions(const string &path, ACCESS_MASK *permissions)
Get file access permissions.
static string GetUserName(void)
Get name of the current user.
static bool SetTokenPrivilege(HANDLE token, LPCTSTR privilege, bool enable, bool *prev=0)
Enables or disables privileges in the specified access token.
static bool SetFileOwner(const string &filename, const string &owner, const string &group=kEmptyStr, unsigned int *uid=0, unsigned int *gid=0)
Set file object owner.
static bool GetObjectOwner(const string &obj_name, SE_OBJECT_TYPE obj_type, string *owner, string *group, unsigned int *uid=0, unsigned int *gid=0)
Get owner name of specified system object.
static bool SetThreadPrivilege(LPCTSTR privilege, bool enable, bool *prev=0)
Enables or disables privileges for the current thread.
static DLIST_TYPE *DLIST_NAME() prev(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define HANDLE
An abstraction for a file handle.
Defines MS Windows specifics for our "C++" code.
Front end for a platform-specific configuration summary.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4