Ignore:
Timestamp:
Aug 19, 2016, 11:09:16 PM (8 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/MediaFoundation/EnumerateTransforms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/MediaFoundation/EnumerateTransforms/Application.cpp

    r548 r660  
    8383                        A(MFT_CATEGORY_VIDEO_PROCESSOR)
    8484                        A(MFT_CATEGORY_OTHER)
     85                        #if (WINVER >= _WIN32_WINNT_WIN10_RS1)
     86                                A(MFT_CATEGORY_ENCRYPTOR)
     87                        #endif
    8588                        A(CLSID_VideoInputDeviceCategory) // Kernel streaming (KS) minidriver backed hardware transforms https://msdn.microsoft.com/en-us/library/windows/desktop/ms700134#live_sources
    8689                        A(KSCATEGORY_BRIDGE)
     
    104107                for(auto&& CategoryItem: g_pCategoryMap)
    105108                {
    106                         _tprintf(_T("Category: %hs %ls\n"), CategoryItem.pszName, _PersistHelper::StringFromIdentifier(CategoryItem.Value));
     109                        _tprintf(_T("Category: %hs %ls\n"), (LPCSTR) CategoryItem.pszName, (LPCWSTR) _PersistHelper::StringFromIdentifier(CategoryItem.Value));
    107110                        _tprintf(_T("\n"));
    108111                        _ATLTRY
     
    117120                                        if(pActivate.TryGetString(MFT_FRIENDLY_NAME_Attribute, sFriendlyName))
    118121                                                sItem.Insert(0, AtlFormatString(_T("%s "), sFriendlyName));
    119                                         _tprintf(_T("\t") _T("%s\n"), sItem);
     122                                        _tprintf(_T("\t") _T("%s\n"), (LPCTSTR) sItem);
    120123                                        _ATLTRY
    121124                                        {
     
    169172                                                        #pragma endregion
    170173                                                        if(bStringValueAvailable)
    171                                                                 _tprintf(_T("\t") _T("\t") _T("%s: %s\n"), MF::FormatKey(Key), sStringValue);
     174                                                                _tprintf(_T("\t") _T("\t") _T("%s: %s\n"), (LPCTSTR) MF::FormatKey(Key), (LPCTSTR) sStringValue);
    172175                                                        else
    173                                                                 _tprintf(_T("\t") _T("\t") _T("%s: ??? (0x%X)\n"), MF::FormatKey(Key), MF::CPropVariant::FormatType(vValue.vt));
     176                                                                _tprintf(_T("\t") _T("\t") _T("%s: ??? (%s)\n"), (LPCTSTR) MF::FormatKey(Key), (LPCTSTR) MF::CPropVariant::FormatType(vValue.vt));
    174177                                                }
     178                                                //_ATLTRY
     179                                                //{
     180                                                //      CComPtr<IMFTransform> pTransform;
     181                                                //      __C(pActivate->ActivateObject(__uuidof(IMFTransform), (VOID**) &pTransform));
     182                                                //      const CComQIPtr<ISpecifyPropertyPages> pSpecifyPropertyPages = pTransform;
     183                                                //      if(pSpecifyPropertyPages)
     184                                                //      {
     185                                                //              CAUUID Pages;
     186                                                //              ZeroMemory(&Pages, sizeof Pages);
     187                                                //              __C(pSpecifyPropertyPages->GetPages(&Pages));
     188                                                //      }
     189                                                //}
     190                                                //_ATLCATCHALL()
     191                                                //{
     192                                                //      _Z_EXCEPTION();
     193                                                //}
    175194                                        }
    176195                                        _ATLCATCHALL()
     
    258277        catch(CArgumentException Exception)
    259278        {
    260                 _tprintf(_T("Fatal Error: %s\n"), Exception.m_sMessage);
     279                _tprintf(_T("Fatal Error: %s\n"), (LPCTSTR) Exception.m_sMessage);
    261280                return 1;
    262281        }
    263282        _ATLCATCH(Exception)
    264283        {
    265                 _tprintf(_T("Fatal Error: 0x%08x %s\n"), (HRESULT) Exception, AtlFormatSystemMessage(Exception).TrimRight(_T("\t\n\r .")));
     284                _tprintf(_T("Fatal Error: 0x%08X %s\n"), (HRESULT) Exception, (LPCTSTR) AtlFormatSystemMessage(Exception).TrimRight(_T("\t\n\r .")));
    266285                return 1;
    267286        }
  • trunk/Utilities/MediaFoundation/EnumerateTransforms/EnumerateTransforms.sln

    r445 r660  
    11
    22Microsoft Visual Studio Solution File, Format Version 12.00
    3 # Visual Studio 2013
     3# Visual Studio 2015
    44Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EnumerateTransforms", "EnumerateTransforms.vcxproj", "{DCEC8B03-EA75-4595-83B1-0EBFD9A2E316}"
    55EndProject
  • trunk/Utilities/MediaFoundation/EnumerateTransforms/EnumerateTransforms.vcxproj

    r445 r660  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     2<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    33  <ItemGroup Label="ProjectConfigurations">
    44    <ProjectConfiguration Include="Debug|Win32">
     
    2323    <Keyword>Win32Proj</Keyword>
    2424    <RootNamespace>EnumerateTransforms</RootNamespace>
     25    <WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
    2526  </PropertyGroup>
    2627  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
     
    2829    <ConfigurationType>Application</ConfigurationType>
    2930    <UseDebugLibraries>true</UseDebugLibraries>
    30     <PlatformToolset>v120</PlatformToolset>
     31    <PlatformToolset>v140</PlatformToolset>
    3132    <CharacterSet>Unicode</CharacterSet>
    3233    <UseOfAtl>Static</UseOfAtl>
     
    3536    <ConfigurationType>Application</ConfigurationType>
    3637    <UseDebugLibraries>true</UseDebugLibraries>
    37     <PlatformToolset>v120</PlatformToolset>
     38    <PlatformToolset>v140</PlatformToolset>
    3839    <CharacterSet>Unicode</CharacterSet>
    3940    <UseOfAtl>Static</UseOfAtl>
     
    4243    <ConfigurationType>Application</ConfigurationType>
    4344    <UseDebugLibraries>false</UseDebugLibraries>
    44     <PlatformToolset>v120</PlatformToolset>
     45    <PlatformToolset>v140</PlatformToolset>
    4546    <WholeProgramOptimization>true</WholeProgramOptimization>
    4647    <CharacterSet>Unicode</CharacterSet>
     
    5051    <ConfigurationType>Application</ConfigurationType>
    5152    <UseDebugLibraries>false</UseDebugLibraries>
    52     <PlatformToolset>v120</PlatformToolset>
     53    <PlatformToolset>v140</PlatformToolset>
    5354    <WholeProgramOptimization>true</WholeProgramOptimization>
    5455    <CharacterSet>Unicode</CharacterSet>
Note: See TracChangeset for help on using the changeset viewer.