Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetFormat method sets the data format of the wave stream.
Syntax
NTSTATUS SetFormat(
[in] PKSDATAFORMAT DataFormat
);
Parameters
[in] DataFormat
Pointer to a KSDATAFORMAT structure that describes the requested data format.
Return value
The following table shows the possible return status codes.
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The call was successful |
| STATUS_INVALID_PARAMETER | The specified format is either not valid or not supported by the driver, or the format cannot be changed while the stream is running. |
Remarks
None
Requirements
| Requirement | Value |
|---|---|
| Header | portcls.h |
| IRQL | PASSIVE_LEVEL |