Avatar of Nobuo Miwa
Nobuo Miwa

asked on 

[C++] How do I know FILE_FLAG_OVERLAPPED has been set in the file handle ?

Hello Experts,

I want to know FILE_FLAG_OVERLAPPED flag has been set in the file handle.

I got a file handle from DuplicateHandle() and that is HANDLE_TYPE_FILE and
my target file name.
I want to read that file by using duplicated handle, but I don't know
FILE_FLAG_OVERLAPPED flag has been set or not into that file handle.

If I know that flag information, I can call ReadFile() with/without OVERLAPPED
structure pointer.

Any hints welcome.

Windows 7 32bit
C++Builder

Nobuo Miwa
Microsoft DevelopmentC++Visual C++.NET

Avatar of undefined
Last Comment
Nobuo Miwa

8/22/2022 - Mon