Module: wine Branch: master Commit: 40953c2ada49f2b8df62624f273c54b128610630 URL: http://source.winehq.org/git/wine.git/?a=commit;h=40953c2ada49f2b8df62624f27...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Thu Feb 21 20:18:50 2008 +1100
slc: Added stub for SLGetWindowsInformationDWORD.
---
dlls/slc/Makefile.in | 1 + dlls/slc/slc.c | 9 +++++++++ dlls/slc/slc.spec | 2 +- include/Makefile.in | 2 ++ include/slerror.h | 25 +++++++++++++++++++++++++ include/slpublic.h | 39 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 77 insertions(+), 1 deletions(-)
diff --git a/dlls/slc/Makefile.in b/dlls/slc/Makefile.in index 2097ca2..20fec6f 100644 --- a/dlls/slc/Makefile.in +++ b/dlls/slc/Makefile.in @@ -1,3 +1,4 @@ +EXTRADEFS = -D_SLC_ TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ diff --git a/dlls/slc/slc.c b/dlls/slc/slc.c index 40c5287..e7416f1 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/Makefile.in b/include/Makefile.in index d3731a5..1acd285 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -359,6 +359,8 @@ SRCDIR_INCLUDES = \ shlobj.h \ shlwapi.h \ sipbase.h \ + slerror.h \ + slpublic.h \ snmp.h \ softpub.h \ sql.h \ diff --git a/include/slerror.h b/include/slerror.h new file mode 100644 index 0000000..9c800f6 --- /dev/null +++ b/include/slerror.h @@ -0,0 +1,25 @@ +/* + * + * 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..a2c6d42 --- /dev/null +++ b/include/slpublic.h @@ -0,0 +1,39 @@ +/* + * + * 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 */