In The Hand - .NET Components for Mobility
QueryInterface Method (pUnk, iid, ppv)
NamespacesInTheHand.Runtime.InteropServicesMarshalHelperQueryInterface(IntPtr, Guid%, IntPtr%)
Requests a pointer to a specified interface from a COM object.
Declaration Syntax
C#Visual Basic
public static int QueryInterface(
	IntPtr pUnk,
	ref Guid iid,
	out IntPtr ppv
)
Public Shared Function QueryInterface ( _
	pUnk As IntPtr, _
	ByRef iid As Guid, _
	<OutAttribute> ByRef ppv As IntPtr _
) As Integer
Parameters
pUnk (IntPtr)
The interface to be queried.
iid ( Guid %)
A Guid, passed by reference, that is the interface identifier (IID) of the requested interface.
ppv ( IntPtr %)
When this method returns, contains a reference to the returned interface.
Return Value
An HRESULT that indicates the success or failure of the call.

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 3.2.0.0