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
38577522
Commit
38577522
authored
Oct 29, 2022
by
Etaash Mathamsetty
Committed by
Alexandre Julliard
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeQueryMaximumProcessorCount/Ex.
parent
8ae70731
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+16
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+4
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
38577522
...
...
@@ -3415,6 +3415,22 @@ ULONG WINAPI KeGetCurrentProcessorNumberEx(PPROCESSOR_NUMBER process_number)
}
/***********************************************************************
* KeQueryMaximumProcessorCountEx (NTOSKRNL.EXE.@)
*/
ULONG
WINAPI
KeQueryMaximumProcessorCountEx
(
USHORT
group_number
)
{
return
GetMaximumProcessorCount
(
group_number
);
}
/***********************************************************************
* KeQueryMaximumProcessorCount (NTOSKRNL.EXE.@)
*/
ULONG
WINAPI
KeQueryMaximumProcessorCount
(
void
)
{
return
KeQueryActiveProcessorCountEx
(
ALL_PROCESSOR_GROUPS
);
}
/***********************************************************************
* READ_REGISTER_BUFFER_UCHAR (NTOSKRNL.EXE.@)
*/
VOID
WINAPI
READ_REGISTER_BUFFER_UCHAR
(
PUCHAR
Register
,
PUCHAR
Buffer
,
ULONG
Count
)
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
38577522
...
...
@@ -600,12 +600,16 @@
@ stub KePulseEvent
@ stdcall KeQueryActiveProcessors()
@ stdcall KeQueryActiveProcessorCountEx(long)
@ stdcall KeQueryActiveGroupCount() GetActiveProcessorGroupCount
@ stdcall KeQueryInterruptTime()
@ stdcall KeQueryPriorityThread(ptr)
@ stub KeQueryRuntimeThread
@ stdcall KeQuerySystemTime(ptr)
@ stdcall KeQueryTickCount(ptr)
@ stdcall KeQueryTimeIncrement()
@ stdcall KeQueryMaximumGroupCount() GetMaximumProcessorGroupCount
@ stdcall KeQueryMaximumProcessorCountEx(long)
@ stdcall KeQueryMaximumProcessorCount()
@ stub KeRaiseUserException
@ stdcall KeReadStateEvent(ptr)
@ stub KeReadStateMutant
...
...
include/winbase.h
View file @
38577522
...
...
@@ -2201,6 +2201,7 @@ WINBASEAPI DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
WINBASEAPI
DWORD
WINAPI
GetLongPathNameW
(
LPCWSTR
,
LPWSTR
,
DWORD
);
#define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
WINBASEAPI
BOOL
WINAPI
GetMailslotInfo
(
HANDLE
,
LPDWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
WINBASEAPI
DWORD
WINAPI
GetMaximumProcessorCount
(
WORD
);
WINBASEAPI
DWORD
WINAPI
GetModuleFileNameA
(
HMODULE
,
LPSTR
,
DWORD
);
WINBASEAPI
DWORD
WINAPI
GetModuleFileNameW
(
HMODULE
,
LPWSTR
,
DWORD
);
#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
...
...
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