R
Robinson
I'm trying to wrap the COM interface IClientVirtualDevice. Is my
interpretation of the functions within it correct (GetCommand and
CompleteCommand)?
''' <summary>
''' Wrapper for IClientVirtualDevice
''' </summary>
<ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
Guid("40700424-0080-11D2-851F-00C04FC21759")> _
Public Interface IClientVirtualDevice
' virtual HRESULT STDMETHODCALLTYPE GetCommand(
' /* [in] */ DWORD dwTimeOut,
' /* [out] */ struct VDC_Command **ppCmd) = 0;
Function GetCommand(ByVal dwTimeOut As Integer, _
ByRef ppCmd As VDC_Command) As
Integer
' virtual HRESULT STDMETHODCALLTYPE CompleteCommand(
' /* [in] */ struct VDC_Command *pCmd,
' /* [in] */ DWORD dwCompletionCode,
' /* [in] */ DWORD dwBytesTransferred,
' /* [in] */ DWORDLONG dwlPosition) = 0;
Function CompleteCommand(ByVal pCmd As VDC_Command, _
ByVal dwCompletionCode As Integer, _
ByVal dwBytesTransferred As Integer,
_
ByVal dwlPosition As Long) As
Integer
End Interface
interpretation of the functions within it correct (GetCommand and
CompleteCommand)?
''' <summary>
''' Wrapper for IClientVirtualDevice
''' </summary>
<ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
Guid("40700424-0080-11D2-851F-00C04FC21759")> _
Public Interface IClientVirtualDevice
' virtual HRESULT STDMETHODCALLTYPE GetCommand(
' /* [in] */ DWORD dwTimeOut,
' /* [out] */ struct VDC_Command **ppCmd) = 0;
Function GetCommand(ByVal dwTimeOut As Integer, _
ByRef ppCmd As VDC_Command) As
Integer
' virtual HRESULT STDMETHODCALLTYPE CompleteCommand(
' /* [in] */ struct VDC_Command *pCmd,
' /* [in] */ DWORD dwCompletionCode,
' /* [in] */ DWORD dwBytesTransferred,
' /* [in] */ DWORDLONG dwlPosition) = 0;
Function CompleteCommand(ByVal pCmd As VDC_Command, _
ByVal dwCompletionCode As Integer, _
ByVal dwBytesTransferred As Integer,
_
ByVal dwlPosition As Long) As
Integer
End Interface