RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Microsoft::UAC Class Reference

Static Public Member Functions

static DWORD RunAsAdministrator (LPCTSTR path=NULL, LPCTSTR params=NULL)
 Launch itself or specified file as administrator The caller must check IsRunAsAdmin() before call, and quit itself after call More...
 
static bool IsRunAsAdmin ()
 

Member Function Documentation

DWORD UAC::RunAsAdministrator ( LPCTSTR  path = NULL,
LPCTSTR  params = NULL 
)
static

Launch itself or specified file as administrator The caller must check IsRunAsAdmin() before call, and quit itself after call

Returns
ERROR_SUCCESS if successful, ERROR_CANCELLED if the user refused the elevation

The documentation for this class was generated from the following files: