M
M
Mercury132016-03-18 02:25:53
C++ / C#
Mercury13, 2016-03-18 02:25:53

How do I specify in MinGW that Windows Vista features are being used?

I work with asynchronous input-output. By just switching to it, I accelerated the reading of the file (linear or with small jumps forward) three times.
However, since I said "A", I want to say "B". Need a feature CancelIoExavailable in Vista+. What is needed #defineto enable this feature?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AtomKrieg, 2016-03-18
@Mercury13

https://sourceforge.net/p/mingw-w64/mingw-w64/ci/e...
[e4a881]: mingw-w64-headers/include/ioapiset.h

#if _WIN32_WINNT >= 0x0600
  WINBASEAPI WINBOOL WINAPI GetQueuedCompletionStatusEx (HANDLE CompletionPort, LPOVERLAPPED_ENTRY lpCompletionPortEntries, ULONG ulCount, PULONG ulNumEntriesRemoved, DWORD dwMilliseconds, WINBOOL fAlertable);
  WINBASEAPI WINBOOL WINAPI CancelIoEx (HANDLE hFile, LPOVERLAPPED lpOverlapped);

But you check in your version of the libraries for the compiler just in case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question