// ks.h
typedef struct {
LONGLONG PresentationStart;
LONGLONG Duration;
KSPIN_INTERFACE Interface;
LONG Rate;
ULONG Flags;
} KSRATE, *PKSRATE;
View the official Windows Driver Kit DDI referenceNo description available.
The query is passed a KSRATE structure appended to the property containing the rate request (known as a KSRATE_CAPABILITY structure), and is returned a KSRATE structure filled in with the capability given the rate request.
PresentationStartSpecifies the start point for the rate in presentation time units.
DurationSpecifies the duration of the rate in presentation time units.
InterfaceA structure of type KSPIN_INTERFACE that specifies either the interface used in the connection this rate request is being sent to, or the interface of a related connection. This allows the time units to be interpreted by the pin.
RateSpecifies the rate in terms of 1/10th percentage points, where 1000 is the nominal 1.0 rate, 500 is 0.5 rate, and so on. Negative numbers indicate reverse rates.
FlagsPossible flag values are listed in the following table.
| Flag | Description |
|---|---|
| KSRATE_NOPRESENTATIONSTART | Specifies that there is no valid start time in this rate change request or query. |
| KSRATE_NOPRESENTATIONDURATION | Specifies that there is no valid duration in this rate change request or query. |