KSMETHOD structure

The KSMETHOD structure specifies a single kernel streaming method within a method set.

The KSEVENT, KSMETHOD, and KSPROPERTY structures are aliases for the KSIDENTIFIER structure. 因此,它们的定义是相同的。

Syntax

struct KSMETHOD {
  GUID Set;
  ULONG Id;
  ULONG Flags;
};

Members

Set

指定标识内核流式处理方法集的 GUID。

For more information about method set GUIDs, see the Remarks section below.

Id

指定方法集的成员。

Flags

指定请求类型。 Also, see the KSMETHOD_TYPE_Xxx flags for KSMETHOD_ITEM).

请求可以包含下表中列出的值的组合。

Value 方法请求的类型
KSMETHOD_TYPE_BASICSUPPORT 指示查询微型驱动程序以确定它是否支持方法集的指定方法。
KSMETHOD_TYPE_SEND 指示微型驱动程序应执行指定的方法。 方法对给定参数的影响必须对客户端知道,也就是说,无论是从中读取参数、写入参数还是两者都不读取。 The minidriver uses the KSMETHOD_ITEM structure to specify the method's effect on the parameters.
KSMETHOD_TYPE_SETSUPPORT 指示查询微型驱动程序以确定它是否支持指定的方法集。
KSMETHOD_TYPE_TOPOLOGY Indicates that the specified method is of type KSM_NODE, where the NodeId member is the identifier of the topology node. 请勿自行设置此标志;而是使用此列表中的其他标志进行 OR。

Remarks

Microsoft提供了多个系统定义的方法集 GUID。 Minidrivers specify one of these GUIDs in the Set member. Kernel streaming method sets typically begin with a KSMETHODSETID prefix. Kernel streaming method sets are defined in ks.h, ksmedia.h, bdamedia.h, and possibly other header files.

有关内核流式处理事件的详细信息,请参阅 KS 属性、事件和方法

客户端可以使用IOCTL_KS_METHOD请求和 KSMETHOD 结构在微型驱动程序处理的内核流对象上执行方法。 For more information, see KS Methods.

Requirements

Header: ks.h (include Ks.h)

See also

KSEVENT

KSPROPERTY

KSIDENTIFIER

KSMETHOD_ITEM

KSE_NODE