Changeset 150 for trunk/DirectShowSpy
- Timestamp:
- Nov 23, 2012, 6:44:52 AM (11 years ago)
- Location:
- trunk/DirectShowSpy
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/Configuration.h
r149 r150 64 64 CPath m_sPath; 65 65 CPath m_sUserPath; 66 67 static BOOL IsAdministrator()68 {69 bool bIsMember = FALSE;70 return CAccessToken().CheckTokenMembership(Sids::Admins(), &bIsMember) && bIsMember;71 }72 66 73 67 public: … … 129 123 m_RegisterButton.SetElevationRequiredState(TRUE); 130 124 m_UnregisterButton.SetElevationRequiredState(TRUE); 125 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes 126 m_UserRegisterButton.SetElevationRequiredState(TRUE); 127 m_UserUnregisterButton.SetElevationRequiredState(TRUE); 131 128 } 132 129 } … … 204 201 CWaitCursor WaitCursor; 205 202 const BOOL bSilent = !(GetKeyState(VK_SCROLL) & 1); 206 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n \"%s\""), bSilent ? _T("/s") : _T(""), GetPath())); 203 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes 204 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n \"%s\""), bSilent ? _T("/s") : _T(""), GetPath()), TRUE); 207 205 if(bSilent) 208 206 MessageBeep(nExitCode ? MB_ICONERROR : MB_OK); … … 223 221 const BOOL bSilent = !(GetKeyState(VK_SCROLL) & 1); 224 222 const CPath& sPath = m_sUserPath; //GetPath(); 225 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n /u \"%s\""), bSilent ? _T("/s") : _T(""), sPath)); 223 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes 224 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n /u \"%s\""), bSilent ? _T("/s") : _T(""), sPath), TRUE); 226 225 if(bSilent) 227 226 MessageBeep(nExitCode ? MB_ICONERROR : MB_OK); … … 274 273 CPath m_sPath; 275 274 CPath m_sUserPath; 276 277 static BOOL IsAdministrator()278 {279 bool bIsMember = FALSE;280 return CAccessToken().CheckTokenMembership(Sids::Admins(), &bIsMember) && bIsMember;281 }282 275 283 276 public: … … 341 334 m_RegisterButton.SetElevationRequiredState(TRUE); 342 335 m_UnregisterButton.SetElevationRequiredState(TRUE); 343 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes344 m_UserRegisterButton.SetElevationRequiredState(TRUE);345 m_UserUnregisterButton.SetElevationRequiredState(TRUE);346 336 } 347 337 } … … 419 409 CWaitCursor WaitCursor; 420 410 const BOOL bSilent = !(GetKeyState(VK_SCROLL) & 1); 421 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes 422 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n \"%s\""), bSilent ? _T("/s") : _T(""), m_PropertySheet.m_sPropPagePath), TRUE); 411 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n \"%s\""), bSilent ? _T("/s") : _T(""), m_PropertySheet.m_sPropPagePath)); 423 412 if(bSilent) 424 413 MessageBeep(nExitCode ? MB_ICONERROR : MB_OK); … … 438 427 CWaitCursor WaitCursor; 439 428 const BOOL bSilent = !(GetKeyState(VK_SCROLL) & 1); 440 // NOTE: Even per-user registration needs elevation, since we are hooking COM classes 441 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n /u \"%s\""), bSilent ? _T("/s") : _T(""), m_PropertySheet.m_sPropPagePath), TRUE); 429 const DWORD nExitCode = ExecuteWait(AtlFormatString(_T("%s /i:user /n /u \"%s\""), bSilent ? _T("/s") : _T(""), m_PropertySheet.m_sPropPagePath)); 442 430 if(bSilent) 443 431 MessageBeep(nExitCode ? MB_ICONERROR : MB_OK); … … 529 517 return sPath; 530 518 } 519 static BOOL IsAdministrator() 520 { 521 bool bIsMember = FALSE; 522 return CAccessToken().CheckTokenMembership(Sids::Admins(), &bIsMember) && bIsMember; 523 } 531 524 static HANDLE Execute(const CString& sParameters, BOOL bAsAdministrator = FALSE) 532 525 { -
trunk/DirectShowSpy/DirectShowSpy.rc
r149 r150 62 62 63 63 VS_VERSION_INFO VERSIONINFO 64 FILEVERSION 1, 0, 0, 80 264 FILEVERSION 1, 0, 0, 807 65 65 PRODUCTVERSION 1,0,0,1 66 66 FILEFLAGSMASK 0x3fL … … 81 81 VALUE "CompanyName", "Roman Ryltsov" 82 82 VALUE "FileDescription", "Alax.Info DirectShow Spy Module" 83 VALUE "FileVersion", "1, 0, 0, 80 2\0"83 VALUE "FileVersion", "1, 0, 0, 807\0" 84 84 VALUE "InternalName", "DirectShowSpy.dll" 85 85 VALUE "LegalCopyright", "Copyright © Alax.Info, Roman Ryltsov, 2008-2011" -
trunk/DirectShowSpy/DirectShowSpy_i.c
r149 r150 7 7 8 8 /* File created by MIDL compiler version 7.00.0500 */ 9 /* at Fri Nov 23 16: 34:5620129 /* at Fri Nov 23 16:43:33 2012 10 10 */ 11 11 /* Compiler settings for .\DirectShowSpy.idl: -
trunk/DirectShowSpy/DirectShowSpy_i.h
r149 r150 5 5 6 6 /* File created by MIDL compiler version 7.00.0500 */ 7 /* at Fri Nov 23 16: 34:5620127 /* at Fri Nov 23 16:43:33 2012 8 8 */ 9 9 /* Compiler settings for .\DirectShowSpy.idl: -
trunk/DirectShowSpy/DirectShowSpy_p.c
r149 r150 5 5 6 6 /* File created by MIDL compiler version 7.00.0500 */ 7 /* at Fri Nov 23 16: 34:5620127 /* at Fri Nov 23 16:43:33 2012 8 8 */ 9 9 /* Compiler settings for .\DirectShowSpy.idl:
Note: See TracChangeset
for help on using the changeset viewer.