Mariusz Pluciński : gameux: Add declaration of IGameStatistics interface.

Alexandre Julliard julliard at winehq.org
Tue Jun 8 10:08:24 CDT 2010


Module: wine
Branch: master
Commit: f2ad630540c5c7029c339e7d93acc2bba0e08056
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2ad630540c5c7029c339e7d93acc2bba0e08056

Author: Mariusz Pluciński <vshader at gmail.com>
Date:   Sat May 29 20:17:26 2010 +0200

gameux: Add declaration of IGameStatistics interface.

---

 include/gameux.idl |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 1 deletions(-)

diff --git a/include/gameux.idl b/include/gameux.idl
index 4700d75..b531fed 100644
--- a/include/gameux.idl
+++ b/include/gameux.idl
@@ -54,7 +54,59 @@ 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);
     };
 
     [
@@ -64,4 +116,12 @@ library gameuxLib
     {
         [default] interface IGameExplorer;
     };
+
+    [
+      uuid(DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4)
+    ]
+    coclass GameStatistics
+    {
+        [default] interface IGameStatistics;
+    };
 }




More information about the wine-cvs mailing list