![]() |
![]() |
![]() |
DSoundHelper.GetObjectFromInterfaceGuid Method |
Language: |
Retrieves an object based on an interface globally unique identifier (GUID).
Visual Basic .NET 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
);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;
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).
System.Object . Returns the object that is requested.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center