Skip to content

Latest commit

 

History

History
121 lines (73 loc) · 5.21 KB

nf-portcls-pcnewdmachannel.md

File metadata and controls

121 lines (73 loc) · 5.21 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:portcls.PcNewDmaChannel
PcNewDmaChannel function (portcls.h)
The PcNewDmaChannel function creates a new DMA-channel object. This function is obsolete; for more information, see the following comments.
audio\pcnewdmachannel.htm
audio
05/08/2018
PcNewDmaChannel function
PcNewDmaChannel, PcNewDmaChannel function [Audio Devices], audio.pcnewdmachannel, audpc-routines_51deae73-e4dd-4b39-ae73-77cf31f8ec06.xml, portcls/PcNewDmaChannel
portcls.h
Portcls.h
Universal
Obsolete. For all new audio drivers, use a IPortWaveXxx::NewXxxDmaChannel method instead. The PortCls system driver implements the PcNewDmaChannel function in Microsoft Windows 98/Me and in Windows 2000 and later operating systems.
Portcls.lib
PASSIVE_LEVEL
Windows
PcNewDmaChannel
portcls/PcNewDmaChannel
APIRef
kbSyntax
LibDef
Portcls.lib
Portcls.dll
PcNewDmaChannel

PcNewDmaChannel function

-description

The PcNewDmaChannel function creates a new DMA-channel object. This function is obsolete; for more information, see the following comments.

-parameters

-param OutDmaChannel [out]

Output pointer for the DMA-channel object created by this function. This parameter points to a caller-allocated pointer variable into which the function outputs a reference to the newly created IDmaChannel object. Specify a valid, non-NULL pointer value for this parameter.

-param OuterUnknown [in, optional]

Pointer to the IUnknown interface of an object that needs to aggregate the object. Unless aggregation is required, set this parameter to NULL.

-param PoolType [in]

Specifies the type of storage pool from which the object is to be allocated. This is a POOL_TYPE enumeration value. Specify a nonpaged pool type for this parameter.

-param DeviceDescription [in]

Pointer to a description of the physical device for which the caller is requesting a DMA object. This parameter points to a structure of type DEVICE_DESCRIPTION.

-param DeviceObject [in]

Pointer to the device object for the physical adapter device. This parameter points to a system structure of type DEVICE_OBJECT.

-returns

PcNewDmaChannel returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

-remarks

PcNewDmaChannel is obsolete. For all new audio drivers, use one of the following IPortWave Xxx::NewXxxDmaChannel methods in place of PcNewDmaChannel:

IPortWavePci::NewMasterDmaChannel

IPortWaveCyclic::NewMasterDmaChannel

IPortWaveCyclic::NewSlaveDmaChannel

For the sake of backward compatibility, the PortCls system driver will continue to support PcNewDmaChannel, and existing drivers can continue to use this function.

Specify the PoolType parameter to be one of the nonpaged pool types defined in the POOL_TYPE enumeration. The DMA-channel object must not reside in paged memory because several of the methods in the IDmaChannel interface can be called from IRQL DISPATCH_LEVEL.

The OutDmaChannel and OuterUnknown parameters follow the reference-counting conventions for COM objects.

Note

Microsoft supports a diverse and inclusive environment. This article contains references to terminology that the Microsoft style guide for bias-free communication recognizes as exclusionary. The word or phrase is used in this article for consistency because it currently appears in the software. When the software is updated to remove the language, this article will be updated to be in alignment.

-see-also

DEVICE_DESCRIPTION

DEVICE_OBJECT

IDmaChannel

POOL_TYPE