Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails (vs2022 v17.10 win11) with error C2011: '_FILE_STAT_INFORMATION': 'struct' type redefinition #273

Open
Nmx67 opened this issue Jul 21, 2024 · 0 comments

Comments

@Nmx67
Copy link

Nmx67 commented Jul 21, 2024

condition : Windows SDK (10.0.26100)
Building the ClrPhLib dependency generates error :
error C2011: '_FILE_STAT_INFORMATION': 'struct' type redefinition

Encapsulating the stryct defintion in file ntioapi.h (near line 701) as in:
#if !defined(NTDDI_WIN11_GE) || (NTDDI_VERSION < NTDDI_WIN11_GE)
typedef struct _FILE_STAT_INFORMATION
{
...........
} FILE_STAT_INFORMATION, *PFILE_STAT_INFORMATION;
#endif
resolves the issue.
Credit goes to (winsiderss/systeminformer#2072)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant