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
70f9cc9e
Commit
70f9cc9e
authored
Jul 04, 2015
by
Austin English
Committed by
Alexandre Julliard
Jul 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsta: Add initial winsta.h.
parent
c015447d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
5 deletions
+104
-5
main.c
dlls/winsta/main.c
+5
-4
winsta.h
dlls/winsta/winsta.h
+98
-0
winsta.spec
dlls/winsta/winsta.spec
+1
-1
No files found.
dlls/winsta/main.c
View file @
70f9cc9e
...
...
@@ -23,6 +23,7 @@
#include "winbase.h"
#include "winternl.h"
#include "wine/debug.h"
#include "winsta.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winsta
);
...
...
@@ -68,7 +69,7 @@ BOOLEAN WINAPI WinStationRegisterConsoleNotification( HANDLE server, HWND hwnd,
}
BOOLEAN
WINAPI
WinStationGetAllProcesses
(
HANDLE
server
,
ULONG
level
,
ULONG
*
process_count
,
void
*
info
)
ULONG
*
process_count
,
PTS_ALL_PROCESSES_INFO
*
info
)
{
FIXME
(
"%p %u %p %p
\n
"
,
server
,
level
,
process_count
,
info
);
*
process_count
=
0
;
...
...
@@ -76,10 +77,10 @@ BOOLEAN WINAPI WinStationGetAllProcesses( HANDLE server, ULONG level,
return
FALSE
;
}
BOOL
WINAPI
WinStationGetProcessSid
(
PVOID
a
,
HANDLE
server
,
DWORD
process_id
,
PFILETIME
process_start_time
,
PBYTE
process_user_sid
,
PDWORD
sid_size
)
BOOL
EAN
WINAPI
WinStationGetProcessSid
(
HANDLE
server
,
ULONG
process_id
,
FILETIME
*
process_start_time
,
PVOID
process_user_sid
,
PULONG
sid_size
)
{
FIXME
(
"(%p, %
p, %d, %p, %p, %p): stub
\n
"
,
a
,
server
,
process_id
,
process_start_time
,
process_user_sid
,
sid_size
);
FIXME
(
"(%p, %
d, %p, %p, %p): stub
\n
"
,
server
,
process_id
,
process_start_time
,
process_user_sid
,
sid_size
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
dlls/winsta/winsta.h
0 → 100644
View file @
70f9cc9e
/*
* Copyright (C) 2015 Austin English
*
* 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
*/
#ifndef _WINSTA_H
#define _WINSTA_H
#define WINSTATIONNAME_LENGTH 32
typedef
WCHAR
WINSTATIONNAME
[
WINSTATIONNAME_LENGTH
+
1
];
typedef
enum
_WINSTATIONSTATECLASS
{
State_Active
,
State_Connected
,
State_ConnectQuery
,
State_Shadow
,
State_Disconnected
,
State_Idle
,
State_Listen
,
State_Reset
,
State_Down
,
State_Init
}
WINSTATIONSTATECLASS
;
typedef
struct
_SESSIONIDW
{
union
{
ULONG
SessionId
;
ULONG
LogonId
;
}
DUMMYUNIONNAME
;
WINSTATIONNAME
WinStationName
;
WINSTATIONSTATECLASS
State
;
}
SESSIONIDW
,
*
PSESSIONIDW
;
typedef
struct
_TS_SYS_PROCESS_INFORMATION
{
ULONG
NextEntryOffset
;
ULONG
NumberOfThreads
;
LARGE_INTEGER
SpareLi1
;
LARGE_INTEGER
SpareLi2
;
LARGE_INTEGER
SpareLi3
;
LARGE_INTEGER
CreateTime
;
LARGE_INTEGER
UserTime
;
LARGE_INTEGER
KernelTime
;
UNICODE_STRING
ImageName
;
LONG
BasePriority
;
ULONG
UniqueProcessId
;
ULONG
InheritedFromUniqueProcessId
;
ULONG
HandleCount
;
ULONG
SessionId
;
ULONG
SpareUl3
;
SIZE_T
PeakVirtualSize
;
SIZE_T
VirtualSize
;
ULONG
PageFaultCount
;
ULONG
PeakWorkingSetSize
;
ULONG
WorkingSetSize
;
SIZE_T
QuotaPeakPagedPoolUsage
;
SIZE_T
QuotaPagedPoolUsage
;
SIZE_T
QuotaPeakNonPagedPoolUsage
;
SIZE_T
QuotaNonPagedPoolUsage
;
SIZE_T
PagefileUsage
;
SIZE_T
PeakPagefileUsage
;
SIZE_T
PrivatePageCount
;
}
TS_SYS_PROCESS_INFORMATION
,
*
PTS_SYS_PROCESS_INFORMATION
;
typedef
struct
_TS_ALL_PROCESSES_INFO
{
PTS_SYS_PROCESS_INFORMATION
pTsProcessInfo
;
DWORD
SizeOfSid
;
#ifdef MIDL_PASS
[
size_is
(
SizeOfSid
)]
PBYTE
pSid
;
#else
PBYTE
pSid
;
#endif
}
TS_ALL_PROCESSES_INFO
,
*
PTS_ALL_PROCESSES_INFO
;
BOOLEAN
WINAPI
WinStationEnumerateW
(
HANDLE
,
PSESSIONIDW
*
,
PULONG
);
BOOLEAN
WINAPI
WinStationGetAllProcesses
(
HANDLE
,
ULONG
,
PULONG
,
PTS_ALL_PROCESSES_INFO
*
);
BOOLEAN
WINAPI
WinStationGetProcessSid
(
HANDLE
,
ULONG
,
FILETIME
*
,
PVOID
,
PULONG
);
BOOLEAN
WINAPI
WinStationQueryInformationW
(
HANDLE
,
ULONG
,
WINSTATIONINFOCLASS
,
PVOID
,
ULONG
,
PULONG
);
BOOLEAN
WINAPI
WinStationRegisterConsoleNotification
(
HANDLE
,
HWND
,
ULONG
);
#endif
/* _WINSTA_H */
dlls/winsta/winsta.spec
View file @
70f9cc9e
...
...
@@ -39,7 +39,7 @@
@ stub WinStationGetLanAdapterNameA
@ stub WinStationGetLanAdapterNameW
@ stub WinStationGetMachinePolicy
@ stdcall WinStationGetProcessSid(ptr
ptr
long ptr ptr ptr)
@ stdcall WinStationGetProcessSid(ptr long ptr ptr ptr)
@ stub WinStationGetTermSrvCountersValue
@ stub WinStationInstallLicense
@ stub WinStationIsHelpAssistantSession
...
...
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