Initialize WtsApi32_WtsApiFunctionTable NULL
@@ -50,75 +50,7 @@ static PWtsApiFunctionTable g_WtsApi = NULL;
static HMODULE g_WtsApi32Module = NULL;
-static WtsApiFunctionTable WtsApi32_WtsApiFunctionTable =
-{
- 0, /* dwVersion */
- 0, /* dwFlags */
-
- NULL, /* StopRemoteControlSession */
- NULL, /* StartRemoteControlSessionW */
- NULL, /* StartRemoteControlSessionA */
- NULL, /* ConnectSessionW */
- NULL, /* ConnectSessionA */
- NULL, /* EnumerateServersW */
- NULL, /* EnumerateServersA */
- NULL, /* OpenServerW */
- NULL, /* OpenServerA */
- NULL, /* OpenServerExW */
- NULL, /* OpenServerExA */
- NULL, /* CloseServer */
- NULL, /* EnumerateSessionsW */
- NULL, /* EnumerateSessionsA */
- NULL, /* EnumerateSessionsExW */
- NULL, /* EnumerateSessionsExA */
- NULL, /* EnumerateProcessesW */
- NULL, /* EnumerateProcessesA */
- NULL, /* TerminateProcess */
- NULL, /* QuerySessionInformationW */
- NULL, /* QuerySessionInformationA */
- NULL, /* QueryUserConfigW */
- NULL, /* QueryUserConfigA */
- NULL, /* SetUserConfigW */
- NULL, /* SetUserConfigA */
- NULL, /* SendMessageW */
- NULL, /* SendMessageA */
- NULL, /* DisconnectSession */
- NULL, /* LogoffSession */
- NULL, /* ShutdownSystem */
- NULL, /* WaitSystemEvent */
- NULL, /* VirtualChannelOpen */
- NULL, /* VirtualChannelOpenEx */
- NULL, /* VirtualChannelClose */
- NULL, /* VirtualChannelRead */
- NULL, /* VirtualChannelWrite */
- NULL, /* VirtualChannelPurgeInput */
- NULL, /* VirtualChannelPurgeOutput */
- NULL, /* VirtualChannelQuery */
- NULL, /* FreeMemory */
- NULL, /* RegisterSessionNotification */
- NULL, /* UnRegisterSessionNotification */
- NULL, /* RegisterSessionNotificationEx */
- NULL, /* UnRegisterSessionNotificationEx */
- NULL, /* QueryUserToken */
- NULL, /* FreeMemoryExW */
- NULL, /* FreeMemoryExA */
- NULL, /* EnumerateProcessesExW */
- NULL, /* EnumerateProcessesExA */
- NULL, /* EnumerateListenersW */
- NULL, /* EnumerateListenersA */
- NULL, /* QueryListenerConfigW */
- NULL, /* QueryListenerConfigA */
- NULL, /* CreateListenerW */
- NULL, /* CreateListenerA */
- NULL, /* SetListenerSecurityW */
- NULL, /* SetListenerSecurityA */
- NULL, /* GetListenerSecurityW */
- NULL, /* GetListenerSecurityA */
- NULL, /* EnableChildSessions */
- NULL, /* IsChildSessionsEnabled */
- NULL, /* GetChildSessionId */
- NULL /* GetActiveConsoleSessionId */
-};
+static WtsApiFunctionTable WtsApi32_WtsApiFunctionTable = { 0 };
#define WTSAPI32_LOAD_PROC(_name, _type) \
WtsApi32_WtsApiFunctionTable.p ## _name = (## _type) GetProcAddress(g_WtsApi32Module, "WTS" #_name);
@@ -793,6 +725,8 @@ static void InitializeWtsApiStubs_FreeRDS()
static BOOL CALLBACK InitializeWtsApiStubs(PINIT_ONCE once, PVOID param, PVOID *context)
{
+ WINPR_UNUSED(once);
+ WINPR_UNUSED(context);
if (param)
{
g_WtsApi = (PWtsApiFunctionTable)param;
