Device.Device(IntPtr) Constructor (Microsoft.DirectX.DirectSound)
Initializes a new instance of the Device class.
Definition
Visual Basic Public Sub New( _
ByVal lp As IntPtr_
)C# public Device(
IntPtrlp
);C++ public:
Device(
IntPtrlp
);JScript public function Device(
lp : IntPtr
);
Parameters
lp System.IntPtr
Pointer to the unmanaged interface, which allows unmanaged COM clients to create an instance of the managed Device class. Not supported.
Remarks
The application must call the SetCooperativeLevel method immediately after creating a Device object.
AllocatedException The request failed because resources, such as a priority level, were already in use by another caller. ArgumentException An invalid parameter was passed to the called method. NoAggregationException The object does not support aggregation. NoDriverException No sound driver is available for use, or the given globally unique identifier (GUID) is not a valid Microsoft DirectSound device identifier (ID). OutOfMemoryException DirectSound could not allocate sufficient memory to complete the call.
.gif)