}
Stream_Read_UINT32(s, minmaxinfo->windowId); /* windowId (4 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxWidth); /* maxWidth (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxHeight); /* maxHeight (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxPosX); /* maxPosX (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxPosY); /* maxPosY (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->minTrackWidth); /* minTrackWidth (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->minTrackHeight); /* minTrackHeight (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxTrackWidth); /* maxTrackWidth (2 bytes) */
- Stream_Read_UINT16(s, minmaxinfo->maxTrackHeight); /* maxTrackHeight (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxWidth); /* maxWidth (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxHeight); /* maxHeight (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxPosX); /* maxPosX (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxPosY); /* maxPosY (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->minTrackWidth); /* minTrackWidth (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->minTrackHeight); /* minTrackHeight (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxTrackWidth); /* maxTrackWidth (2 bytes) */
+ Stream_Read_INT16(s, minmaxinfo->maxTrackHeight); /* maxTrackHeight (2 bytes) */
return CHANNEL_RC_OK;
}
Stream_Read_UINT16(s, isMoveSizeStart); /* isMoveSizeStart (2 bytes) */
localMoveSize->isMoveSizeStart = (isMoveSizeStart != 0) ? TRUE : FALSE;
Stream_Read_UINT16(s, localMoveSize->moveSizeType); /* moveSizeType (2 bytes) */
- Stream_Read_UINT16(s, localMoveSize->posX); /* posX (2 bytes) */
- Stream_Read_UINT16(s, localMoveSize->posY); /* posY (2 bytes) */
+ Stream_Read_INT16(s, localMoveSize->posX); /* posX (2 bytes) */
+ Stream_Read_INT16(s, localMoveSize->posY); /* posY (2 bytes) */
return CHANNEL_RC_OK;
}
if (!s || !getAppidResp)
return ERROR_INVALID_PARAMETER;
- if (Stream_GetRemainingLength(s) < 516)
+ if (Stream_GetRemainingLength(s) < 524)
{
WLog_ERR(TAG, "Stream_GetRemainingLength failed!");
return ERROR_INVALID_DATA;
}
Stream_Read_UINT32(s, getAppidResp->windowId); /* windowId (4 bytes) */
- Stream_Read(s, (BYTE*) & (getAppidResp->applicationId), 512); /* applicationId (256 UNICODE chars) */
+ Stream_Read(s, (BYTE*) & (getAppidResp->applicationId), 520); /* applicationId (260 UNICODE chars) */
return CHANNEL_RC_OK;
}
return ERROR_INVALID_PARAMETER;
Stream_Write_UINT32(s, sysmenu->windowId); /* windowId (4 bytes) */
- Stream_Write_UINT16(s, sysmenu->left); /* left (2 bytes) */
- Stream_Write_UINT16(s, sysmenu->top); /* top (2 bytes) */
+ Stream_Write_INT16(s, sysmenu->left); /* left (2 bytes) */
+ Stream_Write_INT16(s, sysmenu->top); /* top (2 bytes) */
return ERROR_SUCCESS;
}
return ERROR_INVALID_PARAMETER;
Stream_Write_UINT32(s, windowMove->windowId); /* windowId (4 bytes) */
- Stream_Write_UINT16(s, windowMove->left); /* left (2 bytes) */
- Stream_Write_UINT16(s, windowMove->top); /* top (2 bytes) */
- Stream_Write_UINT16(s, windowMove->right); /* right (2 bytes) */
- Stream_Write_UINT16(s, windowMove->bottom); /* bottom (2 bytes) */
+ Stream_Write_INT16(s, windowMove->left); /* left (2 bytes) */
+ Stream_Write_INT16(s, windowMove->top); /* top (2 bytes) */
+ Stream_Write_INT16(s, windowMove->right); /* right (2 bytes) */
+ Stream_Write_INT16(s, windowMove->bottom); /* bottom (2 bytes) */
return ERROR_SUCCESS;
}
}
Stream_Write_UINT32(s, snap->windowId);
- Stream_Write_UINT16(s, snap->left);
- Stream_Write_UINT16(s, snap->top);
- Stream_Write_UINT16(s, snap->right);
- Stream_Write_UINT16(s, snap->bottom);
+ Stream_Write_INT16(s, snap->left);
+ Stream_Write_INT16(s, snap->top);
+ Stream_Write_INT16(s, snap->right);
+ Stream_Write_INT16(s, snap->bottom);
error = rail_send_pdu(rail, s, TS_RAIL_ORDER_SNAP_ARRANGE);
Stream_Free(s, TRUE);
return error;
#define TS_RAIL_CLIENTSTATUS_AUTORECONNECT 0x00000002
#define TS_RAIL_CLIENTSTATUS_ZORDER_SYNC 0x00000004
#define TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED 0x00000010
+#define TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED 0x00000020
#define TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED 0x00000040
#define TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED 0x00000080
#define TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED 0x00000200
struct _RAIL_SYSMENU_ORDER
{
UINT32 windowId;
- UINT16 left;
- UINT16 top;
+ INT16 left;
+ INT16 top;
};
typedef struct _RAIL_SYSMENU_ORDER RAIL_SYSMENU_ORDER;
struct _RAIL_MINMAXINFO_ORDER
{
UINT32 windowId;
- UINT16 maxWidth;
- UINT16 maxHeight;
- UINT16 maxPosX;
- UINT16 maxPosY;
- UINT16 minTrackWidth;
- UINT16 minTrackHeight;
- UINT16 maxTrackWidth;
- UINT16 maxTrackHeight;
+ INT16 maxWidth;
+ INT16 maxHeight;
+ INT16 maxPosX;
+ INT16 maxPosY;
+ INT16 minTrackWidth;
+ INT16 minTrackHeight;
+ INT16 maxTrackWidth;
+ INT16 maxTrackHeight;
};
typedef struct _RAIL_MINMAXINFO_ORDER RAIL_MINMAXINFO_ORDER;
UINT32 windowId;
BOOL isMoveSizeStart;
UINT16 moveSizeType;
- UINT16 posX;
- UINT16 posY;
+ INT16 posX;
+ INT16 posY;
};
typedef struct _RAIL_LOCALMOVESIZE_ORDER RAIL_LOCALMOVESIZE_ORDER;
struct _RAIL_WINDOWMOVE_ORDER
{
UINT32 windowId;
- UINT16 left;
- UINT16 top;
- UINT16 right;
- UINT16 bottom;
+ INT16 left;
+ INT16 top;
+ INT16 right;
+ INT16 bottom;
};
typedef struct _RAIL_WINDOWMOVE_ORDER RAIL_WINDOW_MOVE_ORDER;
struct _RAIL_GET_APPID_RESP_ORDER
{
UINT32 windowId;
- WCHAR applicationId[256];
+ WCHAR applicationId[260];
};
typedef struct _RAIL_GET_APPID_RESP_ORDER RAIL_GET_APPID_RESP_ORDER;
struct _RAIL_SNAP_ARRANGE
{
UINT32 windowId;
- UINT16 left;
- UINT16 top;
- UINT16 right;
- UINT16 bottom;
+ INT16 left;
+ INT16 top;
+ INT16 right;
+ INT16 bottom;
};
typedef struct _RAIL_SNAP_ARRANGE RAIL_SNAP_ARRANGE;
struct _RAIL_GET_APPID_RESP_EX
{
UINT32 windowID;
- WCHAR applicationID[512 / sizeof(WCHAR)];
+ WCHAR applicationID[520 / sizeof(WCHAR)];
UINT32 processId;
- WCHAR processImageName[512 / sizeof(WCHAR)];
+ WCHAR processImageName[520 / sizeof(WCHAR)];
};
typedef struct _RAIL_GET_APPID_RESP_EX RAIL_GET_APPID_RESP_EX;