remove the Test project.

This commit is contained in:
Zhen Tang 2013-07-15 11:04:10 +08:00
parent 066ae10ed7
commit a865ba843a
7 changed files with 0 additions and 557 deletions

View File

@ -1,318 +0,0 @@
#pragma once
#ifdef MONITOR_EXPORTS
#define MONITOR_API __declspec(dllexport)
#else
#define MONITOR_API __declspec(dllimport)
#endif
#include <list>
#include <string>
using namespace std;
class MONITOR_API Common
{
public:
static string WideStringToString(const wstring & str);
static wstring StringToWideString(const string & str);
static double GetCounterValue(const wchar_t * fullCounterPath);
static double GetCounterValueWithIdle(const wchar_t * fullCounterPath,int idleTime);
static list<wstring> GetInstanceName(const wchar_t * objectName);
static list<wstring> GetCounterList(const wchar_t * objectName);
};
class MONITOR_API LogicalDisk
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetFreeSpacePercent(const wchar_t * instanceName);
static double GetFreeMegabytes(const wchar_t * instanceName);
static double GetCurrentDiskQueueLength(const wchar_t * instanceName);
static double GetDiskTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskQueueLength(const wchar_t * instanceName, int idleTime);
static double GetDiskReadTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskReadQueueLength(const wchar_t * instanceName, int idleTime);
static double GetDiskWriteTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskWriteQueueLength(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskTransferTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskReadTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskWriteTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskTransfersPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskReadsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskWritesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskReadBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskWriteBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerTransfer(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerRead(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerWrite(const wchar_t * instanceName, int idleTime);
static double GetIdleTimePercent(const wchar_t * instanceName, int idleTime);
static double GetSplitIOPerSecond(const wchar_t * instanceName, int idleTime);
};
class MONITOR_API Memory
{
public:
static list<wstring> GetCounterList();
static double GetPageFaultsPerSecond(int idleTime);
static double GetAvailableBytes();
static double GetCommittedBytes();
static double GetCommitLimit();
static double GetWriteCopiesPerSecond(int idleTime);
static double GetTransitionFaultsPerSecond(int idleTime);
static double GetCacheFaultsPerSecond(int idleTime);
static double GetDemandZeroFaultsPerSecond(int idleTime);
static double GetPagesPerSecond(int idleTime);
static double GetPagesInputPerSecond(int idleTime);
static double GetPageReadsPerSecond(int idleTime);
static double GetPagesOutputPerSecond(int idleTime);
static double GetPoolPagedBytes();
static double GetPoolNonpagedBytes();
static double GetPageWritesPerSecond(int idleTime);
static double GetPoolPagedAllocs();
static double GetPoolNonpagedAllocs();
static double GetFreeSystemPageTableEntries();
static double GetCacheBytes();
static double GetCacheBytesPeak();
static double GetPoolPagedResidentBytes();
static double GetSystemCodeTotalBytes();
static double GetSystemCodeResidentBytes();
static double GetSystemDriverTotalBytes();
static double GetSystemDriverResidentBytes();
static double GetSystemCacheResidentBytes();
static double GetCommittedBytesInUsePercent();
static double GetAvailableKiloBytes();
static double GetAvailableMegaBytes();
static double GetTransitionPagesRepurposedPerSecond(int idleTime);
static double GetFreeAndZeroPageListBytes();
static double GetModifiedPageListBytes();
static double GetStandbyCacheReserveBytes();
static double GetStandbyCacheNormalPriorityBytes();
static double GetStandbyCacheCoreBytes();
static double GetLongTermAverageStandbyCacheLifetimes();
};
class MONITOR_API NetworkInterface
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetBytesTotalPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsReceivedPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsSentPerSecond(const wchar_t * instanceName, int idleTime);
static double GetCurrentBandwidth(const wchar_t * instanceName);
static double GetBytesReceivedPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsReceivedUnicastPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsReceivedNonUnicastPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsReceivedDiscarded(const wchar_t * instanceName);
static double GetPacketsReceivedErrors(const wchar_t * instanceName);
static double GetPacketsReceivedUnknown(const wchar_t * instanceName);
static double GetBytesSentPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsSentUnicastPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsSentNonUnicastPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPacketsOutboundDiscarded(const wchar_t * instanceName);
static double GetPacketsOutboundErrors(const wchar_t * instanceName);
static double GetOutputQueueLength(const wchar_t * instanceName);
static double GetOffloadedConnections(const wchar_t * instanceName);
static double GetTcpActiveRscConnections(const wchar_t * instanceName);
static double GetTcpRscCoalescedPacketsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetTcpRscExceptionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetTcpRscAveragePacketSize(const wchar_t * instanceName);
};
class MONITOR_API PhysicalDisk
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetCurrentDiskQueueLength(const wchar_t * instanceName);
static double GetDiskTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskQueueLength(const wchar_t * instanceName, int idleTime);
static double GetDiskReadTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskReadQueueLength(const wchar_t * instanceName, int idleTime);
static double GetDiskWriteTimePercent(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskWriteQueueLength(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskTransferTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskReadTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskWriteTimeInSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskTransfersPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskReadsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskWritesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskReadBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDiskWriteBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerTransfer(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerRead(const wchar_t * instanceName, int idleTime);
static double GetAverageDiskBytesPerWrite(const wchar_t * instanceName, int idleTime);
static double GetIdleTimePercent(const wchar_t * instanceName, int idleTime);
static double GetSplitIOPerSecond(const wchar_t * instanceName, int idleTime);
};
class MONITOR_API Process
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetProcessorTimePercent(const wchar_t * instanceName, int idleTime);
static double GetUserTimePercent(const wchar_t * instanceName, int idleTime);
static double GetPrivilegedTimePercent(const wchar_t * instanceName, int idleTime);
static double GetVirtualBytesPeak(const wchar_t * instanceName);
static double GetVirtualBytes(const wchar_t * instanceName);
static double GetPageFaultsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetWorkingSetPeak(const wchar_t * instanceName);
static double GetWorkingSet(const wchar_t * instanceName);
static double GetPageFileBytesPeak(const wchar_t * instanceName);
static double GetPageFileBytes(const wchar_t * instanceName);
static double GetPrivateBytes(const wchar_t * instanceName);
static double GetThreadCount(const wchar_t * instanceName);
static double GetPriorityBase(const wchar_t * instanceName);
static double GetElapsedTime(const wchar_t * instanceName);
static double GetProcessId(const wchar_t * instanceName);
static double GetCreatingProcessId(const wchar_t * instanceName);
static double GetPoolPagedBytes(const wchar_t * instanceName);
static double GetPoolNonpagedBytes(const wchar_t * instanceName);
static double GetHandleCount(const wchar_t * instanceName);
static double GetIOReadOperationsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIOWriteOperationsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIODataOperationsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIOOtherOperationsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIOReadBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIOWriteBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIODataBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetIOOtherBytesPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPrivateWorkingSet(const wchar_t * instanceName);
};
class MONITOR_API Processor
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetProcessorTimePercent(const wchar_t * instanceName, int idleTime);
static double GetUserTimePercent(const wchar_t * instanceName, int idleTime);
static double GetPrivilegedTimePercent(const wchar_t * instanceName, int idleTime);
static double GetInterruptsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDpcTimePercent(const wchar_t * instanceName, int idleTime);
static double GetInterruptTimePercent(const wchar_t * instanceName, int idleTime);
static double GetDpcsQueuedPerSecond(const wchar_t * instanceName, int idleTime);
static double GetDpcRate(const wchar_t * instanceName);
static double GetIdleTimePercent(const wchar_t * instanceName, int idleTime);
static double GetC1TimePercent(const wchar_t * instanceName, int idleTime);
static double GetC2TimePercent(const wchar_t * instanceName, int idleTime);
static double GetC3TimePercent(const wchar_t * instanceName, int idleTime);
static double GetC1TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetC2TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetC3TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
};
class MONITOR_API ProcessorInformation
{
public:
static list<wstring> GetInstances();
static list<wstring> GetCounterList();
static double GetPerformanceLimitFlags(const wchar_t * instanceName);
static double GetPerformanceLimitPercent(const wchar_t * instanceName);
static double GetPrivilegedUtilityPercent(const wchar_t * instanceName, int idleTime);
static double GetProcessorUtilityPercent(const wchar_t * instanceName, int idleTime);
static double GetProcessorPerformancePercent(const wchar_t * instanceName, int idleTime);
static double GetIdleBreakEventsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetAverageIdleTime(const wchar_t * instanceName, int idleTime);
static double GetClockInterruptsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetProcessorStateFlags(const wchar_t * instanceName);
static double GetPercentageOfMaximumFrequency(const wchar_t * instanceName);
static double GetProcessorFrequency(const wchar_t * instanceName);
static double GetParkingStatus(const wchar_t * instanceName);
static double GetPriorityTimePercent(const wchar_t * instanceName, int idleTime);
static double GetC3TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetC2TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetC1TransitionsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetC3TimePercent(const wchar_t * instanceName, int idleTime);
static double GetC2TimePercent(const wchar_t * instanceName, int idleTime);
static double GetC1TimePercent(const wchar_t * instanceName, int idleTime);
static double GetIdleTimePercent(const wchar_t * instanceName, int idleTime);
static double GetDpcRate(const wchar_t * instanceName);
static double GetDpcsQueuedPerSecond(const wchar_t * instanceName, int idleTime);
static double GetInterruptTimePercent(const wchar_t * instanceName, int idleTime);
static double GetDpcTimePercent(const wchar_t * instanceName, int idleTime);
static double GetInterruptsPerSecond(const wchar_t * instanceName, int idleTime);
static double GetPrivilegedTimePercent(const wchar_t * instanceName, int idleTime);
static double GetUserTimePercent(const wchar_t * instanceName, int idleTime);
static double GetProcessorTimePercent(const wchar_t * instanceName, int idleTime);
};
class MONITOR_API System
{
public:
static list<wstring> GetCounterList();
static double GetFileReadOperationsPerSecond(int idleTime);
static double GetFileWriteOperationsPerSecond(int idleTime);
static double GetFileControlOperationsPerSecond(int idleTime);
static double GetFileReadBytesPerSecond(int idleTime);
static double GetFileWriteBytesPerSecond(int idleTime);
static double GetFileControlBytesPerSecond(int idleTime);
static double GetContextSwitchesPerSecond(int idleTime);
static double GetSystemCallsPerSecond(int idleTime);
static double GetFileDataOperationsPerSecond(int idleTime);
static double GetSystemUpTime();
static double GetProcessorQueueLength();
static double GetProcessesCount();
static double GetThreadsCount();
static double GetAlignmentFixupsPerSecond(int idleTime);
static double GetExceptionDispatchesPerSecond(int idleTime);
static double GetFloatingEmulationsPerSecond(int idleTime);
static double GetRegistryQuotaInUsePercent();
};
class MONITOR_API TCPv4
{
public:
static list<wstring> GetCounterList();
static double GetSegmentsPerSecond(int idleTime);
static double GetConnectionsEstablished();
static double GetConnectionsActive();
static double GetConnectionsPassive();
static double GetConnectionFailures();
static double GetConnectionsReset();
static double GetSegmentsReceivedPerSecond(int idleTime);
static double GetSegmentsSentPerSecond(int idleTime);
static double GetSegmentsRetransmittedPerSecond(int idleTime);
};
class MONITOR_API TCPv6
{
public:
static list<wstring> GetCounterList();
static double GetSegmentsPerSecond(int idleTime);
static double GetConnectionsEstablished();
static double GetConnectionsActive();
static double GetConnectionsPassive();
static double GetConnectionFailures();
static double GetConnectionsReset();
static double GetSegmentsReceivedPerSecond(int idleTime);
static double GetSegmentsSentPerSecond(int idleTime);
static double GetSegmentsRetransmittedPerSecond(int idleTime);
};
class MONITOR_API UDPv4
{
public:
static list<wstring> GetCounterList();
static double GetDatagramsPerSecond(int idleTime);
static double GetDatagramsReceivedPerSecond(int idleTime);
static double GetDatagramsNoPortPerSecond(int idleTime);
static double GetDatagramsReceivedErrors();
static double GetDatagramsSentPerSecond(int idleTime);
};
class MONITOR_API UDPv6
{
public:
static list<wstring> GetCounterList();
static double GetDatagramsPerSecond(int idleTime);
static double GetDatagramsReceivedPerSecond(int idleTime);
static double GetDatagramsNoPortPerSecond(int idleTime);
static double GetDatagramsReceivedErrors();
static double GetDatagramsSentPerSecond(int idleTime);
};

View File

@ -1,18 +0,0 @@
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
list<wstring> counterList=UDPv6::GetCounterList();
list<wstring>::iterator iter;
std::wcout.imbue(std::locale("chs"));
for(iter=counterList.begin();iter!=counterList.end();iter++)
{
wcout<<(*iter).c_str()<<endl;
}
while(1)
{
printf("%lf\n",UDPv6::GetDatagramsSentPerSecond(1000));
}
return 0;
}

View File

@ -1,160 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{50CE9AFE-3102-4568-8107-2E3D77F2FC22}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Test</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="MonitorApi.h" />
<ClInclude Include="stdafx.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="Test.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="源文件">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="头文件">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="资源文件">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="MonitorApi.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="Test.cpp">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>

View File

@ -1 +0,0 @@
#include "stdafx.h"

View File

@ -1,23 +0,0 @@
#pragma once
#ifdef _DEBUG
#ifdef _WIN64
#pragma comment(lib,"../x64/Debug/Monitor.lib")
#else
#pragma comment(lib,"../Debug/Monitor.lib")
#endif
#else
#ifdef _WIN64
#pragma comment(lib,"../x64/Release/Monitor.lib")
#else
#pragma comment(lib,"../Release/Monitor.lib")
#endif
#endif
#include <Windows.h>
#include <tchar.h>
#include <iostream>
using namespace std;
#include "MonitorApi.h"