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
e8e1c656
Commit
e8e1c656
authored
Mar 16, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub implementations for WTSCloseServer, WTSDisconnectSession,
WTSEnumerateProcesses{A,W}, WTSEnumerateSessions{A,W}, WTSQuerySessionInformationA.
parent
6451e221
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
8 deletions
+127
-8
wtsapi32.c
dlls/wtsapi32/wtsapi32.c
+77
-1
wtsapi32.spec
dlls/wtsapi32/wtsapi32.spec
+7
-7
wtsapi32.h
include/wtsapi32.h
+43
-0
No files found.
dlls/wtsapi32/wtsapi32.c
View file @
e8e1c656
...
...
@@ -47,6 +47,83 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
/************************************************************
* WTSCloseServer (WTSAPI32.@)
*/
void
WINAPI
WTSCloseServer
(
HANDLE
hServer
)
{
FIXME
(
"Stub %p
\n
"
,
hServer
);
}
/************************************************************
* WTSDisconnectSession (WTSAPI32.@)
*/
BOOL
WINAPI
WTSDisconnectSession
(
HANDLE
hServer
,
DWORD
SessionId
,
BOOL
bWait
)
{
FIXME
(
"Stub %p 0x%08lx %d
\n
"
,
hServer
,
SessionId
,
bWait
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateProcessesA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSEnumerateProcessesA
(
HANDLE
hServer
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_PROCESS_INFOA
*
ppProcessInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %p 0x%08lx 0x%08lx %p %p
\n
"
,
hServer
,
Reserved
,
Version
,
ppProcessInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateProcessesW (WTSAPI32.@)
*/
BOOL
WINAPI
WTSEnumerateProcessesW
(
HANDLE
hServer
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_PROCESS_INFOW
*
ppProcessInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %p 0x%08lx 0x%08lx %p %p
\n
"
,
hServer
,
Reserved
,
Version
,
ppProcessInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateEnumerateSessionsA (WTSAPI32.@)
*/
BOOL
WTSEnumerateSessionsA
(
HANDLE
hServer
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_SESSION_INFOA
*
ppSessionInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %p 0x%08lx 0x%08lx %p %p
\n
"
,
hServer
,
Reserved
,
Version
,
ppSessionInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSEnumerateEnumerateSessionsW (WTSAPI32.@)
*/
BOOL
WTSEnumerateSessionsW
(
HANDLE
hServer
,
DWORD
Reserved
,
DWORD
Version
,
PWTS_SESSION_INFOW
*
ppSessionInfo
,
DWORD
*
pCount
)
{
FIXME
(
"Stub %p 0x%08lx 0x%08lx %p %p
\n
"
,
hServer
,
Reserved
,
Version
,
ppSessionInfo
,
pCount
);
return
FALSE
;
}
/************************************************************
* WTSQuerySessionInformationA (WTSAPI32.@)
*/
BOOL
WINAPI
WTSQuerySessionInformationA
(
HANDLE
hServer
,
DWORD
SessionId
,
WTS_INFO_CLASS
WTSInfoClass
,
LPSTR
*
Buffer
,
DWORD
*
BytesReturned
)
{
/* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
FIXME
(
"Stub %p 0x%08lx %d %p %p
\n
"
,
hServer
,
SessionId
,
WTSInfoClass
,
Buffer
,
BytesReturned
);
return
FALSE
;
}
/************************************************************
* WTSQuerySessionInformationW (WTSAPI32.@)
...
...
@@ -65,7 +142,6 @@ BOOL WINAPI WTSQuerySessionInformationW(
return
FALSE
;
}
/************************************************************
* WTSWaitSystemEvent (WTSAPI32.@)
*/
...
...
dlls/wtsapi32/wtsapi32.spec
View file @
e8e1c656
@ st
ub WTSCloseServer
@ st
ub WTSDisconnectSession
@ st
ub WTSEnumerateProcessA
@ st
ub WTSEnumerateProcessW
@ st
dcall WTSCloseServer(long)
@ st
dcall WTSDisconnectSession(long long long)
@ st
dcall WTSEnumerateProcessesA(long long long ptr ptr)
@ st
dcall WTSEnumerateProcessesW(long long long ptr ptr)
@ stub WTSEnumerateServersA
@ stub WTSEnumerateServersW
@ st
ub WTSEnumerateSessionsA
@ st
ub WTSEnumerateSessionsW
@ st
dcall WTSEnumerateSessionsA(long long long ptr ptr)
@ st
dcall WTSEnumerateSessionsW(long long long ptr ptr)
@ stub WTSFreeMemory
@ stub WTSLogoffSession
@ stub WTSOpenServerA
@ stub WTSOpenServerW
@ st
ub WTSQuerySessionInformationA
@ st
dcall WTSQuerySessionInformationA(long long long ptr ptr)
@ stdcall WTSQuerySessionInformationW(long long long ptr ptr)
@ stub WTSQueryUserConfigA
@ stub WTSQueryUserConfigW
...
...
include/wtsapi32.h
View file @
e8e1c656
...
...
@@ -45,6 +45,49 @@ typedef enum tagWTS_INFO_CLASS
WTSClientProtocolType
,
}
WTS_INFO_CLASS
;
typedef
enum
_WTS_CONNECTSTATE_CLASS
{
WTSActive
,
WTSConnected
,
WTSConnectQuery
,
WTSShadow
,
WTSDisconnected
,
WTSIdle
,
WTSListen
,
WTSReset
,
WTSDown
,
WTSInit
}
WTS_CONNECTSTATE_CLASS
;
typedef
struct
_WTS_PROCESS_INFOA
{
DWORD
SessionId
;
DWORD
ProcessId
;
LPSTR
pProcessName
;
PSID
pUserSid
;
}
WTS_PROCESS_INFOA
,
*
PWTS_PROCESS_INFOA
;
typedef
struct
_WTS_PROCESS_INFOW
{
DWORD
SessionId
;
DWORD
ProcessId
;
LPWSTR
pProcessName
;
PSID
pUserSid
;
}
WTS_PROCESS_INFOW
,
*
PWTS_PROCESS_INFOW
;
typedef
struct
_WTS_SESSION_INFOA
{
DWORD
SessionId
;
LPSTR
pWinStationName
;
WTS_CONNECTSTATE_CLASS
State
;
}
WTS_SESSION_INFOA
,
*
PWTS_SESSION_INFOA
;
typedef
struct
_WTS_SESSION_INFOW
{
DWORD
SessionId
;
LPWSTR
pWinStationName
;
WTS_CONNECTSTATE_CLASS
State
;
}
WTS_SESSION_INFOW
,
*
PWTS_SESSION_INFOW
;
BOOL
WINAPI
WTSQuerySessionInformationW
(
HANDLE
hServer
,
...
...
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