A
A
always_drunkking2021-07-05 02:09:21
C++ / C#
always_drunkking, 2021-07-05 02:09:21

Why does include tlhelp32.h need to be placed after windows.h?

As I understand it, any Win32 header must be placed after win.h
Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Vorobyov, 2021-07-05
@always_drunkking

Because macros are declared in windows.h
If you open the header codeNOTE: windows.h/winbase.h must be #included first , you will see the following comment: . At a minimum, windows.h contains this, which is used repeatedly in the course of TlHelp32.h:
#define WINAPI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question