Microsoft DirectX 9.0 SDK Update (October 2004)

DSoundHelper.GetObjectFromInterfaceGuid Method

Language:

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

Retrieves an object based on an interface globally unique identifier (GUID).

Definition

Visual Basic .NET Public Shared Function GetObjectFromInterfaceGuid( _
    ByVal lpVal As IntPtr, _
    ByVal iid As Guid, _
    ByVal source As Object _
) As Object
C# public static object GetObjectFromInterfaceGuid(
    IntPtr lpVal,
    Guid iid,
    object source
);
Managed C++ public: static Object* GetObjectFromInterfaceGuid(
    IntPtr lpVal,
    Guid iid,
    Object *source
);
JScript .NET 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 globally unique identifier (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.


© 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