From 85ce4515ebc731c24bb74e94455f6459ead98484 Mon Sep 17 00:00:00 2001 From: Mariusz PluciƄski Date: Sat, 29 May 2010 20:17:26 +0200 Subject: gameux: Add declaration of IGameStatistics interface --- include/gameux.idl | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 2 deletions(-) diff --git a/include/gameux.idl b/include/gameux.idl index 30017de..e77de10 100644 --- a/include/gameux.idl +++ b/include/gameux.idl @@ -30,7 +30,8 @@ library gameuxLib importlib("stdole2.tlb"); interface IGameExplorer; - + interface IGameStatistics; + typedef enum { GIS_NOT_INSTALLED = 1, @@ -53,14 +54,74 @@ library gameuxLib HRESULT UpdateGame([in] GUID instanceID); - HRESULT VerifyAccess([in] BSTR sGDFBinaryPath, [out] BOOL* pHasAccess); + HRESULT VerifyAccess([in] BSTR sGDFBinaryPath, + [out] BOOL* pHasAccess); }; [ + object, + uuid(3887C9CA-04A0-42ae-BC4C-5FA6C7721145) + ] + interface IGameStatistics : IUnknown + { + HRESULT GetMaxCategoryLength( + [retval, out] UINT* cch); + + HRESULT GetMaxNameLength( + [retval, out] UINT* cch); + + HRESULT GetMaxValueLength( + [retval, out] UINT* cch); + + HRESULT GetMaxCategories( + [retval, out] WORD* pMax); + + HRESULT GetMaxStatsPerCategory( + [retval, out] WORD* pMax); + + HRESULT SetCategoryTitle( + [in] WORD categoryIndex, + [string, in] LPCWSTR title); + + HRESULT GetCategoryTitle( + [in] WORD categoryIndex, + [retval, string, out] LPWSTR* pTitle); + + HRESULT GetStatistic( + [in] WORD categoryIndex, + [in] WORD statIndex, + [string, unique, out, in] LPWSTR* pName, + [string, unique, out, in] LPWSTR* pValue); + + HRESULT SetStatistic( + [in] WORD categoryIndex, + [in] WORD statIndex, + [string, in] LPCWSTR name, + [string, in] LPCWSTR value); + + HRESULT Save( + [in] BOOL trackChanges); + + HRESULT SetLastPlayedCategory( + [in] UINT categoryIndex); + + HRESULT GetLastPlayedCategory( + [retval, out] UINT* pCategoryIndex); + }; + + [ uuid(9A5EA990-3034-4D6F-9128-01F3C61022BC) ] coclass GameExplorer { [default] interface IGameExplorer; }; + + [ + uuid(DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4) + ] + coclass GameStatistics + { + [default] interface IGameStatistics; + }; } -- 1.6.2.5