1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-10 03:15:06 -05:00
hexchat/plugins/wmpa/wmpcontrols.cpp
2011-08-12 01:39:40 +02:00

124 lines
2.8 KiB
C++

// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "wmpcontrols.h"
// Dispatch interfaces referenced by this interface
#include "wmpmedia.h"
/////////////////////////////////////////////////////////////////////////////
// CWMPControls properties
/////////////////////////////////////////////////////////////////////////////
// CWMPControls operations
BOOL CWMPControls::GetIsAvailable(LPCTSTR bstrItem)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x3e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
bstrItem);
return result;
}
void CWMPControls::play()
{
InvokeHelper(0x33, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CWMPControls::stop()
{
InvokeHelper(0x34, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CWMPControls::pause()
{
InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CWMPControls::fastForward()
{
InvokeHelper(0x36, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CWMPControls::fastReverse()
{
InvokeHelper(0x37, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
double CWMPControls::GetCurrentPosition()
{
double result;
InvokeHelper(0x38, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
return result;
}
void CWMPControls::SetCurrentPosition(double newValue)
{
static BYTE parms[] =
VTS_R8;
InvokeHelper(0x38, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
CString CWMPControls::GetCurrentPositionString()
{
CString result;
InvokeHelper(0x39, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void CWMPControls::next()
{
InvokeHelper(0x3a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CWMPControls::previous()
{
InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CWMPMedia CWMPControls::GetCurrentItem()
{
LPDISPATCH pDispatch;
InvokeHelper(0x3c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
return CWMPMedia(pDispatch);
}
void CWMPControls::SetCurrentItem(LPDISPATCH newValue)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x3c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}
long CWMPControls::GetCurrentMarker()
{
long result;
InvokeHelper(0x3d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CWMPControls::SetCurrentMarker(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
void CWMPControls::playItem(LPDISPATCH pIWMPMedia)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x3f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pIWMPMedia);
}