[PATCH 8/8] kernel32: add processtopologyapi.h and GetProcessGroupAffinity
Roman Stingler
roman.stingler at gmail.com
Wed May 8 15:34:14 CDT 2019
From: Roman Stingler <roman.stingler at symvaro.com>
Signed-off-by: Roman Stingler <roman.stingler at symvaro.com>
---
dlls/kernel32/kernel32.spec | 2 +-
dlls/kernel32/process.c | 11 +++++++++++
dlls/kernelbase/kernelbase.spec | 2 +-
include/Makefile.in | 1 +
include/processtopologyapi.h | 34 +++++++++++++++++++++++++++++++++
5 files changed, 48 insertions(+), 2 deletions(-)
create mode 100644 include/processtopologyapi.h
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 6f4f64d7cb..5cf2b2a4dc 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -778,7 +778,7 @@
@ stdcall GetProcessAffinityMask(long ptr ptr)
@ stdcall GetProcessDEPPolicy(long ptr ptr)
@ stdcall GetProcessFlags(long)
-# @ stub GetProcessGroupAffinity
+@ stdcall GetProcessGroupAffinity(long ptr ptr)
@ stdcall GetProcessHandleCount(long ptr)
@ stdcall -norelay GetProcessHeap()
@ stdcall GetProcessHeaps(long ptr)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 6e346a1c3b..110b6cb113 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -62,6 +62,7 @@
#include "wine/server.h"
#include "wine/unicode.h"
#include "wine/debug.h"
+#include "processtopologyapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(process);
WINE_DECLARE_DEBUG_CHANNEL(relay);
@@ -4858,3 +4859,13 @@ BOOL WINAPI GetProcessMitigationPolicy(HANDLE hProcess, PROCESS_MITIGATION_POLIC
return TRUE;
}
+
+
+/**********************************************************************
+ * GetProcessGroupAffinity (KERNEL32.@)
+ */
+BOOL WINAPI GetProcessGroupAffinity(HANDLE process, PUSHORT group_count, PUSHORT group_array)
+{
+ FIXME("(%p, %p, %p): stub\n", process, group_count, group_array);
+ return 0;
+}
diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
index abddb12533..4f72969bbf 100644
--- a/dlls/kernelbase/kernelbase.spec
+++ b/dlls/kernelbase/kernelbase.spec
@@ -622,7 +622,7 @@
@ stdcall GetProcAddress(long str) kernel32.GetProcAddress
# @ stub GetProcAddressForCaller
# @ stub GetProcessDefaultCpuSets
-# @ stub GetProcessGroupAffinity
+@ stdcall GetProcessGroupAffinity(long ptr ptr)
@ stdcall GetProcessHandleCount(long ptr) kernel32.GetProcessHandleCount
@ stdcall -norelay GetProcessHeap() kernel32.GetProcessHeap
@ stdcall GetProcessHeaps(long ptr) kernel32.GetProcessHeaps
diff --git a/include/Makefile.in b/include/Makefile.in
index 9ffa9cbe41..2e9126619b 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -521,6 +521,7 @@ SOURCES = \
powrprof.h \
prntvpt.h \
processthreadapi.h \
+ processtopologyapi.h \
profinfo.h \
propidl.idl \
propkey.h \
diff --git a/include/processtopologyapi.h b/include/processtopologyapi.h
new file mode 100644
index 0000000000..5a37793ff3
--- /dev/null
+++ b/include/processtopologyapi.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2019 Roman Stingler
+ *
+ * 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 PROCESSTOPOLOGYAPI_H
+#define PROCESSTOPOLOGYAPI_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+WINBASEAPI BOOL WINAPI GetProcessGroupAffinity(HANDLE,PUSHORT,PUSHORT);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //WINE_SOURCE_PROCESSTOPOLOGYAPI_H
--
2.21.0
More information about the wine-devel
mailing list