Microsoft DirectX 9.0 SDK Update (October 2004)

Capture.Capture Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Initializes a new instance of the Capture class using the Microsoft® DirectSound® capture device specified by its device globally unique identifier (GUID).

Definition

Visual Basic .NET Public Sub New( _
    ByVal guidDev As Guid _
)
C# public Capture(
    Guid guidDev
);
Managed C++ public: Capture(
    Guid guidDev
);
JScript .NET public function Capture(
    guidDev : Guid
);

Parameters

guidDev System.Guid. The Microsoft® DirectSound® capture device's globally unique identifier (GUID).

Remarks

To get a capture device's globally unique identifier (GUID), first enumerate the devices using the CaptureDevicesCollection object. Then get the GUID from the DriverGuid property of the DeviceInformation structure of the device you want to use.

Exceptions
ArgumentException Leave Site An invalid parameter was passed to the called method.
OutOfMemoryException Leave Site Microsoft® DirectSound® could not allocate sufficient memory to complete the call.
AllocatedException The request failed because resources, such as a priority level, were already in use by another caller.
NoAggregationException The object does not support aggregation.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center