Does it work? I have this in a plugin and I always see the "FALSE" message.
Code:
BOOL WINAPI InitializePlugin( VOID )
{
Printf(L"QueryIsGUI returned %s\r\n", QueryIsGUI() ? L"TRUE" : L"FALSE");