Ignore:
Timestamp:
Jul 31, 2015, 11:08:24 AM (7 years ago)
Author:
roman
Message:

Added CoInitializeSecurity? and AppID

Location:
trunk/Utilities/Miscellaneous/FilterGraphService/FilterGraphService
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Miscellaneous/FilterGraphService/FilterGraphService/Application.cpp

    r496 r498  
    3131                // Impersonation Level of RPC_C_IMP_LEVEL_IDENTIFY
    3232                // and an appropriate Non NULL Security Descriptor.
     33                _ATLTRY
     34                {
     35                        static const DWORD g_nAuthenticationLevel = RPC_C_AUTHN_LEVEL_PKT;
     36                        static const DWORD g_nImpersonationLevel = RPC_C_IMP_LEVEL_IMPERSONATE;
     37                        static const DWORD g_nAuthenticationCapabilities = EOAC_NONE;
     38                        ATLENSURE_SUCCEEDED(CoInitializeSecurity(NULL, -1, NULL, NULL, g_nAuthenticationLevel, g_nImpersonationLevel, NULL, g_nAuthenticationCapabilities, NULL));
     39                }
     40                _ATLCATCHALL()
     41                {
     42                        ATLTRACE(_T("An exception has been caught\n"));
     43                }
    3344                return S_OK;
    3445        }
  • trunk/Utilities/Miscellaneous/FilterGraphService/FilterGraphService/Module.rgs

    r496 r498  
    11HKCR
    22{
     3        NoRemove AppID
     4        {
     5                '{9C4402F4-5831-4593-B788-917609D12169}' = s 'Alax.Info FilterGraphService Sample'
     6                'FilterGraphService.exe'
     7                {
     8                        val AppID = s '{9C4402F4-5831-4593-B788-917609D12169}'
     9                }
     10        }
    311}
Note: See TracChangeset for help on using the changeset viewer.