From: Daniel Tang danielzgtg.opensource@gmail.com
--- dlls/sppc/sppc.c | 12 ++++++++++++ dlls/sppc/sppc.spec | 2 +- include/slpublic.h | 1 + 3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/dlls/sppc/sppc.c b/dlls/sppc/sppc.c index 09a331033ec..9050b2faacc 100644 --- a/dlls/sppc/sppc.c +++ b/dlls/sppc/sppc.c @@ -49,6 +49,18 @@ HRESULT WINAPI SLGetSLIDList(HSLC handle, UINT queryType, const SLID *query, UIN return S_OK; }
+HRESULT WINAPI SLInstallLicense(HSLC handle, UINT count, const BYTE *data, SLID *file) +{ + UINT i; + FIXME("(%p %u %p %p) stub\n", handle, count, data, file); + + for (i = 0; i < count; i++) { + memset(&file[i], 0, sizeof(SLID)); + } + + return S_OK; +} + HRESULT WINAPI SLOpen(HSLC *handle) { FIXME("(%p) stub\n", handle ); diff --git a/dlls/sppc/sppc.spec b/dlls/sppc/sppc.spec index 97ab6a8f6ac..fd1462e3780 100644 --- a/dlls/sppc/sppc.spec +++ b/dlls/sppc/sppc.spec @@ -46,7 +46,7 @@ @ stub SLGetProductSkuInformation @ stdcall SLGetSLIDList(ptr long ptr long ptr ptr) @ stub SLGetServiceInformation -@ stub SLInstallLicense +@ stdcall SLInstallLicense(ptr long ptr ptr) @ stub SLInstallProofOfPurchase @ stub SLInstallProofOfPurchaseEx @ stub SLIsGenuineLocalEx diff --git a/include/slpublic.h b/include/slpublic.h index 72060d5a5d6..13594d848fb 100644 --- a/include/slpublic.h +++ b/include/slpublic.h @@ -64,6 +64,7 @@ typedef struct _tagSL_LICENSING_STATUS
SLCAPI HRESULT WINAPI SLGetLicensingStatusInformation(HSLC, const SLID*, const SLID*, LPCWSTR, UINT*, SL_LICENSING_STATUS**); SLCAPI HRESULT WINAPI SLGetSLIDList(HSLC, UINT, const SLID *, UINT, UINT *, SLID **); +SLCAPI HRESULT WINAPI SLInstallLicense(HSLC, UINT, const BYTE *, SLID *); SLCAPI HRESULT WINAPI SLGetWindowsInformation(LPCWSTR, SLDATATYPE*, UINT*, LPBYTE*); SLCAPI HRESULT WINAPI SLGetWindowsInformationDWORD(LPCWSTR, LPDWORD); SLCAPI HRESULT WINAPI SLOpen(HSLC*);