FreeRDP/winpr/libwinpr/wtsapi/wtsrpc_c.c
2013-08-23 00:06:22 -04:00

171 lines
3.8 KiB
C

/**
* WinPR: Windows Portable Runtime
* Windows Terminal Services API
*
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <winpr/crt.h>
#include <winpr/wtsapi.h>
#ifndef _WIN32
#include "wtsrpc_c.h"
/**
* RPC Client Stubs
*/
BOOL RpcStartRemoteControlSession(void* context, LPWSTR pTargetServerName,
ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
{
return TRUE;
}
BOOL RpcStopRemoteControlSession(void* context, ULONG LogonId)
{
return TRUE;
}
BOOL RpcConnectSession(void* context, ULONG LogonId, ULONG TargetLogonId, PWSTR pPassword, BOOL bWait)
{
return TRUE;
}
BOOL RpcEnumerateServers(void* context, LPWSTR pDomainName, DWORD Reserved,
DWORD Version, PWTS_SERVER_INFOW* ppServerInfo, DWORD* pCount)
{
return TRUE;
}
HANDLE RpcOpenServer(void* context, LPWSTR pServerName)
{
return NULL;
}
HANDLE RpcOpenServerEx(void* context, LPWSTR pServerName)
{
return NULL;
}
VOID RpcCloseServer(void* context, HANDLE hServer)
{
}
BOOL RpcEnumerateSessions(void* context, HANDLE hServer, DWORD Reserved,
DWORD Version, PWTS_SESSION_INFOW* ppSessionInfo, DWORD* pCount)
{
return TRUE;
}
BOOL RpcEnumerateSessionsEx(void* context, HANDLE hServer, DWORD* pLevel,
DWORD Filter, PWTS_SESSION_INFO_1W* ppSessionInfo, DWORD* pCount)
{
return TRUE;
}
BOOL RpcEnumerateProcesses(void* context, HANDLE hServer, DWORD Reserved,
DWORD Version, PWTS_PROCESS_INFOW* ppProcessInfo, DWORD* pCount)
{
return TRUE;
}
BOOL RpcTerminateProcess(void* context, HANDLE hServer, DWORD ProcessId, DWORD ExitCode)
{
return TRUE;
}
BOOL RpcQuerySessionInformation(void* context, HANDLE hServer, DWORD SessionId,
WTS_INFO_CLASS WTSInfoClass, LPWSTR* ppBuffer, DWORD* pBytesReturned)
{
return TRUE;
}
BOOL RpcQueryUserConfig(void* context, LPWSTR pServerName, LPWSTR pUserName,
WTS_CONFIG_CLASS WTSConfigClass, LPWSTR* ppBuffer, DWORD* pBytesReturned)
{
return TRUE;
}
BOOL RpcSetUserConfig(void* context, LPWSTR pServerName, LPWSTR pUserName,
WTS_CONFIG_CLASS WTSConfigClass, LPWSTR pBuffer, DWORD DataLength)
{
return TRUE;
}
BOOL RpcSendMessage(void* context, HANDLE hServer, DWORD SessionId, LPWSTR pTitle, DWORD TitleLength,
LPWSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD* pResponse, BOOL bWait)
{
return TRUE;
}
BOOL RpcDisconnectSession(void* context, HANDLE hServer, DWORD SessionId, BOOL bWait)
{
return TRUE;
}
BOOL RpcLogoffSession(void* context, HANDLE hServer, DWORD SessionId, BOOL bWait)
{
return TRUE;
}
BOOL RpcShutdownSystem(void* context, HANDLE hServer, DWORD ShutdownFlag)
{
return TRUE;
}
BOOL RpcRegisterSessionNotification(void* context, HWND hWnd, DWORD dwFlags)
{
return TRUE;
}
BOOL RpcUnRegisterSessionNotification(void* context, HWND hWnd)
{
return TRUE;
}
BOOL RpcRegisterSessionNotificationEx(void* context, HANDLE hServer, HWND hWnd, DWORD dwFlags)
{
return TRUE;
}
BOOL RpcUnRegisterSessionNotificationEx(void* context, HANDLE hServer, HWND hWnd)
{
return TRUE;
}
BOOL RpcEnableChildSessions(void* context, BOOL bEnable)
{
return TRUE;
}
BOOL RpcIsChildSessionsEnabled(void* context, PBOOL pbEnabled)
{
return TRUE;
}
BOOL RpcGetChildSessionId(void* context, PULONG pSessionId)
{
return TRUE;
}
#endif