summaryrefslogtreecommitdiffstats
path: root/Modules/_winapi.c
diff options
context:
space:
mode:
authorHenrik Tunedal <tunedal@gmail.com>2024-04-28 21:10:44 (GMT)
committerGitHub <noreply@github.com>2024-04-28 21:10:44 (GMT)
commit133c1a7cdb19dd9317e7607ecf8f4fd4fb5842f6 (patch)
tree666e1f7b31b3ba3640ff53d2806bf810cb7df4e9 /Modules/_winapi.c
parentf5b7e397c0a0e180257450843ab622ab8783adf6 (diff)
downloadcpython-133c1a7cdb19dd9317e7607ecf8f4fd4fb5842f6.zip
cpython-133c1a7cdb19dd9317e7607ecf8f4fd4fb5842f6.tar.gz
cpython-133c1a7cdb19dd9317e7607ecf8f4fd4fb5842f6.tar.bz2
gh-118293: Suppress mouse cursor feedback when launching Windows processes with multiprocessing (GH-118315)
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r--Modules/_winapi.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index 57b8bdc..23e3c0d 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -72,9 +72,45 @@
#ifndef STARTF_USESHOWWINDOW
#define STARTF_USESHOWWINDOW 0x00000001
#endif
+#ifndef STARTF_USESIZE
+#define STARTF_USESIZE 0x00000002
+#endif
+#ifndef STARTF_USEPOSITION
+#define STARTF_USEPOSITION 0x00000004
+#endif
+#ifndef STARTF_USECOUNTCHARS
+#define STARTF_USECOUNTCHARS 0x00000008
+#endif
+#ifndef STARTF_USEFILLATTRIBUTE
+#define STARTF_USEFILLATTRIBUTE 0x00000010
+#endif
+#ifndef STARTF_RUNFULLSCREEN
+#define STARTF_RUNFULLSCREEN 0x00000020
+#endif
+#ifndef STARTF_FORCEONFEEDBACK
+#define STARTF_FORCEONFEEDBACK 0x00000040
+#endif
+#ifndef STARTF_FORCEOFFFEEDBACK
+#define STARTF_FORCEOFFFEEDBACK 0x00000080
+#endif
#ifndef STARTF_USESTDHANDLES
#define STARTF_USESTDHANDLES 0x00000100
#endif
+#ifndef STARTF_USEHOTKEY
+#define STARTF_USEHOTKEY 0x00000200
+#endif
+#ifndef STARTF_TITLEISLINKNAME
+#define STARTF_TITLEISLINKNAME 0x00000800
+#endif
+#ifndef STARTF_TITLEISAPPID
+#define STARTF_TITLEISAPPID 0x00001000
+#endif
+#ifndef STARTF_PREVENTPINNING
+#define STARTF_PREVENTPINNING 0x00002000
+#endif
+#ifndef STARTF_UNTRUSTEDSOURCE
+#define STARTF_UNTRUSTEDSOURCE 0x00008000
+#endif
typedef struct {
PyTypeObject *overlapped_type;
@@ -3061,7 +3097,19 @@ static int winapi_exec(PyObject *m)
WINAPI_CONSTANT(F_DWORD, SEC_RESERVE);
WINAPI_CONSTANT(F_DWORD, SEC_WRITECOMBINE);
WINAPI_CONSTANT(F_DWORD, STARTF_USESHOWWINDOW);
+ WINAPI_CONSTANT(F_DWORD, STARTF_USESIZE);
+ WINAPI_CONSTANT(F_DWORD, STARTF_USEPOSITION);
+ WINAPI_CONSTANT(F_DWORD, STARTF_USECOUNTCHARS);
+ WINAPI_CONSTANT(F_DWORD, STARTF_USEFILLATTRIBUTE);
+ WINAPI_CONSTANT(F_DWORD, STARTF_RUNFULLSCREEN);
+ WINAPI_CONSTANT(F_DWORD, STARTF_FORCEONFEEDBACK);
+ WINAPI_CONSTANT(F_DWORD, STARTF_FORCEOFFFEEDBACK);
WINAPI_CONSTANT(F_DWORD, STARTF_USESTDHANDLES);
+ WINAPI_CONSTANT(F_DWORD, STARTF_USEHOTKEY);
+ WINAPI_CONSTANT(F_DWORD, STARTF_TITLEISLINKNAME);
+ WINAPI_CONSTANT(F_DWORD, STARTF_TITLEISAPPID);
+ WINAPI_CONSTANT(F_DWORD, STARTF_PREVENTPINNING);
+ WINAPI_CONSTANT(F_DWORD, STARTF_UNTRUSTEDSOURCE);
WINAPI_CONSTANT(F_DWORD, STD_INPUT_HANDLE);
WINAPI_CONSTANT(F_DWORD, STD_OUTPUT_HANDLE);
WINAPI_CONSTANT(F_DWORD, STD_ERROR_HANDLE);