IsGUIThread function user32
Determines whether the calling thread is already a GUI thread. It can also optionally convert the thread to a GUI thread.
BOOL IsGUIThread(
BOOL bConvert
);
Implementation
int IsGUIThread(int bConvert) => _IsGUIThread(bConvert);