Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ca2b7012
Commit
ca2b7012
authored
Jul 31, 2019
by
Chip Davis
Committed by
Alexandre Julliard
Aug 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Stub power request APIs.
Signed-off-by:
Chip Davis
<
cdavis@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6420ebdf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
7 deletions
+66
-7
nt.c
dlls/ntdll/nt.c
+33
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+6
-0
winbase.h
include/winbase.h
+0
-7
winnt.h
include/winnt.h
+7
-0
winternl.h
include/winternl.h
+20
-0
No files found.
dlls/ntdll/nt.c
View file @
ca2b7012
...
...
@@ -3073,6 +3073,39 @@ NTSTATUS WINAPI NtSetThreadExecutionState( EXECUTION_STATE new_state, EXECUTION_
return
STATUS_SUCCESS
;
}
/******************************************************************************
* NtCreatePowerRequest [NTDLL.@]
*
*/
NTSTATUS
WINAPI
NtCreatePowerRequest
(
HANDLE
*
handle
,
COUNTED_REASON_CONTEXT
*
context
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
handle
,
context
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtSetPowerRequest [NTDLL.@]
*
*/
NTSTATUS
WINAPI
NtSetPowerRequest
(
HANDLE
handle
,
POWER_REQUEST_TYPE
type
)
{
FIXME
(
"(%p, %u): stub
\n
"
,
handle
,
type
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtClearPowerRequest [NTDLL.@]
*
*/
NTSTATUS
WINAPI
NtClearPowerRequest
(
HANDLE
handle
,
POWER_REQUEST_TYPE
type
)
{
FIXME
(
"(%p, %u): stub
\n
"
,
handle
,
type
);
return
STATUS_NOT_IMPLEMENTED
;
}
#ifdef linux
/* Fallback using /proc/cpuinfo for Linux systems without cpufreq. For
* most distributions on recent enough hardware, this is only likely to
...
...
dlls/ntdll/ntdll.spec
View file @
ca2b7012
...
...
@@ -142,6 +142,7 @@
@ stdcall NtCancelIoFileEx(long ptr ptr)
@ stdcall NtCancelTimer(long ptr)
@ stdcall NtClearEvent(long)
@ stdcall NtClearPowerRequest(long long)
@ stdcall NtClose(long)
@ stub NtCloseObjectAuditAlarm
# @ stub NtCompactKeys
...
...
@@ -167,6 +168,7 @@
@ stdcall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr)
@ stdcall NtCreatePagingFile(ptr ptr ptr ptr)
@ stdcall NtCreatePort(ptr ptr long long ptr)
@ stdcall NtCreatePowerRequest(ptr ptr)
@ stub NtCreateProcess
# @ stub NtCreateProcessEx
@ stub NtCreateProfile
...
...
@@ -374,6 +376,7 @@
@ stub NtSetLowEventPair
@ stub NtSetLowWaitHighEventPair
@ stub NtSetLowWaitHighThread
@ stdcall NtSetPowerRequest(long long)
# @ stub NtSetQuotaInformationFile
@ stdcall NtSetSecurityObject(long long ptr)
@ stub NtSetSystemEnvironmentValue
...
...
@@ -1094,6 +1097,7 @@
@ stdcall -private ZwCancelIoFileEx(long ptr ptr) NtCancelIoFileEx
@ stdcall -private ZwCancelTimer(long ptr) NtCancelTimer
@ stdcall -private ZwClearEvent(long) NtClearEvent
@ stdcall -private ZwClearPowerRequest(long long) NtClearPowerRequest
@ stdcall -private ZwClose(long) NtClose
@ stub ZwCloseObjectAuditAlarm
# @ stub ZwCompactKeys
...
...
@@ -1118,6 +1122,7 @@
@ stdcall -private ZwCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr) NtCreateNamedPipeFile
@ stdcall -private ZwCreatePagingFile(ptr ptr ptr ptr) NtCreatePagingFile
@ stdcall -private ZwCreatePort(ptr ptr long long ptr) NtCreatePort
@ stdcall -private ZwCreatePowerRequest(ptr ptr) NtCreatePowerRequest
@ stub ZwCreateProcess
# @ stub ZwCreateProcessEx
@ stub ZwCreateProfile
...
...
@@ -1323,6 +1328,7 @@
@ stub ZwSetLowEventPair
@ stub ZwSetLowWaitHighEventPair
@ stub ZwSetLowWaitHighThread
@ stdcall -private ZwSetPowerRequest(long long) NtSetPowerRequest
# @ stub ZwSetQuotaInformationFile
@ stdcall -private ZwSetSecurityObject(long long ptr) NtSetSecurityObject
@ stub ZwSetSystemEnvironmentValue
...
...
include/winbase.h
View file @
ca2b7012
...
...
@@ -966,13 +966,6 @@ typedef struct _SYSTEM_POWER_STATUS
DWORD
BatteryFullLifeTime
;
}
SYSTEM_POWER_STATUS
,
*
LPSYSTEM_POWER_STATUS
;
typedef
enum
_POWER_REQUEST_TYPE
{
PowerRequestDisplayRequired
,
PowerRequestSystemRequired
,
PowerRequestAwayModeRequired
}
POWER_REQUEST_TYPE
,
*
PPOWER_REQUEST_TYPE
;
typedef
struct
_SYSTEM_INFO
{
union
{
...
...
include/winnt.h
View file @
ca2b7012
...
...
@@ -5578,6 +5578,13 @@ typedef struct _SYSTEM_POWER_POLICY {
}
SYSTEM_POWER_POLICY
,
*
PSYSTEM_POWER_POLICY
;
typedef
enum
_POWER_REQUEST_TYPE
{
PowerRequestDisplayRequired
,
PowerRequestSystemRequired
,
PowerRequestAwayModeRequired
}
POWER_REQUEST_TYPE
,
*
PPOWER_REQUEST_TYPE
;
typedef
union
_FILE_SEGMENT_ELEMENT
{
PVOID64
Buffer
;
ULONGLONG
Alignment
;
...
...
include/winternl.h
View file @
ca2b7012
...
...
@@ -2070,6 +2070,23 @@ typedef enum _SHUTDOWN_ACTION {
ShutdownPowerOff
}
SHUTDOWN_ACTION
,
*
PSHUTDOWN_ACTION
;
typedef
struct
_COUNTED_REASON_CONTEXT
{
ULONG
Version
;
ULONG
Flags
;
union
{
struct
{
UNICODE_STRING
ResourceFileName
;
USHORT
ResourceReasonId
;
ULONG
StringCount
;
UNICODE_STRING
*
ReasonStrings
;
}
DUMMYSTRUCTNAME
;
UNICODE_STRING
SimpleString
;
}
DUMMYUNIONNAME
;
}
COUNTED_REASON_CONTEXT
,
*
PCOUNTED_REASON_CONTEXT
;
typedef
enum
_KPROFILE_SOURCE
{
ProfileTime
,
ProfileAlignmentFixup
,
...
...
@@ -2326,6 +2343,7 @@ NTSYSAPI NTSTATUS WINAPI NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK);
NTSYSAPI
NTSTATUS
WINAPI
NtCancelIoFileEx
(
HANDLE
,
PIO_STATUS_BLOCK
,
PIO_STATUS_BLOCK
);
NTSYSAPI
NTSTATUS
WINAPI
NtCancelTimer
(
HANDLE
,
BOOLEAN
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtClearEvent
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtClearPowerRequest
(
HANDLE
,
POWER_REQUEST_TYPE
);
NTSYSAPI
NTSTATUS
WINAPI
NtClose
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtCloseObjectAuditAlarm
(
PUNICODE_STRING
,
HANDLE
,
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
NtCompleteConnectPort
(
HANDLE
);
...
...
@@ -2345,6 +2363,7 @@ NTSYSAPI NTSTATUS WINAPI NtCreateMutant(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIB
NTSYSAPI
NTSTATUS
WINAPI
NtCreateNamedPipeFile
(
PHANDLE
,
ULONG
,
POBJECT_ATTRIBUTES
,
PIO_STATUS_BLOCK
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
PLARGE_INTEGER
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreatePagingFile
(
PUNICODE_STRING
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
PLARGE_INTEGER
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreatePort
(
PHANDLE
,
POBJECT_ATTRIBUTES
,
ULONG
,
ULONG
,
PULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreatePowerRequest
(
HANDLE
*
,
COUNTED_REASON_CONTEXT
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreateProcess
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
HANDLE
,
BOOLEAN
,
HANDLE
,
HANDLE
,
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreateProfile
(
PHANDLE
,
HANDLE
,
PVOID
,
ULONG
,
ULONG
,
PVOID
,
ULONG
,
KPROFILE_SOURCE
,
KAFFINITY
);
NTSYSAPI
NTSTATUS
WINAPI
NtCreateSection
(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
const
LARGE_INTEGER
*
,
ULONG
,
ULONG
,
HANDLE
);
...
...
@@ -2510,6 +2529,7 @@ NTSYSAPI NTSTATUS WINAPI NtSetLdtEntries(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
NTSYSAPI
NTSTATUS
WINAPI
NtSetLowEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetLowWaitHighEventPair
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetLowWaitHighThread
(
VOID
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetPowerRequest
(
HANDLE
,
POWER_REQUEST_TYPE
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetSecurityObject
(
HANDLE
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetSystemEnvironmentValue
(
PUNICODE_STRING
,
PUNICODE_STRING
);
NTSYSAPI
NTSTATUS
WINAPI
NtSetSystemInformation
(
SYSTEM_INFORMATION_CLASS
,
PVOID
,
ULONG
);
...
...
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