INIT_AVCSTRM_HEADER macro (avcstrm.h)

The INIT_AVCSTRM_HEADER macro initializes the SizeOfThisBlock, Version and Function members of the AVC_STREAM_REQUEST_BLOCK structure.

Syntax

void INIT_AVCSTRM_HEADER(
  [in]  AVCStrm,
  [in]  Request
);

Parameters

[in] AVCStrm

Points to a caller-allocated AVC_STREAM_REQUEST_BLOCK structure.

[in] Request

Indicates the type of the request (function code) from the AVCSTRM_FUNCTION enumeration. Each function code is documented under the IOCTL_AVCSTRM_CLASS topic.

Return value

None

Remarks

The macro is defined as follows:

#define INIT_AVCSTRM_HEADER( AVCStrm, Request ) \
    (AVCStrm)->;SizeOfThisBlock = sizeof(AVC_STREAM_REQUEST_BLOCK); \
    (AVCStrm)->;Function = Request;                    \
    (AVCStrm)->;Version  = CURRENT_AVCSTRM_DDI_VERSION;

Requirements

Requirement Value
Target Platform Desktop
Header avcstrm.h (include Avcstrm.h)

See also

AVCSTRM_ABORT_STREAMING

AVCSTRM_CLOSE

AVCSTRM_GET_PROPERTY

AVCSTRM_GET_STATE

AVCSTRM_OPEN

AVCSTRM_READ

AVCSTRM_SET_PROPERTY

AVCSTRM_SET_STATE

AVCSTRM_WRITE

AVC_STREAM_REQUEST_BLOCK

IOCTL_AVCSTRM_CLASS