slc: Move shared exports to sppc.

Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Esme Povirk 2021-06-02 14:40:16 -05:00 committed by Alexandre Julliard
parent 3dce18b230
commit 0807b09cfa
6 changed files with 63 additions and 24 deletions

View File

@ -31,14 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(slc);
HRESULT WINAPI SLGetLicensingStatusInformation(HSLC handle, const SLID *app, const SLID *product,
LPCWSTR name, UINT *count, SL_LICENSING_STATUS **status)
{
FIXME("(%p %p %p %s %p %p) stub\n", handle, app, product, debugstr_w(name), count, status );
return SL_E_RIGHT_NOT_CONSUMED;
}
HRESULT WINAPI SLGetWindowsInformation(LPCWSTR name, SLDATATYPE *type, UINT *val, LPBYTE *size)
{
FIXME("(%s %p %p %p) stub\n", debugstr_w(name), type, val, size );
@ -69,15 +61,3 @@ HRESULT WINAPI SLGetWindowsInformationDWORD(LPCWSTR lpszValueName, LPDWORD pdwVa
return status ? E_FAIL : S_OK;
}
HRESULT WINAPI SLOpen(HSLC *handle)
{
FIXME("(%p) stub\n", handle );
if (!handle)
return E_INVALIDARG;
*handle = (HSLC)0xdeadbeef;
return S_OK;
}

View File

@ -16,7 +16,7 @@
@ stub SLGetLicense
@ stub SLGetLicenseFileId
@ stub SLGetLicenseInformation
@ stdcall SLGetLicensingStatusInformation(ptr ptr ptr wstr ptr ptr)
@ stdcall SLGetLicensingStatusInformation(ptr ptr ptr wstr ptr ptr) sppc.SLGetLicensingStatusInformation
@ stub SLGetPKeyId
@ stub SLGetPKeyInformation
@ stub SLGetPolicyInformation
@ -30,7 +30,7 @@
@ stub SLInstallLicense
@ stub SLInstallProofOfPurchase
@ stub SLInstallSAMLicense
@ stdcall SLOpen(ptr)
@ stdcall SLOpen(ptr) sppc.SLOpen
@ stub SLReArmWindows
@ stub SLRegisterEvent
@ stub SLRegisterWindowsEvent

View File

@ -1,3 +1,6 @@
MODULE = sppc.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
sppc.c

52
dlls/sppc/sppc.c Normal file
View File

@ -0,0 +1,52 @@
/*
*
* 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
*/
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "wine/debug.h"
#include "slpublic.h"
#include "slerror.h"
WINE_DEFAULT_DEBUG_CHANNEL(slc);
HRESULT WINAPI SLGetLicensingStatusInformation(HSLC handle, const SLID *app, const SLID *product,
LPCWSTR name, UINT *count, SL_LICENSING_STATUS **status)
{
FIXME("(%p %p %p %s %p %p) stub\n", handle, app, product, debugstr_w(name), count, status );
return SL_E_RIGHT_NOT_CONSUMED;
}
HRESULT WINAPI SLOpen(HSLC *handle)
{
FIXME("(%p) stub\n", handle );
if (!handle)
return E_INVALIDARG;
*handle = (HSLC)0xdeadbeef;
return S_OK;
}

View File

@ -38,7 +38,7 @@
@ stub SLGetLicense
@ stub SLGetLicenseFileId
@ stub SLGetLicenseInformation
@ stub SLGetLicensingStatusInformation
@ stdcall SLGetLicensingStatusInformation(ptr ptr ptr wstr ptr ptr)
@ stub SLGetPKeyId
@ stub SLGetPKeyInformation
@ stub SLGetPolicyInformation
@ -51,7 +51,7 @@
@ stub SLInstallProofOfPurchaseEx
@ stub SLIsGenuineLocalEx
@ stub SLLoadApplicationPolicies
@ stub SLOpen
@ stdcall SLOpen(ptr)
@ stub SLPersistApplicationPolicies
@ stub SLPersistRTSPayloadOverride
@ stub SLReArm

View File

@ -508,6 +508,10 @@ my @dll_groups =
"mscoree",
"mscorwks",
],
[
"sppc",
"slc",
],
);
my $update_flags = 0;