A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__os__mswin__p_8hpp_source.html below:

NCBI C++ ToolKit: src/corelib/ncbi_os_mswin_p.hpp Source File

1 #ifndef CORELIB___NCBI_OS_MSWIN_P__HPP 2 #define CORELIB___NCBI_OS_MSWIN_P__HPP 40 #if !defined(NCBI_OS_MSWIN) 41 # error "ncbi_os_mswin_p.hpp can be used on MS Windows platforms only" 94  static bool GetObjectOwner

(

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  bool

enable,

bool

*

prev

= 0);

181  bool

enable,

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