pstorec: Add a typelib resource.
authorAlexandre Julliard <julliard@winehq.org>
Thu, 24 Sep 2009 11:14:55 +0000 (13:14 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 24 Sep 2009 11:14:55 +0000 (13:14 +0200)
.gitignore
dlls/pstorec/Makefile.in
dlls/pstorec/pstorec_tlb.idl [new file with mode: 0644]
dlls/pstorec/rsrc.rc [new file with mode: 0644]
include/pstore.idl
tools/wine.inf.in

index 5bff9b0a6ed06b4bf197c09025c6c83a51bd1d24..418244e96b0cb9af6c7df68bb9672fdba2f22057 100644 (file)
@@ -102,6 +102,7 @@ dlls/oledb32/convert.h
 dlls/oledb32/convert_i.c
 dlls/oledb32/tests/convert.h
 dlls/oledb32/tests/convert_i.c
+dlls/pstorec/pstorec_tlb.tlb
 dlls/qmgr/qmgr_local.h
 dlls/qmgr/qmgr_local_i.c
 dlls/qmgrprxy/qmgrprxy.h
index 4ffedc8f10c4db16934a304b76d083d3ecbce4ee..c754081be13a89be3754db08835566000b8e4811 100644 (file)
@@ -8,6 +8,10 @@ IMPORTS   = uuid kernel32
 C_SRCS = \
        pstorec.c
 
+RC_SRCS = rsrc.rc
+
+IDL_TLB_SRCS = pstorec_tlb.idl
+
 @MAKE_DLL_RULES@
 
 @DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/pstorec/pstorec_tlb.idl b/dlls/pstorec/pstorec_tlb.idl
new file mode 100644 (file)
index 0000000..dff2e9f
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Typelib for pstorec
+ *
+ * Copyright 2009 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "pstore.idl"
diff --git a/dlls/pstorec/rsrc.rc b/dlls/pstorec/rsrc.rc
new file mode 100644 (file)
index 0000000..85b6205
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Resource file for pstorec
+ *
+ * Copyright 2009 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winnls.h"
+
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+
+/* @makedep: pstorec_tlb.tlb */
+1 TYPELIB LOADONCALL DISCARDABLE pstorec_tlb.tlb
index 62ce00b8da1658a002ebe8546f1d8db79d6f31c7..590b905df3dc862a27ef15bd20df71ead803f2cf 100644 (file)
@@ -34,6 +34,18 @@ typedef DWORD PST_KEY;
 typedef DWORD PST_PROVIDERCAPABILITIES;
 typedef GUID PST_PROVIDERID, *PPST_PROVIDERID;
 
+/*****************************************************************************
+ * PSTOREC library
+ */
+[
+    uuid(5a6f1ebd-2db1-11d0-8c39-00c04fd9126b),
+    version(1.0),
+    helpstring("PStore 1.0 Type Library")
+]
+library PSTORECLib
+{
+    importlib("stdole2.tlb");
+
 typedef struct _PST_PROVIDERINFO
 {
     DWORD cbSize;
@@ -50,27 +62,27 @@ typedef struct _PST_PROMPTINFO
     LPCWSTR szPrompt;
 } PST_PROMPTINFO, *PPST_PROMPTINFO;
 
-typedef struct {
+typedef struct _PST_ACCESSCLAUSE {
     DWORD cbSize;
     PST_ACCESSCLAUSETYPE ClauseType;
     DWORD cbClauseData;
     BYTE* pbClauseData;
 } PST_ACCESSCLAUSE, *PPST_ACCESSCLAUSE;
 
-typedef struct {
+typedef struct _PST_ACCESSRULE {
     DWORD cbSize;
     PST_ACCESSMODE AccessModeFlags;
     DWORD cClauses;
     PST_ACCESSCLAUSE* rgClauses;
 } PST_ACCESSRULE, *PPST_ACCESSRULE;
 
-typedef struct {
+typedef struct _PST_ACCESSRULESET {
     DWORD cbSize;
     DWORD cClause;
     PST_ACCESSRULE* rgRules;
 } PST_ACCESSRULESET, *PPST_ACCESSRULESET;
 
-typedef struct {
+typedef struct _PST_TYPEINFO {
     DWORD cbSize;
     LPWSTR szDisplayName;
 } PST_TYPEINFO, *PPST_TYPEINFO;
@@ -259,3 +271,5 @@ interface IPStore : IUnknown
         [in] DWORD dwFlags,
         [in] IEnumPStoreItems** ppenum );
 }
+
+};
index aedf14e18191dbd1e99be3169823eaa1c4d3da2e..633d80799172db993c5a90696252502efec01151 100644 (file)
@@ -2497,6 +2497,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
 11,,opengl32.dll
 11,,progman.exe
 11,,psapi.dll
+11,,pstorec.dll
 11,,quartz.dll
 11,,regsvr32.exe
 11,,reg.exe