[PATCH] Added stub for SLGetWindowsInformationDWORD

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Feb 21 03:18:50 CST 2008


---
 dlls/slc/slc.c     |    9 +++++++++
 dlls/slc/slc.spec  |    2 +-
 include/slerror.h  |   30 ++++++++++++++++++++++++++++++
 include/slpublic.h |   40 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 80 insertions(+), 1 deletions(-)
 create mode 100644 include/slerror.h
 create mode 100644 include/slpublic.h

diff --git a/dlls/slc/slc.c b/dlls/slc/slc.c
index 40c5287..94a4bcc 100644
--- a/dlls/slc/slc.c
+++ b/dlls/slc/slc.c
@@ -23,8 +23,17 @@
 #include "winbase.h"
 #include "wine/debug.h"
 
+#include "slpublic.h"
+#include "slerror.h"
+
 WINE_DEFAULT_DEBUG_CHANNEL(slc);
 
+DWORD WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwValue)
+{
+    FIXME("(%s) stub\n", debugstr_w(lpszValueName) );	
+
+    return SL_E_RIGHT_NOT_GRANTED;
+}
 
 /***********************************************************************
  *             DllMain   (CLUSAPI.@)
diff --git a/dlls/slc/slc.spec b/dlls/slc/slc.spec
index e946247..45cd1ba 100644
--- a/dlls/slc/slc.spec
+++ b/dlls/slc/slc.spec
@@ -26,7 +26,7 @@
 @ stub SLGetSLIDList
 @ stub SLGetServiceInformation
 @ stub SLGetWindowsInformation
-@ stub SLGetWindowsInformationDWORD
+@ stdcall SLGetWindowsInformationDWORD(wstr ptr)
 @ stub SLInstallLicense
 @ stub SLInstallProofOfPurchase
 @ stub SLInstallSAMLicense
diff --git a/include/slerror.h b/include/slerror.h
new file mode 100644
index 0000000..4ce5e0c
--- /dev/null
+++ b/include/slerror.h
@@ -0,0 +1,30 @@
+/*
+ *
+ * Copyright 2008 Alistair Leslie-Hughes
+ *
+ * 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
+ */
+#ifndef __WINE_SLERROR_H
+#define __WINE_SLERROR_H
+
+
+
+#define SL_E_RIGHT_NOT_GRANTED        0xC004F013
+
+#define SL_E_DATATYPE_MISMATCHED      0xC004F01E
+
+
+#endif /* __WINE_SLERROR_H */
+
diff --git a/include/slpublic.h b/include/slpublic.h
new file mode 100644
index 0000000..87e8448
--- /dev/null
+++ b/include/slpublic.h
@@ -0,0 +1,40 @@
+/*
+ *
+ * Copyright 2008 Alistair Leslie-Hughes
+ *
+ * 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
+ */
+#ifndef __WINE_SLPUBLIC_H
+#define __WINE_SLPUBLIC_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef _SLC_
+#define SLCAPI
+#else
+#define SLCAPI DECLSPEC_IMPORT
+#endif
+
+SLCAPI DWORD WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwValue);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_SLPUBLIC_H */
+
-- 
1.5.4.1


--------------010700020305010705050801--




More information about the wine-patches mailing list