DSoundHelper.GetObjectFromInterfaceGuid(IntPtr,Guid,Object) Method (Microsoft.DirectX.DirectSound)
Retrieves an object based on an interface globally unique identifier (GUID).
Definition
Visual Basic Public Shared Function GetObjectFromInterfaceGuid( _
ByVal lpVal As IntPtr, _
ByVal iid As Guid, _
ByVal source As Object _
) As ObjectC# public static object GetObjectFromInterfaceGuid(
IntPtr lpVal,
Guid iid,
object source
);C++ public:
static Object^ GetObjectFromInterfaceGuid(
IntPtr lpVal,
Guid iid,
Object^ source
);JScript public static function GetObjectFromInterfaceGuid(
lpVal : IntPtr,
iid : Guid,
source : Object
) : Object;
Parameters
lpVal System.IntPtr
The pointer to the unmanaged Component Object Model (COM) interface of the requested object.iid System.Guid
The interface GUID of the requested object.source System.Object
The parent object of the requested object (see Remarks).
Return Value
System.Object
Returns the object that is requested.
Remarks
The source parameter is the requested object's parent object. As an example, if you are requesting a SecondaryBuffer object, you would pass the Device object to this method using the source parameter.