Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

devprop.cpp File Reference

#include "ICMUI.H"

Go to the source code of this file.

Functions

BOOL IsAdmin (void)

Variables

TCHAR gacColorDir [MAX_PATH] = _TEXT("\0")
TCHAR gacFilter [MAX_PATH] = _TEXT("\0")
CONST DWORD PrinterUIHelpIds []
CONST DWORD ScannerUIHelpIds []
CONST DWORD MonitorUIHelpIds []


Function Documentation

BOOL IsAdmin void   ) 
 

Definition at line 44 of file devprop.cpp.

References BOOL, FALSE, and NULL.

Referenced by CMonitorProfileManagement::CMonitorProfileManagement(), CScannerProfileManagement::CScannerProfileManagement(), and NtAssignProcessToJobObject().

00045 { 00046 BOOL fReturn = FALSE; 00047 PSID psidAdmin; 00048 00049 SID_IDENTIFIER_AUTHORITY SystemSidAuthority= SECURITY_NT_AUTHORITY; 00050 00051 if ( AllocateAndInitializeSid ( &SystemSidAuthority, 2, 00052 SECURITY_BUILTIN_DOMAIN_RID, 00053 DOMAIN_ALIAS_RID_ADMINS, 00054 0, 0, 0, 0, 0, 0, &psidAdmin) ) 00055 { 00056 if(!CheckTokenMembership( NULL, psidAdmin, &fReturn )) { 00057 00058 // 00059 // explicitly disallow Admin Access if CheckTokenMembership fails. 00060 // 00061 00062 fReturn = FALSE; 00063 } 00064 FreeSid ( psidAdmin); 00065 } 00066 00067 return ( fReturn ); 00068 }


Variable Documentation

TCHAR gacColorDir[MAX_PATH] = _TEXT("\0")
 

Definition at line 601 of file devprop.cpp.

Referenced by CAddProfileDialog::CAddProfileDialog().

TCHAR gacFilter[MAX_PATH] = _TEXT("\0")
 

Definition at line 602 of file devprop.cpp.

Referenced by CAddProfileDialog::CAddProfileDialog().

CONST DWORD MonitorUIHelpIds[]
 

Initial value:

Definition at line 1267 of file devprop.cpp.

Referenced by CMonitorProfileManagement::OnContextMenu(), and CMonitorProfileManagement::OnHelp().

CONST DWORD PrinterUIHelpIds[]
 

Initial value:

Definition at line 710 of file devprop.cpp.

Referenced by CPrinterProfileManagement::OnContextMenu(), and CPrinterProfileManagement::OnHelp().

CONST DWORD ScannerUIHelpIds[]
 

Initial value:

Definition at line 1200 of file devprop.cpp.

Referenced by CScannerProfileManagement::OnContextMenu(), and CScannerProfileManagement::OnHelp().


Generated on Sat May 15 19:43:27 2004 for test by doxygen 1.3.7