X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fipcmessages.h;h=a3fda63b9e7290441c0cf63cb9e14b7841e5718e;hb=e20b7220513e6010d883ae76ca1cf2c8f0ec26af;hp=aa69d34c470c6a134a52b2922b234744e481619e;hpb=08309c482bda11b6a86066409d08a99789ab2f5d;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/include/ipcmessages.h b/Usermode/Applications/axwin3_src/include/ipcmessages.h index aa69d34c..a3fda63b 100644 --- a/Usermode/Applications/axwin3_src/include/ipcmessages.h +++ b/Usermode/Applications/axwin3_src/include/ipcmessages.h @@ -12,12 +12,15 @@ #include typedef struct sAxWin_IPCMessage tAxWin_IPCMessage; -typedef struct sIPCMsg_Return tIPCMsg_Return; +typedef struct sIPCMsg_ReturnInt tIPCMsg_ReturnInt; typedef struct sIPCMsg_CreateWin tIPCMsg_CreateWin; typedef struct sIPCMsg_ShowWindow tIPCMsg_ShowWindow; typedef struct sIPCMsg_SetWindowPos tIPCMsg_SetWindowPos; typedef struct sIPCMsg_SendMsg tIPCMsg_SendMsg; +typedef struct sIPCMsg_GetDisplayDims tIPCMsg_GetDisplayDims; +typedef struct sIPCMsg_RetDisplayDims tIPCMsg_RetDisplayDims; + /** * \name Flags for IPC Messages * \{ @@ -37,7 +40,7 @@ struct sAxWin_IPCMessage char Data[]; }; -struct sIPCMsg_Return +struct sIPCMsg_ReturnInt { uint32_t Value; }; @@ -51,7 +54,7 @@ struct sIPCMsg_CreateWin struct sIPCMsg_SendMsg { - uint32_t Dest; + uint32_t Remote; // Dest/Source for Server/Client bound uint16_t ID; uint16_t Length; char Data[]; @@ -70,13 +73,30 @@ struct sIPCMsg_SetWindowPos uint8_t bSetDims; }; +struct sIPCMsg_GetDisplayDims +{ + uint16_t DisplayID; +}; + +struct sIPCMsg_RetDisplayDims +{ + uint16_t X; + uint16_t Y; + uint16_t W; + uint16_t H; +}; + enum eAxWin_IPCMessageTypes { IPCMSG_PING, //!< Get the server version + IPCMSG_GETDISPLAYCOUNT, + IPCMSG_GETDISPLAYDIMS, + IPCMSG_SENDMSG, //!< Send a message to another window (or to self) IPCMSG_CREATEWIN, //!< Create a window IPCMSG_DESTROYWIN, //!< Destroy a window IPCMSG_SHOWWINDOW, //!< Show/Hide a window + IPCMSG_FOCUSWINDOW, //!< Give a window focus (no data) IPCMSG_SETWINPOS, //!< Set a window position };