winsiderss / systeminformer

A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com
https://systeminformer.sourceforge.io
MIT License
10.53k stars 1.36k forks source link

Compilation error after installing Windows SDK (10.0.26100) #2072

Closed sonyps5201314 closed 1 month ago

sonyps5201314 commented 1 month ago

Brief description of your issue

2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(881,16): error C2011: '_FILE_STAT_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(917,16): error C2011: '_FILE_STAT_LX_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(944,16): error C2011: '_FILE_CASE_SENSITIVE_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(881,16): error C2011: '_FILE_STAT_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(917,16): error C2011: '_FILE_STAT_LX_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(944,16): error C2011: '_FILE_CASE_SENSITIVE_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(881,16): error C2011: '_FILE_STAT_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(917,16): error C2011: '_FILE_STAT_LX_INFORMATION': 'struct' type redefinition 2>M:\DISASSEMBLE_TOOLS\systeminformer\systeminformer\phnt\include\ntioapi.h(944,16): error C2011: '_FILE_CASE_SENSITIVE_INFORMATION': 'struct' type redefinit

Steps to reproduce (optional)

https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/

Expected behavior (optional)

everything is ok.

Actual behavior (optional)

error

Environment (optional)

vs2022 v17.10 win11
jxy-s commented 1 month ago

Fixed here đź‘Ť: https://github.com/winsiderss/systeminformer/commit/060790a298177dea9cdc99663821bfea17de9c5b

sonyps5201314 commented 1 month ago

Thanks very much!