microsoft / microsoft/Windows-classic-samples
SimpleDirect2DApplication fails to compile - identifier FILE_INFO_BY_HANDLE_CLASS is undefined
Open
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
I downloaded Visual Studio and have been trying some of these samples. This application did not compile.
The error is pointing to line 1065 of fileapi.h.
WINBASEAPI
BOOL
WINAPI
SetFileInformationByHandle(
_In_ HANDLE hFile,
_In_ FILE_INFO_BY_HANDLE_CLASS FileInformationClass, // Error here
_In_reads_bytes_(dwBufferSize) LPVOID lpFileInformation,
_In_ DWORD dwBufferSize
);
I'm running on Windows 11 Home.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the SimpleDirect2DApplication sample and reproduce the compile failure using the details in the report. Inspect line 1065 of fileapi.h and the use of FILE_INFO_BY_HANDLE_CLASS, then determine what change is needed for the sample to compile successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100