2.2.3.4 Window-Created PDU (OD_WND_CREATED)

The Window-Created PDU (OD_WND_CREATED) is sent by the sharing manager to notify participants that a window was created or updated. Every window MUST be associated with an application. The window MUST have a corresponding unique ID, and subsequent updates for that window data MUST come as Window-Created PDUs with the same ID (as specified in section 3.2.5.1.4).


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

HDR

Flags

AppId

...

WndId

...

Name (variable)

...

HDR (4 bytes): The common PDU header (as specified in section 2.2.1). The Type field of the common PDU header MUST be set to ODTYPE_WND_CREATED (0x0005).

Flags (2 bytes): A 16-bit, unsigned integer that represents a set of bit flags, in little-endian format, that indicate whether a window is shared or not. A bit is true (or set) if its value is 1. This field MUST be composed of the bitwise OR of one or more of the following values.

Value

Meaning

WINDOW_SHARED

0x0001

The window is shared.

AppId (4 bytes): The 32-bit, unsigned integer that specifies the AppId of the application that owns the window. The integer MUST uniquely identify an application in the application list, as specified in the AppId field description of the Application-Created PDU (section 2.2.3.2).

WndId (4 bytes): A 32-bit, unsigned integer that specifies the unique ID of the window. Implementers can choose any integer that uniquely identifies the window entry within the window list.<3>

Name (variable): A UNICODE_STRING that specifies the name of the window. Implementers can choose any UNICODE_STRING as the Name; there are no restrictions on allowable characters.<4>