Commit a9b1084
committed
Add
Issue #42 shows issues with initialising WMI in a pynput app. This appears to be down to how COM is initialised.
Using MTA in this case appears to solve the error, but pythoncom defaults to STA and I don't know the ramifications
of defaulting to MTA.
I'm leaving the default behavious as is and adding a flag that users can change if they wishCOM_FLAG constant for controlling how COM is initialised.1 parent b9b4756 commit a9b1084
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 | | |
23 | 37 | | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
27 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
| |||
0 commit comments