Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
32e11378
Commit
32e11378
authored
Nov 28, 2010
by
Daniel Zimmermann
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtsapi32: Add some stubs.
parent
bbbd5a49
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
280 additions
and
26 deletions
+280
-26
wtsapi32.c
dlls/wtsapi32/wtsapi32.c
+241
-8
wtsapi32.spec
dlls/wtsapi32/wtsapi32.spec
+26
-18
wtsapi32.h
include/wtsapi32.h
+13
-0
No files found.
dlls/wtsapi32/wtsapi32.c
View file @
32e11378
...
...
@@ -56,6 +56,24 @@ void WINAPI WTSCloseServer(HANDLE hServer)
}
/************************************************************
* WTSConnectSessionA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSConnectSessionA
(
ULONG
LogonId
,
ULONG
TargetLogonId
,
PSTR
pPassword
,
BOOL
bWait
)
{
FIXME
(
"Stub %d %d (%s) %d
\n
"
,
LogonId
,
TargetLogonId
,
debugstr_a
(
pPassword
),
bWait
);
return
TRUE
;
}
/************************************************************
* WTSConnectSessionW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSConnectSessionW
(
ULONG
LogonId
,
ULONG
TargetLogonId
,
PWSTR
pPassword
,
BOOL
bWait
)
{
FIXME
(
"Stub %d %d (%s) %d
\n
"
,
LogonId
,
TargetLogonId
,
debugstr_w
(
pPassword
),
bWait
);
return
TRUE
;
}
/************************************************************
* WTSDisconnectSession (WTSAPI32.@)
*/
BOOL
WINAPI
WTSDisconnectSession
(
HANDLE
hServer
,
DWORD
SessionId
,
BOOL
bWait
)
...
...
@@ -99,6 +117,25 @@ BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version
}
/************************************************************
* WTSEnumerateServersA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSEnumerateServersA
(
LPSTR
pDomainName
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_SERVER_INFOA
*
ppServerInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %s 0x%08x 0x%08x %p %p
\n
"
,
debugstr_a
(
pDomainName
),
Reserved
,
Version
,
ppServerInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateServersW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSEnumerateServersW
(
LPWSTR
pDomainName
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_SERVER_INFOW
*
ppServerInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %s 0x%08x 0x%08x %p %p
\n
"
,
debugstr_w
(
pDomainName
),
Reserved
,
Version
,
ppServerInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateEnumerateSessionsA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSEnumerateSessionsA
(
HANDLE
hServer
,
DWORD
Reserved
,
DWORD
Version
,
...
...
@@ -138,7 +175,6 @@ BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
void
WINAPI
WTSFreeMemory
(
PVOID
pMemory
)
{
FIXME
(
"Stub %p
\n
"
,
pMemory
);
return
;
}
/************************************************************
...
...
@@ -206,15 +242,35 @@ BOOL WINAPI WTSQuerySessionInformationW(
}
/************************************************************
* WTS
WaitSystemEvent
(WTSAPI32.@)
* WTS
QueryUserToken
(WTSAPI32.@)
*/
BOOL
WINAPI
WTS
WaitSystemEvent
(
HANDLE
hServer
,
DWORD
Mask
,
DWORD
*
Flags
)
BOOL
WINAPI
WTS
QueryUserToken
(
ULONG
session_id
,
PHANDLE
token
)
{
/* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
FIXME
(
"Stub %p 0x%08x %p
\n
"
,
hServer
,
Mask
,
Flags
);
FIXME
(
"%u %p
\n
"
,
session_id
,
token
);
return
FALSE
;
}
/************************************************************
* WTSQueryUserConfigA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSQueryUserConfigA
(
LPSTR
pServerName
,
LPSTR
pUserName
,
WTS_CONFIG_CLASS
WTSConfigClass
,
LPSTR
*
ppBuffer
,
DWORD
*
pBytesReturned
)
{
FIXME
(
"Stub (%s) (%s) 0x%08x %p %p
\n
"
,
debugstr_a
(
pServerName
),
debugstr_a
(
pUserName
),
WTSConfigClass
,
ppBuffer
,
pBytesReturned
);
return
FALSE
;
}
/************************************************************
* WTSQueryUserConfigW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSQueryUserConfigW
(
LPWSTR
pServerName
,
LPWSTR
pUserName
,
WTS_CONFIG_CLASS
WTSConfigClass
,
LPWSTR
*
ppBuffer
,
DWORD
*
pBytesReturned
)
{
FIXME
(
"Stub (%s) (%s) 0x%08x %p %p
\n
"
,
debugstr_w
(
pServerName
),
debugstr_w
(
pUserName
),
WTSConfigClass
,
ppBuffer
,
pBytesReturned
);
return
FALSE
;
}
/************************************************************
* WTSRegisterSessionNotification (WTSAPI32.@)
*/
...
...
@@ -225,6 +281,99 @@ BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags)
}
/************************************************************
* WTSRegisterSessionNotification (WTSAPI32.@)
*/
BOOL
WINAPI
WTSRegisterSessionNotificationEx
(
HANDLE
hServer
,
HWND
hWnd
,
DWORD
dwFlags
)
{
FIXME
(
"Stub %p %p 0x%08x
\n
"
,
hServer
,
hWnd
,
dwFlags
);
return
FALSE
;
}
/************************************************************
* WTSSendMessageA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSSendMessageA
(
HANDLE
hServer
,
DWORD
SessionId
,
LPSTR
pTitle
,
DWORD
TitleLength
,
LPSTR
pMessage
,
DWORD
MessageLength
,
DWORD
Style
,
DWORD
Timeout
,
DWORD
*
pResponse
,
BOOL
bWait
)
{
FIXME
(
"Stub %p 0x%08x (%s) %d (%s) %d 0x%08x %d %p %d
\n
"
,
hServer
,
SessionId
,
debugstr_a
(
pTitle
),
TitleLength
,
debugstr_a
(
pMessage
),
MessageLength
,
Style
,
Timeout
,
pResponse
,
bWait
);
return
FALSE
;
}
/************************************************************
* WTSSendMessageW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSSendMessageW
(
HANDLE
hServer
,
DWORD
SessionId
,
LPWSTR
pTitle
,
DWORD
TitleLength
,
LPWSTR
pMessage
,
DWORD
MessageLength
,
DWORD
Style
,
DWORD
Timeout
,
DWORD
*
pResponse
,
BOOL
bWait
)
{
FIXME
(
"Stub %p 0x%08x (%s) %d (%s) %d 0x%08x %d %p %d
\n
"
,
hServer
,
SessionId
,
debugstr_w
(
pTitle
),
TitleLength
,
debugstr_w
(
pMessage
),
MessageLength
,
Style
,
Timeout
,
pResponse
,
bWait
);
return
FALSE
;
}
/************************************************************
* WTSSetUserConfigA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSSetUserConfigA
(
LPSTR
pServerName
,
LPSTR
pUserName
,
WTS_CONFIG_CLASS
WTSConfigClass
,
LPSTR
pBuffer
,
DWORD
DataLength
)
{
FIXME
(
"Stub (%s) (%s) 0x%08x %p %d
\n
"
,
debugstr_a
(
pServerName
),
debugstr_a
(
pUserName
),
WTSConfigClass
,
pBuffer
,
DataLength
);
return
FALSE
;
}
/************************************************************
* WTSSetUserConfigW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSSetUserConfigW
(
LPWSTR
pServerName
,
LPWSTR
pUserName
,
WTS_CONFIG_CLASS
WTSConfigClass
,
LPWSTR
pBuffer
,
DWORD
DataLength
)
{
FIXME
(
"Stub (%s) (%s) 0x%08x %p %d
\n
"
,
debugstr_w
(
pServerName
),
debugstr_w
(
pUserName
),
WTSConfigClass
,
pBuffer
,
DataLength
);
return
FALSE
;
}
/************************************************************
* WTSShutdownSystem (WTSAPI32.@)
*/
BOOL
WINAPI
WTSShutdownSystem
(
HANDLE
hServer
,
DWORD
ShutdownFlag
)
{
FIXME
(
"Stub %p 0x%08x
\n
"
,
hServer
,
ShutdownFlag
);
return
FALSE
;
}
/************************************************************
* WTSStartRemoteControlSessionA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSStartRemoteControlSessionA
(
LPSTR
pTargetServerName
,
ULONG
TargetLogonId
,
BYTE
HotkeyVk
,
USHORT
HotkeyModifiers
)
{
FIXME
(
"Stub (%s) %d %d %d
\n
"
,
debugstr_a
(
pTargetServerName
),
TargetLogonId
,
HotkeyVk
,
HotkeyModifiers
);
return
FALSE
;
}
/************************************************************
* WTSStartRemoteControlSessionW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSStartRemoteControlSessionW
(
LPWSTR
pTargetServerName
,
ULONG
TargetLogonId
,
BYTE
HotkeyVk
,
USHORT
HotkeyModifiers
)
{
FIXME
(
"Stub (%s) %d %d %d
\n
"
,
debugstr_w
(
pTargetServerName
),
TargetLogonId
,
HotkeyVk
,
HotkeyModifiers
);
return
FALSE
;
}
/************************************************************
* WTSStopRemoteControlSession (WTSAPI32.@)
*/
BOOL
WINAPI
WTSStopRemoteControlSession
(
ULONG
LogonId
)
{
FIXME
(
"Stub %d
\n
"
,
LogonId
);
return
FALSE
;
}
/************************************************************
* WTSTerminateProcess (WTSAPI32.@)
*/
BOOL
WINAPI
WTSTerminateProcess
(
HANDLE
hServer
,
DWORD
ProcessId
,
DWORD
ExitCode
)
{
FIXME
(
"Stub %p %d %d
\n
"
,
hServer
,
ProcessId
,
ExitCode
);
return
FALSE
;
}
/************************************************************
* WTSUnRegisterSessionNotification (WTSAPI32.@)
*/
BOOL
WINAPI
WTSUnRegisterSessionNotification
(
HWND
hWnd
)
...
...
@@ -234,10 +383,94 @@ BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd)
}
/************************************************************
* WTS
QueryUserToke
n (WTSAPI32.@)
* WTS
UnRegisterSessionNotificatio
n (WTSAPI32.@)
*/
BOOL
WINAPI
WTS
QueryUserToken
(
ULONG
session_id
,
PHANDLE
token
)
BOOL
WINAPI
WTS
UnRegisterSessionNotificationEx
(
HANDLE
hServer
,
HWND
hWnd
)
{
FIXME
(
"%u %p
\n
"
,
session_id
,
token
);
FIXME
(
"Stub %p %p
\n
"
,
hServer
,
hWnd
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelClose (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelClose
(
HANDLE
hChannelHandle
)
{
FIXME
(
"Stub %p
\n
"
,
hChannelHandle
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelOpen (WTSAPI32.@)
*/
HANDLE
WINAPI
WTSVirtualChannelOpen
(
HANDLE
hServer
,
DWORD
SessionId
,
LPSTR
pVirtualName
)
{
FIXME
(
"Stub %p %d (%s)
\n
"
,
hServer
,
SessionId
,
debugstr_a
(
pVirtualName
));
return
NULL
;
}
/************************************************************
* WTSVirtualChannelOpen (WTSAPI32.@)
*/
HANDLE
WINAPI
WTSVirtualChannelOpenEx
(
DWORD
SessionId
,
LPSTR
pVirtualName
,
DWORD
flags
)
{
FIXME
(
"Stub %d (%s) %d
\n
"
,
SessionId
,
debugstr_a
(
pVirtualName
),
flags
);
return
NULL
;
}
/************************************************************
* WTSVirtualChannelPurgeInput (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelPurgeInput
(
HANDLE
hChannelHandle
)
{
FIXME
(
"Stub %p
\n
"
,
hChannelHandle
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelPurgeOutput (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelPurgeOutput
(
HANDLE
hChannelHandle
)
{
FIXME
(
"Stub %p
\n
"
,
hChannelHandle
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelQuery (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelQuery
(
HANDLE
hChannelHandle
,
WTS_VIRTUAL_CLASS
WtsVirtualClass
,
PVOID
*
ppBuffer
,
DWORD
*
pBytesReturned
)
{
FIXME
(
"Stub %p %d %p %p
\n
"
,
hChannelHandle
,
WtsVirtualClass
,
ppBuffer
,
pBytesReturned
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelRead (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelRead
(
HANDLE
hChannelHandle
,
ULONG
TimeOut
,
PCHAR
Buffer
,
ULONG
BufferSize
,
PULONG
pBytesRead
)
{
FIXME
(
"Stub %p %d %p %d %p
\n
"
,
hChannelHandle
,
TimeOut
,
Buffer
,
BufferSize
,
pBytesRead
);
return
FALSE
;
}
/************************************************************
* WTSVirtualChannelWrite (WTSAPI32.@)
*/
BOOL
WINAPI
WTSVirtualChannelWrite
(
HANDLE
hChannelHandle
,
PCHAR
Buffer
,
ULONG
Length
,
PULONG
pBytesWritten
)
{
FIXME
(
"Stub %p %p %d %p
\n
"
,
hChannelHandle
,
Buffer
,
Length
,
pBytesWritten
);
return
FALSE
;
}
/************************************************************
* WTSWaitSystemEvent (WTSAPI32.@)
*/
BOOL
WINAPI
WTSWaitSystemEvent
(
HANDLE
hServer
,
DWORD
Mask
,
DWORD
*
Flags
)
{
/* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
FIXME
(
"Stub %p 0x%08x %p
\n
"
,
hServer
,
Mask
,
Flags
);
return
FALSE
;
}
dlls/wtsapi32/wtsapi32.spec
View file @
32e11378
@ stdcall WTSCloseServer(long)
@ stdcall WTSConnectSessionA(long long ptr long)
@ stdcall WTSConnectSessionW(long long ptr long)
@ stdcall WTSDisconnectSession(long long long)
@ stdcall WTSEnumerateProcessesA(long long long ptr ptr)
@ stdcall WTSEnumerateProcessesW(long long long ptr ptr)
@ st
ub WTSEnumerateServersA
@ st
ub WTSEnumerateServersW
@ st
dcall WTSEnumerateServersA(ptr long long ptr ptr)
@ st
dcall WTSEnumerateServersW(ptr long long ptr ptr)
@ stdcall WTSEnumerateSessionsA(long long long ptr ptr)
@ stdcall WTSEnumerateSessionsW(long long long ptr ptr)
@ stdcall WTSFreeMemory(ptr)
@ stdcall WTSLogoffSession(
ptr
long long)
@ stdcall WTSLogoffSession(
long
long long)
@ stdcall WTSOpenServerA(ptr)
@ stdcall WTSOpenServerW(ptr)
@ stdcall WTSQuerySessionInformationA(long long long ptr ptr)
@ stdcall WTSQuerySessionInformationW(long long long ptr ptr)
@ st
ub WTSQueryUserConfigA
@ st
ub WTSQueryUserConfigW
@ st
dcall WTSQueryUserConfigA(ptr ptr long ptr ptr)
@ st
dcall WTSQueryUserConfigW(ptr ptr long ptr ptr)
@ stdcall WTSQueryUserToken(long ptr)
@ stdcall WTSRegisterSessionNotification(long long)
@ stub WTSSendMessageA
@ stub WTSSendMessageW
@ stdcall WTSRegisterSessionNotificationEx(long long long)
@ stdcall WTSSendMessageA(long long ptr long ptr long long long ptr long)
@ stdcall WTSSendMessageW(long long ptr long ptr long long long ptr long)
@ stub WTSSetSessionInformationA
@ stub WTSSetSessionInformationW
@ stub WTSSetUserConfigA
@ stub WTSSetUserConfigW
@ stub WTSShutdownSystem
@ stub WTSTerminateProcess
@ stdcall WTSSetUserConfigA(ptr ptr long ptr long)
@ stdcall WTSSetUserConfigW(ptr ptr long ptr long)
@ stdcall WTSShutdownSystem(long long)
@ stdcall WTSStartRemoteControlSessionA(ptr long long long)
@ stdcall WTSStartRemoteControlSessionW(ptr long long long)
@ stdcall WTSStopRemoteControlSession(long)
@ stdcall WTSTerminateProcess(long long long)
@ stdcall WTSUnRegisterSessionNotification(long)
@ stub WTSVirtualChannelClose
@ stub WTSVirtualChannelOpen
@ stub WTSVirtualChannelPurgeInput
@ stub WTSVirtualChannelPurgeOutput
@ stub WTSVirtualChannelQuery
@ stub WTSVirtualChannelRead
@ stub WTSVirtualChannelWrite
@ stdcall WTSUnRegisterSessionNotificationEx(long long)
@ stdcall WTSVirtualChannelClose(long)
@ stdcall WTSVirtualChannelOpen(long long ptr)
@ stdcall WTSVirtualChannelOpenEx(long ptr long)
@ stdcall WTSVirtualChannelPurgeInput(long)
@ stdcall WTSVirtualChannelPurgeOutput(long)
@ stdcall WTSVirtualChannelQuery(long long ptr ptr)
@ stdcall WTSVirtualChannelRead(long long ptr long ptr)
@ stdcall WTSVirtualChannelWrite(long ptr long ptr)
@ stdcall WTSWaitSystemEvent(long long ptr)
include/wtsapi32.h
View file @
32e11378
...
...
@@ -24,6 +24,12 @@ extern "C" {
#endif
typedef
enum
_WTS_VIRTUAL_CLASS
{
WTSVirtualClientData
,
WTSVirtualFileHandle
}
WTS_VIRTUAL_CLASS
;
typedef
enum
tagWTS_INFO_CLASS
{
WTSInitialProgram
,
...
...
@@ -130,6 +136,9 @@ DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
DECL_WINELIB_TYPE_AW
(
PWTS_SERVER_INFO
)
void
WINAPI
WTSCloseServer
(
HANDLE
);
BOOL
WINAPI
WTSConnectSessionA
(
ULONG
,
ULONG
,
PSTR
,
BOOL
);
BOOL
WINAPI
WTSConnectSessionW
(
ULONG
,
ULONG
,
PWSTR
,
BOOL
);
#define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)
BOOL
WINAPI
WTSDisconnectSession
(
HANDLE
,
DWORD
,
BOOL
);
BOOL
WINAPI
WTSEnumerateProcessesA
(
HANDLE
,
DWORD
,
DWORD
,
PWTS_PROCESS_INFOA
*
,
DWORD
*
);
BOOL
WINAPI
WTSEnumerateProcessesW
(
HANDLE
,
DWORD
,
DWORD
,
PWTS_PROCESS_INFOW
*
,
DWORD
*
);
...
...
@@ -153,6 +162,10 @@ BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);
BOOL
WINAPI
WTSQueryUserToken
(
ULONG
,
PHANDLE
);
BOOL
WINAPI
WTSRegisterSessionNotification
(
HWND
,
DWORD
);
BOOL
WINAPI
WTSRegisterSessionNotificationEx
(
HANDLE
,
HWND
,
DWORD
);
BOOL
WINAPI
WTSStartRemoteControlSessionA
(
LPSTR
,
ULONG
,
BYTE
,
USHORT
);
BOOL
WINAPI
WTSStartRemoteControlSessionW
(
LPWSTR
,
ULONG
,
BYTE
,
USHORT
);
#define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession)
BOOL
WINAPI
WTSStopRemoteControlSession
(
ULONG
);
BOOL
WINAPI
WTSTerminateProcess
(
HANDLE
,
DWORD
,
DWORD
);
BOOL
WINAPI
WTSUnRegisterSessionNotification
(
HWND
);
BOOL
WINAPI
WTSUnRegisterSessionNotificationEx
(
HANDLE
,
HWND
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment