Module: wine Branch: master Commit: e97746a538467835db2a278e442d67116dda853b URL: http://source.winehq.org/git/wine.git/?a=commit;h=e97746a538467835db2a278e44...
Author: André Hentschel nerv@dawncrow.de Date: Tue Oct 7 21:27:30 2014 +0200
slc: Add stub for SLGetWindowsInformation.
---
dlls/slc/slc.c | 9 ++++++++- dlls/slc/slc.spec | 2 +- include/slpublic.h | 13 ++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/dlls/slc/slc.c b/dlls/slc/slc.c index e7416f1..1b02c9b 100644 --- a/dlls/slc/slc.c +++ b/dlls/slc/slc.c @@ -28,7 +28,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(slc);
-DWORD WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwValue) +HRESULT WINAPI SLGetWindowsInformation(LPCWSTR name, SLDATATYPE *type, UINT *val, LPBYTE *size) +{ + FIXME("(%s %p %p %p) stub\n", debugstr_w(name), type, val, size ); + + return SL_E_RIGHT_NOT_GRANTED; +} + +HRESULT WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwValue) { FIXME("(%s) stub\n", debugstr_w(lpszValueName) );
diff --git a/dlls/slc/slc.spec b/dlls/slc/slc.spec index 45cd1ba..af5545c 100644 --- a/dlls/slc/slc.spec +++ b/dlls/slc/slc.spec @@ -25,7 +25,7 @@ @ stub SLGetSAMLicense @ stub SLGetSLIDList @ stub SLGetServiceInformation -@ stub SLGetWindowsInformation +@ stdcall SLGetWindowsInformation(wstr ptr ptr ptr) @ stdcall SLGetWindowsInformationDWORD(wstr ptr) @ stub SLInstallLicense @ stub SLInstallProofOfPurchase diff --git a/include/slpublic.h b/include/slpublic.h index a2c6d42..c8bb559 100644 --- a/include/slpublic.h +++ b/include/slpublic.h @@ -29,7 +29,18 @@ extern "C" { #define SLCAPI DECLSPEC_IMPORT #endif
-SLCAPI DWORD WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwValue); +typedef enum _tagSLDATATYPE +{ + SL_DATA_NONE = REG_NONE, + SL_DATA_SZ = REG_SZ, + SL_DATA_DWORD = REG_DWORD, + SL_DATA_BINARY = REG_BINARY, + SL_DATA_MULTI_SZ = REG_MULTI_SZ, + SL_DATA_SUM = 100, +} SLDATATYPE; + +SLCAPI HRESULT WINAPI SLGetWindowsInformation(LPCWSTR, SLDATATYPE*, UINT*, LPBYTE*); +SLCAPI HRESULT WINAPI SLGetWindowsInformationDWORD(LPCWSTR, LPDWORD);
#ifdef __cplusplus