tbs: Add Tbsi_Context_Create stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2021-06-29 20:33:48 -06:00 committed by Alexandre Julliard
parent 91c42ffe46
commit dbabe2fa49
3 changed files with 35 additions and 1 deletions

View file

@ -1,3 +1,6 @@
MODULE = tbs.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
tbs.c

31
dlls/tbs/tbs.c Normal file
View file

@ -0,0 +1,31 @@
/*
* Trusted Platform Module Base Services
*
* Copyright 2021 Alex Henrie
*
* 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 "windef.h"
#include "tbs.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(tbs);
TBS_RESULT WINAPI Tbsi_Context_Create(const TBS_CONTEXT_PARAMS *params, TBS_HCONTEXT *out)
{
FIXME("(%p, %p) stub\n", params, out);
return TBS_E_TPM_NOT_FOUND;
}

View file

@ -3,7 +3,7 @@
@ stub GetDeviceID
@ stub GetDeviceIDString
@ stub GetDeviceIDWithTimeout
@ stub Tbsi_Context_Create
@ stdcall Tbsi_Context_Create(ptr ptr)
@ stub Tbsi_Create_Windows_Key
@ stub Tbsi_FilterLog
@ stub Tbsi_GetDeviceInfo