DeviceExplorer icon indicating copy to clipboard operation
DeviceExplorer copied to clipboard

error C2065 in vs 2019

Open kouzhudong opened this issue 3 years ago • 2 comments

4>...\DeviceExplorer\DevExp\Helpers.cpp(137,5): error C2065: “DEVPKEY_Device_CreatorProcessId”: 未声明的标识符 4>...\DeviceExplorer\DevExp\Helpers.cpp(246,5): error C2065: “DEVPKEY_PciDevice_D3ColdSupport”: 未声明的标识符 4>...\DeviceExplorer\DevExp\Helpers.cpp(546,5): error C2065: “GUID_DEVINTERFACE_NETUIO”: 未声明的标识符

kouzhudong avatar Jan 16 '22 07:01 kouzhudong

I'm using VS 2022 with the latest SDK installed (Windows 11 SDK).

zodiacon avatar Jan 16 '22 08:01 zodiacon

`From be52f14516747201d535e1e05fa2c4ea7c0b7b4c Mon Sep 17 00:00:00 2001 From: wolfcod <> Date: Sun, 16 Jan 2022 14:24:07 +0300 Subject: [PATCH] For VS2019


DevExp/DevExp.vcxproj | 1 - DevExp/Helpers.cpp | 10 +++++----- DevExpC/DevExpC.vcxproj | 2 +- DevExpCore/DevExpCore.vcxproj | 2 +- WTLHelper/WTLHelper.vcxproj | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/DevExp/DevExp.vcxproj b/DevExp/DevExp.vcxproj index 8bf47a6..f448c13 100644 --- a/DevExp/DevExp.vcxproj +++ b/DevExp/DevExp.vcxproj @@ -39,7 +39,6 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries>

  • <PlatformToolset>v143</PlatformToolset>
  • <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> diff --git a/DevExp/Helpers.cpp b/DevExp/Helpers.cpp index f4d3ccd..dacdc73 100644 --- a/DevExp/Helpers.cpp +++ b/DevExp/Helpers.cpp @@ -134,7 +134,7 @@ CString Helpers::GetPropertyName(DEVPROPKEY const& key) { { DEVPKEY_Device_SoftRestartSupported, L"Soft Restart Supported" }, { DEVPKEY_Device_ExtendedAddress, L"Extended Address" }, { DEVPKEY_Device_AssignedToGuest, L"Assigned to Guest" },
  •   { DEVPKEY_Device_CreatorProcessId, L"Creator Process ID" },
    
  •   //{ DEVPKEY_Device_CreatorProcessId, L"Creator Process ID" },
      { DEVPKEY_Device_SessionId, L"Session ID" },
      { DEVPKEY_Device_InstallDate, L"Install Date" },
      { DEVPKEY_Device_FirstInstallDate, L"First Install Date" },
    

@@ -241,9 +241,9 @@ CString Helpers::GetPropertyName(DEVPROPKEY const& key) { { DEVPKEY_PciDevice_AtsSupport, L"PCI ATS Support" }, { DEVPKEY_PciDevice_RequiresReservedMemoryRegion, L"PCI Requires Reserved Memory Region" }, { DEVPKEY_PciDevice_AtomicsSupported, L"PCI Atomics Supported" },

  •   { DEVPKEY_PciDevice_SupportedLinkSubState, L"PCI Supported Link Substate" },
    
  •   { DEVPKEY_PciDevice_OnPostPath, L"PCI On POST Path" },
    
  •   { DEVPKEY_PciDevice_D3ColdSupport, L"PCI D3 Cold Support" },
    
  •   //{ DEVPKEY_PciDevice_SupportedLinkSubState, L"PCI Supported Link Substate" },
    
  •   //{ DEVPKEY_PciDevice_OnPostPath, L"PCI On POST Path" },
    
  •   //{ DEVPKEY_PciDevice_D3ColdSupport, L"PCI D3 Cold Support" },
    
      { DEVPKEY_PciRootBus_SupportedSpeedsAndModes, L"PCI Supported Speeds and Modes" },
      { DEVPKEY_PciRootBus_DeviceIDMessagingCapable, L"PCI Device ID Message Capable" },
    

@@ -543,7 +543,7 @@ CString Helpers::DeviceInterfaceToString(GUID const& guid) { { GUID_DEVINTERFACE_CDCHANGER, L"CD Changer" }, { GUID_DEVINTERFACE_DISPLAY_ADAPTER, L"Display Adapter" }, { GUID_DEVINTERFACE_HIDDEN_VOLUME, L"Hidden Volume" },

  •   { GUID_DEVINTERFACE_NETUIO, L"Net UIO" },
    
  •   //{ GUID_DEVINTERFACE_NETUIO, L"Net UIO" },
      { GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR, L"Serial Bus Enumerator" },
      { GUID_DEVINTERFACE_STORAGEPORT, L"Storage Port" },
      { GUID_DEVINTERFACE_PARCLASS, L"Parallel Port" },
    

diff --git a/DevExpC/DevExpC.vcxproj b/DevExpC/DevExpC.vcxproj index 89728f8..4802fbf 100644 --- a/DevExpC/DevExpC.vcxproj +++ b/DevExpC/DevExpC.vcxproj @@ -42,7 +42,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries>

  • <PlatformToolset>v143</PlatformToolset>
  • <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> diff --git a/DevExpCore/DevExpCore.vcxproj b/DevExpCore/DevExpCore.vcxproj index 9ce05a2..35bb400 100644 --- a/DevExpCore/DevExpCore.vcxproj +++ b/DevExpCore/DevExpCore.vcxproj @@ -42,7 +42,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries>
  • <PlatformToolset>v143</PlatformToolset>
  • <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> diff --git a/WTLHelper/WTLHelper.vcxproj b/WTLHelper/WTLHelper.vcxproj index 077aa77..fb4f9de 100644 --- a/WTLHelper/WTLHelper.vcxproj +++ b/WTLHelper/WTLHelper.vcxproj @@ -50,7 +50,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries>
  • <PlatformToolset>v143</PlatformToolset>
  • <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> -- 2.31.1.windows.1

`

wolfcod avatar Jan 16 '22 11:01 wolfcod