2.2.9.2 MILMSG_CAPTUREBITSREPLY
The MILMSG_CAPTUREBITSREPLY packet is sent in response to a MILCMD_TARGET_CAPTUREBITS message. It is followed by a byte payload containing the captured pixels. The size of the pixel buffer is specified by the cbBitsSize field.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
controlCode |
|||||||||||||||||||||||||||||||
reserved0 |
|||||||||||||||||||||||||||||||
reserved1 |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
cbBitsSize |
|||||||||||||||||||||||||||||||
dxgiFormat |
|||||||||||||||||||||||||||||||
hr |
|||||||||||||||||||||||||||||||
reserved2 (32 bytes) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
pixels (variable) |
|||||||||||||||||||||||||||||||
... |
controlCode (4 bytes): A 32-bit unsigned integer containing the control code for this message. The value of this field MUST be equal to 0x00000002.
reserved0 (4 bytes): Reserved. MUST be set to zero when sent, and MUST be ignored when received.
reserved1 (8 bytes): Reserved. MUST be set to zero when sent, and MUST be ignored when received.
cbBitsSize (4 bytes): A 32-bit unsigned integer. The size, in bytes, of the pixel buffer that follows this notification.
dxgiFormat (4 bytes): A DXGI_FORMAT enumeration. The pixel format of the pixel buffer.
hr (4 bytes): An HRESULT code that indicates the result of the capture operation.
reserved2 (32 bytes): Reserved. MUST be set to zero when sent, and MUST be ignored when received.
pixels (variable): A variable-length array of 32-bit unsigned integers. The pixels that represent the captured render target.