How to get access to winuser.h structures

I am making simple actor that should be controlled by the 3D Connexion mouse using their SDK.
Following their example I need this kind of while loop that gets events from mouse:

    MSG            msg;      /* incoming message to be evaluated */
BOOL           handled;  /* is message handled yet */
SiSpwEvent     Event;    /* SpaceWare Event */
SiGetEventData EData;    /* SpaceWare Event Data */

handled = SPW_FALSE;     /* init handled */

/* start message loop */
while (GetMessage(&msg, NULL, 0, 0)){
	handled = SPW_FALSE;

	/* init Window platform specific data for a call to SiGetEvent */
	SiGetEventWinInit(&EData, msg.message, msg.wParam, msg.lParam);
      etc. etc.

Problem is that I can not get MSG which is a typedef in WinUtil.h, or BOOL which is part of Windows Type Definitions.

How do I go about this?
Also would it be possible to support this type of mouse not only in unreal editor but also in games?


Hi ilijav,

Try to use this code

#include "AllowWindowsPlatformTypes.h"
#include "HideWindowsPlatformTypes.h"

If you would like to know a little more about why the issue occurred, please take a look at UE4.5 Core.h line 492 or DisableOldUETypes.h (since UE4.6)

Hope it helps!