#include <shlobj.h>
#include "class.h"


// {B0716439-9915-4c1a-9D69-AD9A1DDC4C5C}
static const GUID CLSID_COM =
{ 0xB0716439, 0x9915, 0x4c1a, { 0x9D, 0x69, 0xAD, 0x9A, 0x1D, 0xDC, 0x4C, 0x5C} };
static const LPCSTR CLSIDVAL = "{B0716439-9915-4c1a-9D69-AD9A1DDC4C5C}";
static const LPCSTR CLSIDKEY = "CLSID\\{B0716439-9915-4c1a-9D69-AD9A1DDC4C5C}";
static const LPCSTR CLASSKEY = "CLSID\\{B0716439-9915-4c1a-9D69-AD9A1DDC4C5C}\\InProcServer32";
static const LPCSTR PRODKEY   = "SfcMini.OyaGame";
static const LPCSTR PRODIDKEY = "SfcMini.OyaGame\\CLSID";


//IDidpatch handling for getting data from object.
COMDATA* GetDataFromComClass(IDispatch* pDisp);

DWORD COM_GetIDsOfNames(LPOLESTR* rgszNames, UINT cNames, DISPID* rgDispId,COMDATA *data);

DWORD COM_Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags,
            DISPPARAMS* pDispParams, VARIANT* pVarResult,
            EXCEPINFO* pExcepInfo, UINT *puArgErr,COMDATA *data);
