Changeset 361


Ignore:
Timestamp:
Jan 30, 2015, 11:57:24 AM (9 years ago)
Author:
roman
Message:

VS2012 update and extended printout with EnumDisplayMonitors? data

Location:
trunk/Utilities/MonitorInformation
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/MonitorInformation/MainDialog.h

    r288 r361  
    11////////////////////////////////////////////////////////////
    2 // MainDialog.h
    3 //
    4 // Copyright (C) Alax.Info, 2006-2008
     2// Copyright (C) Alax.Info, 2006-2015
    53// http://alax.info
    64//
     
    97//
    108// Created by Roman Ryltsov roman@alax.info
    11 //
    12 // $Id: MainDialog.h 219 2010-08-20 12:57:35Z alax $
    139
    1410#pragma once
     
    5652        public:
    5753        // CMonitorInformation
    58                 CMonitorInformation() throw()
    59                 {
    60                 }
    61                 CMonitorInformation(const CMonitorInformation& MonitorInformation) throw() :
     54                CMonitorInformation()
     55                {
     56                }
     57                CMonitorInformation(const CMonitorInformation& MonitorInformation) :
    6258                        m_MonitorInformation(MonitorInformation.m_MonitorInformation)
    6359                {
    6460                }
    65                 CMonitorInformation(const MYMONITORINFO& MonitorInformation) throw() :
     61                CMonitorInformation(const MYMONITORINFO& MonitorInformation) :
    6662                        m_MonitorInformation(MonitorInformation)
    6763                {
     
    8884        BOOL EnumerateMonitors(HMONITOR hMonitor, CDCHandle MonitorDc, const CRect& MonitorPosition)
    8985        {
    90                 m_sText.AppendFormat(_T("Monitor %d at (%d, %d) - (%d, %d):\r\n"), m_nMonitorIndex, MonitorPosition.left, MonitorPosition.top, MonitorPosition.right, MonitorPosition.bottom);
     86                m_sText.AppendFormat(_T("Monitor %d at (%d, %d) - (%d, %d):") _T("\r\n"), m_nMonitorIndex, MonitorPosition.left, MonitorPosition.top, MonitorPosition.right, MonitorPosition.bottom);
    9187                MYMONITORINFO MonitorInformation;
    9288                ZeroMemory(&MonitorInformation, sizeof MonitorInformation);
    9389                MonitorInformation.cbSize = sizeof MonitorInformation;
    9490                ATLVERIFY(GetMonitorInfo(hMonitor, &MonitorInformation));
    95                 m_sText.AppendFormat(_T("  Coordinates (rcMonitor): (%d, %d) - (%d, %d)\r\n"), MonitorInformation.rcMonitor.left, MonitorInformation.rcMonitor.top, MonitorInformation.rcMonitor.right, MonitorInformation.rcMonitor.bottom);
    96                 m_sText.AppendFormat(_T("  Work Area (rcWork): (%d, %d) - (%d, %d)\r\n"), MonitorInformation.rcWork.left, MonitorInformation.rcWork.top, MonitorInformation.rcWork.right, MonitorInformation.rcWork.bottom);
    97                 m_sText.AppendFormat(_T("  Flags (dwFlags): 0x%x\r\n"), MonitorInformation.dwFlags);
     91                m_sText.AppendFormat(_T("  Coordinates (rcMonitor): (%d, %d) - (%d, %d)") _T("\r\n"), MonitorInformation.rcMonitor.left, MonitorInformation.rcMonitor.top, MonitorInformation.rcMonitor.right, MonitorInformation.rcMonitor.bottom);
     92                m_sText.AppendFormat(_T("  Work Area (rcWork): (%d, %d) - (%d, %d)") _T("\r\n"), MonitorInformation.rcWork.left, MonitorInformation.rcWork.top, MonitorInformation.rcWork.right, MonitorInformation.rcWork.bottom);
     93                m_sText.AppendFormat(_T("  Flags (dwFlags): 0x%X") _T("\r\n"), MonitorInformation.dwFlags);
    9894                __if_exists(MYMONITORINFO::szDevice)
    9995                {
    100                         m_sText.AppendFormat(_T("  Device Name (szDevice): %s\r\n"), MonitorInformation.szDevice);
    101                 }
     96                        m_sText.AppendFormat(_T("  Device Name (szDevice): %s") _T("\r\n"), MonitorInformation.szDevice);
     97                }
     98                ATLASSERT(!MonitorDc);
     99                //m_sText.Append(_T("    Capabilities:") _T("\r\n"));
     100                //m_sText.AppendFormat(_T("    VREFRESH: %d") _T("\r\n"), MonitorDc.GetDeviceCaps(VREFRESH));
    102101                m_sText.Append(_T("\r\n"));
    103102                ATLVERIFY(m_MonitorInformationArray.Add(MonitorInformation) == m_nMonitorIndex);
     
    105104                return TRUE;
    106105        }
    107         static BOOL CALLBACK EnumerateMonitors(HMONITOR hMonitor, HDC hMonitorDc, RECT* pMonitorPosition, LPARAM nParameter) throw()
     106        static BOOL CALLBACK EnumerateMonitors(HMONITOR hMonitor, HDC hMonitorDc, RECT* pMonitorPosition, LPARAM nParameter)
    108107        {
    109108                return ((CMainDialog*) nParameter)->EnumerateMonitors(hMonitor, hMonitorDc, *pMonitorPosition);
     
    114113        VOID Initialize()
    115114        {
     115                // NOTE: EnumDisplayDevices vs EnumDisplayMonitors http://stackoverflow.com/questions/27042576/enumdisplaydevices-vs-enumdisplaymonitors
    116116                m_MonitorInformationArray.RemoveAll();
    117117                m_nMonitorIndex = 0;
    118118                m_sText.Empty();
     119                #pragma region System Metrics
    119120                m_sText.Append(_T("System Metrics:\r\n"));
    120121                m_sText.AppendFormat(_T("  SM_XVIRTUALSCREEN: %d\r\n"), GetSystemMetrics(SM_XVIRTUALSCREEN));
     
    125126                m_sText.AppendFormat(_T("  SM_SAMEDISPLAYFORMAT: %d\r\n"), GetSystemMetrics(SM_SAMEDISPLAYFORMAT));
    126127                m_sText.Append(_T("\r\n"));
     128                #pragma endregion
    127129                EnumDisplayMonitors(NULL, NULL, EnumerateMonitors, (LPARAM) this);
     130                #pragma region Display Devices
     131                m_sText.Append(_T("Display Devices:") _T("\r\n"));
     132                m_sText.Append(_T("\r\n"));
     133                for(DWORD nIndex = 0; ; nIndex++)
     134                {
     135                        DISPLAY_DEVICE DisplayDevice = { sizeof DisplayDevice };
     136                        if(!EnumDisplayDevices(NULL, nIndex, &DisplayDevice, EDD_GET_DEVICE_INTERFACE_NAME))
     137                                break;
     138                        m_sText.AppendFormat(_T("  DeviceName: %s") _T("\r\n"), DisplayDevice.DeviceName);
     139                        m_sText.AppendFormat(_T("    DeviceString: %s") _T("\r\n"), DisplayDevice.DeviceString);
     140                        CString sStateFlags;
     141                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_ACTIVE)
     142                                sStateFlags.Append(_T("DISPLAY_DEVICE_ACTIVE | "));
     143                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER)
     144                                sStateFlags.Append(_T("DISPLAY_DEVICE_MIRRORING_DRIVER | "));
     145                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_MODESPRUNED)
     146                                sStateFlags.Append(_T("DISPLAY_DEVICE_MODESPRUNED | "));
     147                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)
     148                                sStateFlags.Append(_T("DISPLAY_DEVICE_PRIMARY_DEVICE | "));
     149                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_REMOVABLE)
     150                                sStateFlags.Append(_T("DISPLAY_DEVICE_REMOVABLE | "));
     151                        if(DisplayDevice.StateFlags & DISPLAY_DEVICE_VGA_COMPATIBLE)
     152                                sStateFlags.Append(_T("DISPLAY_DEVICE_VGA_COMPATIBLE | "));
     153                        sStateFlags.TrimRight(_T(" |"));
     154                        m_sText.AppendFormat(_T("    StateFlags: 0x%X %s") _T("\r\n"), DisplayDevice.StateFlags, sStateFlags);
     155                        if(_tcslen(DisplayDevice.DeviceID))
     156                                m_sText.AppendFormat(_T("    DeviceID: %s") _T("\r\n"), DisplayDevice.DeviceID);
     157                        m_sText.AppendFormat(_T("    DeviceKey: %s") _T("\r\n"), DisplayDevice.DeviceKey);
     158                        m_sText.Append(_T("\r\n"));
     159                        #pragma region
     160                        m_sText.Append(_T("    Settings (Modes):") _T("\r\n"));
     161                        for(DWORD nIndex = (DWORD) -1; ; nIndex++)
     162                        {
     163                                ATLASSERT(ENUM_CURRENT_SETTINGS == (DWORD) -1);
     164                                static const SIZE_T g_nDeviceModeCapacity = 4 << 10;
     165                                CTempBuffer<DEVMODE, g_nDeviceModeCapacity> pDeviceMode(g_nDeviceModeCapacity);
     166                                DEVMODE& DeviceMode = *pDeviceMode;
     167                                ZeroMemory(&DeviceMode, g_nDeviceModeCapacity);
     168                                pDeviceMode->dmSize = sizeof DeviceMode;
     169                                pDeviceMode->dmDriverExtra = g_nDeviceModeCapacity - sizeof DeviceMode;
     170                                if(!EnumDisplaySettingsEx(DisplayDevice.DeviceName, nIndex, &DeviceMode, 0))
     171                                        break;
     172                                if(nIndex == ENUM_CURRENT_SETTINGS)
     173                                        m_sText.AppendFormat(_T("      %s:") _T("\r\n"), _T("Current"));
     174                                else
     175                                        m_sText.AppendFormat(_T("      Mode %d:") _T("\r\n"), nIndex);
     176                                m_sText.AppendFormat(_T("        dmBitsPerPel: %d") _T("\r\n"), DeviceMode.dmBitsPerPel);
     177                                m_sText.AppendFormat(_T("        dmPelsWidth: %d") _T("\r\n"), DeviceMode.dmPelsWidth);
     178                                m_sText.AppendFormat(_T("        dmPelsHeight: %d") _T("\r\n"), DeviceMode.dmPelsHeight);
     179                                m_sText.AppendFormat(_T("        dmDisplayFlags: 0x%X") _T("\r\n"), DeviceMode.dmDisplayFlags);
     180                                m_sText.AppendFormat(_T("        dmDisplayFrequency: %d") _T("\r\n"), DeviceMode.dmDisplayFrequency);
     181                                m_sText.AppendFormat(_T("        dmPosition: %d") _T("\r\n"), DeviceMode.dmPosition);
     182                                m_sText.AppendFormat(_T("        dmDisplayOrientation: %d") _T("\r\n"), DeviceMode.dmDisplayOrientation);
     183                        }
     184                        #pragma endregion
     185                        m_sText.Append(_T("\r\n"));
     186                }
     187                #pragma endregion
    128188        }
    129189
  • trunk/Utilities/MonitorInformation/MonitorInformation.cpp

    r288 r361  
    11////////////////////////////////////////////////////////////
    2 // MonitorInformation.cpp -
     2// Copyright (C) Alax.Info, 2006-2015
     3// http://alax.info
     4//
     5// A permission to use the source code is granted as long as reference to
     6// source website http://alax.info is retained.
     7//
     8// Created by Roman Ryltsov roman@alax.info
    39
    410#include "stdafx.h"
  • trunk/Utilities/MonitorInformation/MonitorInformation.rc

    r288 r361  
    125125
    126126VS_VERSION_INFO VERSIONINFO
    127  FILEVERSION  1, 0, 0, 50
     127 FILEVERSION  1, 0, 0, 59
    128128 PRODUCTVERSION 1,0,0,1
    129129 FILEFLAGSMASK 0x3fL
     
    144144            VALUE "CompanyName", "Alax.Info"
    145145            VALUE "FileDescription", "MonitorInformation Module"
    146             VALUE "FileVersion",  "1, 0, 0, 50\0"
     146            VALUE "FileVersion",  "1, 0, 0, 59\0"
    147147            VALUE "InternalName", "MonitorInformation"
    148148            VALUE "LegalCopyright", "Copyright (C) Alax.Info, 2006-2008"
  • trunk/Utilities/MonitorInformation/MonitorInformation.sln

    r288 r361  
    66        GlobalSection(SolutionConfigurationPlatforms) = preSolution
    77                Debug|Win32 = Debug|Win32
     8                Debug|x64 = Debug|x64
    89                Release|Win32 = Release|Win32
     10                Release|x64 = Release|x64
    911        EndGlobalSection
    1012        GlobalSection(ProjectConfigurationPlatforms) = postSolution
    1113                {3454D960-8277-4756-BD5B-B01DC91590F6}.Debug|Win32.ActiveCfg = Debug|Win32
    1214                {3454D960-8277-4756-BD5B-B01DC91590F6}.Debug|Win32.Build.0 = Debug|Win32
     15                {3454D960-8277-4756-BD5B-B01DC91590F6}.Debug|x64.ActiveCfg = Debug|x64
     16                {3454D960-8277-4756-BD5B-B01DC91590F6}.Debug|x64.Build.0 = Debug|x64
    1317                {3454D960-8277-4756-BD5B-B01DC91590F6}.Release|Win32.ActiveCfg = Release|Win32
    1418                {3454D960-8277-4756-BD5B-B01DC91590F6}.Release|Win32.Build.0 = Release|Win32
     19                {3454D960-8277-4756-BD5B-B01DC91590F6}.Release|x64.ActiveCfg = Release|x64
     20                {3454D960-8277-4756-BD5B-B01DC91590F6}.Release|x64.Build.0 = Release|x64
    1521        EndGlobalSection
    1622        GlobalSection(SolutionProperties) = preSolution
  • trunk/Utilities/MonitorInformation/MonitorInformation.vcxproj

    r288 r361  
    66      <Platform>Win32</Platform>
    77    </ProjectConfiguration>
     8    <ProjectConfiguration Include="Debug|x64">
     9      <Configuration>Debug</Configuration>
     10      <Platform>x64</Platform>
     11    </ProjectConfiguration>
    812    <ProjectConfiguration Include="Release|Win32">
    913      <Configuration>Release</Configuration>
    1014      <Platform>Win32</Platform>
    1115    </ProjectConfiguration>
     16    <ProjectConfiguration Include="Release|x64">
     17      <Configuration>Release</Configuration>
     18      <Platform>x64</Platform>
     19    </ProjectConfiguration>
    1220  </ItemGroup>
    1321  <PropertyGroup Label="Globals">
     
    1826  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    1927    <ConfigurationType>Application</ConfigurationType>
    20     <PlatformToolset>v100</PlatformToolset>
     28    <PlatformToolset>v110_xp</PlatformToolset>
    2129    <UseOfAtl>Static</UseOfAtl>
    2230    <CharacterSet>Unicode</CharacterSet>
    2331    <WholeProgramOptimization>true</WholeProgramOptimization>
    2432  </PropertyGroup>
     33  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
     34    <ConfigurationType>Application</ConfigurationType>
     35    <PlatformToolset>v110_xp</PlatformToolset>
     36    <UseOfAtl>Static</UseOfAtl>
     37    <CharacterSet>Unicode</CharacterSet>
     38    <WholeProgramOptimization>true</WholeProgramOptimization>
     39  </PropertyGroup>
    2540  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    2641    <ConfigurationType>Application</ConfigurationType>
    27     <PlatformToolset>v100</PlatformToolset>
     42    <PlatformToolset>v110_xp</PlatformToolset>
     43    <CharacterSet>Unicode</CharacterSet>
     44  </PropertyGroup>
     45  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
     46    <ConfigurationType>Application</ConfigurationType>
     47    <PlatformToolset>v110_xp</PlatformToolset>
    2848    <CharacterSet>Unicode</CharacterSet>
    2949  </PropertyGroup>
     
    3555    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
    3656  </ImportGroup>
     57  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
     58    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
     59    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
     60  </ImportGroup>
    3761  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
     62    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
     63    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
     64  </ImportGroup>
     65  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
    3866    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    3967    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
     
    4876    <LinkIncremental>true</LinkIncremental>
    4977  </PropertyGroup>
     78  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     79    <LinkIncremental>true</LinkIncremental>
     80    <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir>
     81    <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
     82  </PropertyGroup>
    5083  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    5184    <OutDir>Release\</OutDir>
     
    5386    <LinkIncremental>false</LinkIncremental>
    5487  </PropertyGroup>
     88  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     89    <LinkIncremental>false</LinkIncremental>
     90    <OutDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\</OutDir>
     91    <IntDir>$(SolutionDir)_Bin\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
     92  </PropertyGroup>
    5593  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    5694    <Midl>
     
    87125      <DataExecutionPrevention />
    88126      <TargetMachine>MachineX86</TargetMachine>
     127    </Link>
     128  </ItemDefinitionGroup>
     129  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     130    <Midl>
     131      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     132      <MkTypLibCompatible>false</MkTypLibCompatible>
     133      <GenerateStublessProxies>true</GenerateStublessProxies>
     134      <TypeLibraryName>$(IntDir)MonitorInformation.tlb</TypeLibraryName>
     135      <HeaderFileName>MonitorInformation.h</HeaderFileName>
     136      <DllDataFileName>
     137      </DllDataFileName>
     138      <InterfaceIdentifierFileName>MonitorInformation_i.c</InterfaceIdentifierFileName>
     139      <ProxyFileName>MonitorInformation_p.c</ProxyFileName>
     140    </Midl>
     141    <ClCompile>
     142      <Optimization>Disabled</Optimization>
     143      <PreprocessorDefinitions>WIN32;_WINDOWS;STRICT;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     144      <ExceptionHandling>Async</ExceptionHandling>
     145      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
     146      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
     147      <PrecompiledHeader>Use</PrecompiledHeader>
     148      <WarningLevel>Level3</WarningLevel>
     149      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
     150    </ClCompile>
     151    <ResourceCompile>
     152      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     153      <Culture>0x0409</Culture>
     154      <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     155    </ResourceCompile>
     156    <Link>
     157      <GenerateDebugInformation>true</GenerateDebugInformation>
     158      <SubSystem>Windows</SubSystem>
     159      <RandomizedBaseAddress>false</RandomizedBaseAddress>
     160      <DataExecutionPrevention>
     161      </DataExecutionPrevention>
    89162    </Link>
    90163  </ItemDefinitionGroup>
     
    129202    </Link>
    130203  </ItemDefinitionGroup>
     204  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     205    <Midl>
     206      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     207      <MkTypLibCompatible>false</MkTypLibCompatible>
     208      <GenerateStublessProxies>true</GenerateStublessProxies>
     209      <TypeLibraryName>$(IntDir)MonitorInformation.tlb</TypeLibraryName>
     210      <HeaderFileName>MonitorInformation.h</HeaderFileName>
     211      <DllDataFileName>
     212      </DllDataFileName>
     213      <InterfaceIdentifierFileName>MonitorInformation_i.c</InterfaceIdentifierFileName>
     214      <ProxyFileName>MonitorInformation_p.c</ProxyFileName>
     215    </Midl>
     216    <ClCompile>
     217      <Optimization>Full</Optimization>
     218      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
     219      <IntrinsicFunctions>true</IntrinsicFunctions>
     220      <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
     221      <OmitFramePointers>true</OmitFramePointers>
     222      <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
     223      <PreprocessorDefinitions>WIN32;_WINDOWS;STRICT;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     224      <StringPooling>true</StringPooling>
     225      <ExceptionHandling>Async</ExceptionHandling>
     226      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
     227      <PrecompiledHeader>Use</PrecompiledHeader>
     228      <WarningLevel>Level3</WarningLevel>
     229      <DebugInformationFormat>
     230      </DebugInformationFormat>
     231    </ClCompile>
     232    <ResourceCompile>
     233      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     234      <Culture>0x0409</Culture>
     235      <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     236    </ResourceCompile>
     237    <Link>
     238      <GenerateDebugInformation>true</GenerateDebugInformation>
     239      <SubSystem>Windows</SubSystem>
     240      <RandomizedBaseAddress>false</RandomizedBaseAddress>
     241      <DataExecutionPrevention>
     242      </DataExecutionPrevention>
     243    </Link>
     244  </ItemDefinitionGroup>
    131245  <ItemGroup>
    132246    <ClCompile Include="MonitorInformation.cpp" />
    133247    <ClCompile Include="stdafx.cpp">
    134248      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
     249      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
    135250      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
     251      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
    136252    </ClCompile>
    137253  </ItemGroup>
  • trunk/Utilities/MonitorInformation/stdafx.cpp

    r288 r361  
    11////////////////////////////////////////////////////////////
    2 // stdafx.cpp
    3 //
    4 // Copyright (C) Alax.Info, 2006-2008
     2// Copyright (C) Alax.Info, 2006-2015
    53// http://alax.info
    64//
     
    97//
    108// Created by Roman Ryltsov roman@alax.info
    11 //
    12 // $Id: stdafx.cpp 21 2008-11-22 20:52:51Z alax $
    139
    1410#include "stdafx.h"
  • trunk/Utilities/MonitorInformation/stdafx.h

    r288 r361  
    11////////////////////////////////////////////////////////////
    2 // stdafx.h
    3 //
    4 // Copyright (C) Alax.Info, 2006-2008
     2// Copyright (C) Alax.Info, 2006-2015
    53// http://alax.info
    64//
     
    97//
    108// Created by Roman Ryltsov roman@alax.info
    11 //
    12 // $Id: stdafx.h 21 2008-11-22 20:52:51Z alax $
    139
    1410#pragma once
     
    6460#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
    6561
     62#undef _SYSINFOAPI_H_
    6663#include <atlapp.h>
     64#define _SYSINFOAPI_H_
     65
    6766#include <atlgdi.h>
    6867#include <atluser.h>
Note: See TracChangeset for help on using the changeset viewer.