-
Notifications
You must be signed in to change notification settings - Fork 1
/
documentation_winapy_user.html
966 lines (949 loc) · 91.3 KB
/
documentation_winapy_user.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<style>
pre {
display: inline-block;
}
body {
font-family: Comfortaa;
font-size: 125%;
color: white;
background-color: #333;
padding: 0;
margin: 0;
}
h1 {
font-size: 4rem;
}
h2 {
font-size: 3rem;
}
hr {
border: 3px solid white;
background-color: white;
border-radius: 5px;
}
h4 {
font-weight: normal;
}
i {
font-weight: bold;
}
input {
border-radius: 5px;
font-family: Comfortaa;
transform: scale(2.0) translate(-30%);
position: absolute;
right: 0;
top: 15px;
width: 200px;
}
div.top {
background-color: rgb(41, 41, 41);
position: sticky;
top: 0;
z-index: 99999999999; /* :) */
}
div.container {
margin-left: 7px;
}
h2.fh {
line-height: 0;
position: absolute;
font-size: 2.5rem;
top: -7px;
left: 5px;
}
a {
color: white;
transition: 0.3s;
}
a.s {
text-decoration: none;
}
a:hover {
opacity: 0.7;
}
</style>
</head>
<body>
<div class="top">
<h2 class="fh"><a href="documentation.html" class="s">WinAPY Documentation</a></h2><input placeholder="Search functions here..." id="search">
<br><br>
<hr>
</div>
<script type="text/javascript">
var locationText = 0;
function updateRows(event) {
let el = document.getElementById("search");
let functions = document.getElementsByTagName("h1");
let value = el.value.toLowerCase();
let isEnter = event.code == "Enter";
if (event.code == "Escape") {
el.blur();
el.value = "";
return;
}
if (isEnter) locationText++;
else locationText = 0;
let findCount = 0;
for (var i = 0; i < functions.length; i++) {
if (functions[i].innerText.toLowerCase().includes(value)) {
if (locationText == findCount) {
functions[i].scrollIntoView();
window.scrollBy(0, -100);
return;
}
findCount++;
}
}
}
document.getElementById("search").addEventListener("keyup", updateRows);
</script>
<div class="container">
<h1>AbortSystemShutdown</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+AbortSystemShutdown" style="color:SlateBlue">View AbortSystemShutdown on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">AbortSystemShutdown</span><span style="color:white;">(computer: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>AbortSystemShutdownA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+AbortSystemShutdownA" style="color:SlateBlue">View AbortSystemShutdownA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">AbortSystemShutdownA</span><span style="color:white;">(computer: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>AbortSystemShutdownW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+AbortSystemShutdownW" style="color:SlateBlue">View AbortSystemShutdownW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">AbortSystemShutdownW</span><span style="color:white;">(computer: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>ActivateKeyboardLayout</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+ActivateKeyboardLayout" style="color:SlateBlue">View ActivateKeyboardLayout on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ActivateKeyboardLayout</span><span style="color:white;">(hkl: int, flags: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>Beep</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">Beep</span><span style="color:white;">(freq: int, duration: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Generates simple tones on the speaker. The function is synchronous; it performs an alertable wait and does not return control to its caller until the sound finishes.</h4>
<h2>Parameters</h2>
<h4><i>freq</i> int
<br><blockquote>The frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767</blockquote>
<br><i>duration</i> int
<br><blockquote>The duration of the sound, in milliseconds.</blockquote>
</h4>
<hr>
<h1>BlockInput</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+BlockInput" style="color:SlateBlue">View BlockInput on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">BlockInput</span><span style="color:white;">(b: bool)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CloseHandle</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CloseHandle" style="color:SlateBlue">View CloseHandle on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CloseHandle</span><span style="color:white;">(h: HANDLE)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CommandLineToArgv</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CommandLineToArgv" style="color:SlateBlue">View CommandLineToArgv on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CommandLineToArgv</span><span style="color:white;">(cmd_line: str)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CommandLineToArgvW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CommandLineToArgvW" style="color:SlateBlue">View CommandLineToArgvW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CommandLineToArgvW</span><span style="color:white;">(cmd_line: str)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CopyFile</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CopyFile" style="color:SlateBlue">View CopyFile on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CopyFile</span><span style="color:white;">(current_file: str, new_file: str, bool_fail_if_exists: bool)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CopyFileA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CopyFileA" style="color:SlateBlue">View CopyFileA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CopyFileA</span><span style="color:white;">(current_file: str, new_file: str, bool_fail_if_exists: bool)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>CopyFileW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+CopyFileW" style="color:SlateBlue">View CopyFileW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">CopyFileW</span><span style="color:white;">(current_file: str, new_file: str, bool_fail_if_exists: bool)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>DeleteFile</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+DeleteFile" style="color:SlateBlue">View DeleteFile on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DeleteFile</span><span style="color:white;">(target_file: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>DeleteFileA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+DeleteFileA" style="color:SlateBlue">View DeleteFileA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DeleteFileA</span><span style="color:white;">(target_file: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>DeleteFileW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+DeleteFileW" style="color:SlateBlue">View DeleteFileW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DeleteFileW</span><span style="color:white;">(target_file: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>DestroyIcon</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+DestroyIcon" style="color:SlateBlue">View DestroyIcon on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DestroyIcon</span><span style="color:white;">(ic: HICON)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>DrawIcon</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DrawIcon</span><span style="color:white;">(hdc: HDC, x: int, y: int, icon: HICON)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Draws an icon or cursor into the specified device context.</h4>
<h2>Parameters</h2>
<h4><i>hdc</i> HDC
<br><blockquote>Handle to a device context</blockquote>
<br><i>x</i> int
<br><blockquote>The X-position to draw the icon at</blockquote>
<br><i>y</i> int
<br><blockquote>The Y-position to draw the icon at</blockquote>
<br><i>icon</i> HICON
<br><blockquote>The icon to be drawn</blockquote>
</h4>
<hr>
<h1>DrawIconEx</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">DrawIconEx</span><span style="color:white;">(hdc: HDC, x: int, y: int, icon: HICON, width: int, height: int, frame: int, brush: HBRUSH, diFlags: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Draws an icon or cursor into the specified device context performing the specified raster operations, and stretching or compressing the icon or cursor as specified.</h4>
<h2>Parameters</h2>
<h4><i>hdc</i> HDC
<br><blockquote>Handle to a device context</blockquote>
<br><i>x</i> int
<br><blockquote>The X-position to draw the icon at</blockquote>
<br><i>y</i> int
<br><blockquote>The Y-position to draw the icon at</blockquote>
<br><i>icon</i> HICON
<br><blockquote>The icon to be drawn</blockquote>
<br><i>width</i> int
<br><blockquote>The logical width of the icon or cursor.</blockquote>
<br><i>height</i> int
<br><blockquote>The logical height of the icon or cursor.</blockquote>
<br><i>frame</i> int
<br><blockquote>The index of the frame to draw, if hIcon identifies an animated cursor. This parameter is ignored if the icon argument does not identify an animated cursor.</blockquote>
<br><i>brush</i> HBRUSH
<br><blockquote>A handle to a brush that the system uses for flicker-free drawing, or None.</blockquote>
<br><i>diFlags</i> int
<br><blockquote>Additional flags</blockquote>
</h4>
<hr>
<h1>EnableWindow</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+EnableWindow" style="color:SlateBlue">View EnableWindow on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">EnableWindow</span><span style="color:white;">(h: HWND, enabled: bool)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>EnumChildWindows</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">EnumChildWindows</span><span style="color:white;">(hwnd: HWND, callback: FunctionType, lParam: AnyType)</span> <span style="color:#f92672">-></span> NoneType:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to the specified callback function. The callback function should look like this; ``def callback(hwnd, lparam)``.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window to enumerate, or None</blockquote>
<br><i>callback</i> FunctionType
<br><blockquote>Callback function to be called for every child window found with two arguments commonly named ``hWnd, lParam``.</blockquote>
<br><i>lParam</i> AnyType
<br><blockquote>[optional] This argument will be passed as the lParam value for the callback function, default is set to None.</blockquote>
</h4>
<hr>
<h1>ExitWindows</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ExitWindows</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Calls the ExitWindowsEx function to log off the interactive user.</h4>
<hr>
<h1>ExitWindowsEx</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ExitWindowsEx</span><span style="color:white;">(flags: int, reason: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Logs off the interactive user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated.</h4>
<h2>Parameters</h2>
<h4><i>flags</i> int
<br><blockquote>The shutdown type.</blockquote>
<br><i>reason</i> int
<br><blockquote>The reason for initiating the shutdown.</blockquote>
</h4>
<hr>
<h1>ExtractIcon</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+ExtractIcon" style="color:SlateBlue">View ExtractIcon on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ExtractIcon</span><span style="color:white;">(hinst: HINSTANCE, name: str, index: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>ExtractIconA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+ExtractIconA" style="color:SlateBlue">View ExtractIconA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ExtractIconA</span><span style="color:white;">(hinst: HINSTANCE, name: str, index: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>ExtractIconW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+ExtractIconW" style="color:SlateBlue">View ExtractIconW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ExtractIconW</span><span style="color:white;">(hinst: HINSTANCE, name: str, index: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>FillRect</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">FillRect</span><span style="color:white;">(hdc: HDC, rect: tuple, hbr: HBRUSH)</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Fills a rectangle by using the specified brush.</h4>
<h2>Parameters</h2>
<h4><i>hdc</i> HDC
<br><blockquote>Handle to a device context</blockquote>
<br><i>rect</i> tuple
<br><blockquote>Rectangle to be filled; tuple of 4 integers (x1, y1, x2, y2)</blockquote>
<br><i>hbr</i> HBRUSH
<br><blockquote>Brush to paint the rectangle with</blockquote>
</h4>
<hr>
<h1>GetClientRect</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetClientRect</span><span style="color:white;">(hdc: HDC)</span> <span style="color:#f92672">-></span> tuple:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the coordinates of a window's client area as a tuple of four integers.</h4>
<h2>Parameters</h2>
<h4><i>hdc</i> HDC
<br><blockquote>Handle to a device context</blockquote>
</h4>
<hr>
<h1>GetCommandLine</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetCommandLine" style="color:SlateBlue">View GetCommandLine on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetCommandLine</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetCommandLineA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetCommandLineA" style="color:SlateBlue">View GetCommandLineA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetCommandLineA</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetCommandLineW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetCommandLineW" style="color:SlateBlue">View GetCommandLineW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetCommandLineW</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerName</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerName" style="color:SlateBlue">View GetComputerName on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerName</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerNameA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerNameA" style="color:SlateBlue">View GetComputerNameA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerNameA</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerNameEx</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerNameEx" style="color:SlateBlue">View GetComputerNameEx on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerNameEx</span><span style="color:white;">(target_name: int)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerNameExA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerNameExA" style="color:SlateBlue">View GetComputerNameExA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerNameExA</span><span style="color:white;">(target_name: int)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerNameExW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerNameExW" style="color:SlateBlue">View GetComputerNameExW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerNameExW</span><span style="color:white;">(target_name: int)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetComputerNameW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetComputerNameW" style="color:SlateBlue">View GetComputerNameW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetComputerNameW</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetConsoleWindow</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetConsoleWindow" style="color:SlateBlue">View GetConsoleWindow on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetConsoleWindow</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> O:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetCursorInfo</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetCursorInfo</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> (int, HCURSOR, (int, int)):<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns information about the global cursor.</h4>
<hr>
<h1>GetCursorPos</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetCursorPos</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the position of the mouse cursor, in a tuple of screen coordinates (x, y).</h4>
<hr>
<h1>GetDC</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetDC</span><span style="color:white;">(hwnd: int)</span> <span style="color:#f92672">-></span> HDC:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> int
<br><blockquote>Handle to the window to retrieve the Device Context from or None</blockquote>
</h4>
<hr>
<h1>GetDesktopWindow</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetDesktopWindow</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Retrieves a handle to the desktop window.</h4>
<hr>
<h1>GetDialogBaseUnits</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetDialogBaseUnits" style="color:SlateBlue">View GetDialogBaseUnits on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetDialogBaseUnits</span><span style="color:white;">()</span>:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetDlgCtrlID</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetDlgCtrlID" style="color:SlateBlue">View GetDlgCtrlID on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetDlgCtrlID</span><span style="color:white;">(h: HWND)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetKeyboardLayout</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetKeyboardLayout" style="color:SlateBlue">View GetKeyboardLayout on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetKeyboardLayout</span><span style="color:white;">(thread: int)</span>:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetLastError</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetLastError</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Retrieves the last error code caused by a WinAPY function.</h4>
<hr>
<h1>GetModuleHandle</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetModuleHandle" style="color:SlateBlue">View GetModuleHandle on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetModuleHandle</span><span style="color:white;">(module: str)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetModuleHandleA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetModuleHandleA" style="color:SlateBlue">View GetModuleHandleA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetModuleHandleA</span><span style="color:white;">(module: str)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetModuleHandleW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+GetModuleHandleW" style="color:SlateBlue">View GetModuleHandleW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetModuleHandleW</span><span style="color:white;">(module: str)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>GetSystemMetrics</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetSystemMetrics</span><span style="color:white;">(int: nIndex)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Retrieves the specified system metric or system configuration setting.</h4>
<h2>Parameters</h2>
<h4><i>int</i> nIndex
<br><blockquote>The system metric or configuration setting to be retrieved.</blockquote>
</h4>
<hr>
<h1>GetTopWindow</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetTopWindow</span><span style="color:white;">(hWnd: HWND)</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Examines the Z order of the child windows associated with the specified parent window and retrieves a handle to the child window at the top of the Z order.</h4>
<h2>Parameters</h2>
<h4><i>hWnd</i> HWND
<br><blockquote>A handle to the parent window whose child windows are to be examined, or None.</blockquote>
</h4>
<hr>
<h1>GetWindowPlacement</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowPlacement</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> (int, int, (int, int), (int, int), (int, int, int, int)):<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the show state and the restored, minimized, and maximized positions of the specified window.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowRect</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowRect</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> (int, int, int, int):<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the dimensions of the bounding rectangle of the specified window.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowText</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowText</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the specified windows' title bar text, as an UTF-16 string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowTextA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowTextA</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the specified windows' title bar text, as an ASCII string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowTextLength</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowTextLength</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the length of the specified windows' title bar text, measured from an UTF-16 string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowTextLengthA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowTextLengthA</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the length of the specified windows' title bar text, measured from an ASCII string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowTextLengthW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowTextLengthW</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the length of the specified windows' title bar text, measured from an UTF-16 string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>GetWindowTextW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">GetWindowTextW</span><span style="color:white;">(hwnd: HWND)</span> <span style="color:#f92672">-></span> str:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns the specified windows' title bar text, as an UTF-16 string.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
</h4>
<hr>
<h1>InitiateSystemShutdown</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">InitiateSystemShutdown</span><span style="color:white;">(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Initiates a shutdown and optional restart of the specified computer.</h4>
<h2>Parameters</h2>
<h4><i>machine</i> str
<br><blockquote>The network name of the computer to be shut down, or None to shut down the current machine.</blockquote>
<br><i>message</i> str
<br><blockquote>The message to display before shutdown, or None.</blockquote>
<br><i>displayTime</i> int
<br><blockquote>The length of time that the shutdown dialog box should be displayed, in seconds.</blockquote>
<br><i>bForceAppsClosed</i> bool
<br><blockquote>Whether applications should be force closed or not.</blockquote>
<br><i>bRebootAfterShutdown</i> bool
<br><blockquote>Whether the machine should restart or not.</blockquote>
</h4>
<hr>
<h1>InitiateSystemShutdownA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">InitiateSystemShutdownA</span><span style="color:white;">(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Initiates a shutdown and optional restart of the specified computer.</h4>
<h2>Parameters</h2>
<h4><i>machine</i> str
<br><blockquote>The network name of the computer to be shut down, or None to shut down the current machine.</blockquote>
<br><i>message</i> str
<br><blockquote>The message to display before shutdown, or None.</blockquote>
<br><i>displayTime</i> int
<br><blockquote>The length of time that the shutdown dialog box should be displayed, in seconds.</blockquote>
<br><i>bForceAppsClosed</i> bool
<br><blockquote>Whether applications should be force closed or not.</blockquote>
<br><i>bRebootAfterShutdown</i> bool
<br><blockquote>Whether the machine should restart or not.</blockquote>
</h4>
<hr>
<h1>InitiateSystemShutdownW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">InitiateSystemShutdownW</span><span style="color:white;">(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Initiates a shutdown and optional restart of the specified computer.</h4>
<h2>Parameters</h2>
<h4><i>machine</i> str
<br><blockquote>The network name of the computer to be shut down, or None to shut down the current machine.</blockquote>
<br><i>message</i> str
<br><blockquote>The message to display before shutdown, or None.</blockquote>
<br><i>displayTime</i> int
<br><blockquote>The length of time that the shutdown dialog box should be displayed, in seconds.</blockquote>
<br><i>bForceAppsClosed</i> bool
<br><blockquote>Whether applications should be force closed or not.</blockquote>
<br><i>bRebootAfterShutdown</i> bool
<br><blockquote>Whether the machine should restart or not.</blockquote>
</h4>
<hr>
<h1>InvalidateRect</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">InvalidateRect</span><span style="color:white;">(hwnd: HWND, rect: tuple, erase: bool)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns a handle to one of the stock pens, brushes, fonts, or palettes.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window, or None</blockquote>
<br><i>rect</i> tuple
<br><blockquote>Rectangle with coordinates to be redrawn (x1, y1, x2, y2), or None</blockquote>
<br><i>erase</i> bool
<br><blockquote>Whether the background within the update region is to be erased when the update region is processed.</blockquote>
</h4>
<hr>
<h1>LoadCursor</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursor</span><span style="color:white;">(hInstance: HINSTANCE, cursor: int)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.</blockquote>
<br><i>cursor</i> int
<br><blockquote>The name of the cursor resource to be loaded.</blockquote>
</h4>
<hr>
<h1>LoadCursorA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursorA</span><span style="color:white;">(hInstance: HINSTANCE, cursor: int)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.</blockquote>
<br><i>cursor</i> int
<br><blockquote>The name of the cursor resource to be loaded.</blockquote>
</h4>
<hr>
<h1>LoadCursorFromFile</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursorFromFile</span><span style="color:white;">(fName: str)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Creates a cursor based on data contained in a file.</h4>
<h2>Parameters</h2>
<h4><i>fName</i> str
<br><blockquote>The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.</blockquote>
</h4>
<hr>
<h1>LoadCursorFromFileA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursorFromFileA</span><span style="color:white;">(fName: str)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Creates a cursor based on data contained in a file.</h4>
<h2>Parameters</h2>
<h4><i>fName</i> str
<br><blockquote>The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.</blockquote>
</h4>
<hr>
<h1>LoadCursorFromFileW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursorFromFileW</span><span style="color:white;">(fName: str)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Creates a cursor based on data contained in a file.</h4>
<h2>Parameters</h2>
<h4><i>fName</i> str
<br><blockquote>The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.</blockquote>
</h4>
<hr>
<h1>LoadCursorW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadCursorW</span><span style="color:white;">(hInstance: HINSTANCE, cursor: int)</span> <span style="color:#f92672">-></span> HCURSOR:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.</blockquote>
<br><i>cursor</i> int
<br><blockquote>The name of the cursor resource to be loaded.</blockquote>
</h4>
<hr>
<h1>LoadIcon</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadIcon</span><span style="color:white;">(hInstance: int, IconName: int)</span> <span style="color:#f92672">-></span> HICON:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified icon resource from the executable (.exe) file associated with an application instance or a predefined icon.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> int
<br><blockquote>Handle to the instance whose executable file contains the icon to be loaded, or None.</blockquote>
<br><i>IconName</i> int
<br><blockquote>The icon to be loaded, parsed as an UTF-16 string from an integer</blockquote>
</h4>
<hr>
<h1>LoadIconA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadIconA</span><span style="color:white;">(hInstance: int, IconName: int)</span> <span style="color:#f92672">-></span> HICON:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified icon resource from the executable (.exe) file associated with an application instance or a predefined icon.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> int
<br><blockquote>Handle to the instance whose executable file contains the icon to be loaded, or None.</blockquote>
<br><i>IconName</i> int
<br><blockquote>The icon to be loaded, parsed as an ASCII string from an integer</blockquote>
</h4>
<hr>
<h1>LoadIconW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadIconW</span><span style="color:white;">(hInstance: int, IconName: int)</span> <span style="color:#f92672">-></span> HICON:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads the specified icon resource from the executable (.exe) file associated with an application instance or a predefined icon.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> int
<br><blockquote>Handle to the instance whose executable file contains the icon to be loaded, or None.</blockquote>
<br><i>IconName</i> int
<br><blockquote>The icon to be loaded, parsed as an UTF-16 string from an integer</blockquote>
</h4>
<hr>
<h1>LoadImage</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadImage</span><span style="color:white;">(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads an icon, cursor, animated cursor, or bitmap.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.</blockquote>
<br><i>name</i> int/str
<br><blockquote>The image to be loaded.</blockquote>
<br><i>type</i> int
<br><blockquote>The type of image to be loaded.</blockquote>
<br><i>width</i> int
<br><blockquote>The width, in pixels, of the icon or cursor.</blockquote>
<br><i>height</i> int
<br><blockquote>The height, in pixels, of the icon or cursor.</blockquote>
<br><i>fLoad</i> int
<br><blockquote>Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``</blockquote>
</h4>
<hr>
<h1>LoadImageA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadImageA</span><span style="color:white;">(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads an icon, cursor, animated cursor, or bitmap.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.</blockquote>
<br><i>name</i> int/str
<br><blockquote>The image to be loaded.</blockquote>
<br><i>type</i> int
<br><blockquote>The type of image to be loaded.</blockquote>
<br><i>width</i> int
<br><blockquote>The width, in pixels, of the icon or cursor.</blockquote>
<br><i>height</i> int
<br><blockquote>The height, in pixels, of the icon or cursor.</blockquote>
<br><i>fLoad</i> int
<br><blockquote>Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``</blockquote>
</h4>
<hr>
<h1>LoadImageW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">LoadImageW</span><span style="color:white;">(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Loads an icon, cursor, animated cursor, or bitmap.</h4>
<h2>Parameters</h2>
<h4><i>hInstance</i> HINSTANCE
<br><blockquote>A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.</blockquote>
<br><i>name</i> int/str
<br><blockquote>The image to be loaded.</blockquote>
<br><i>type</i> int
<br><blockquote>The type of image to be loaded.</blockquote>
<br><i>width</i> int
<br><blockquote>The width, in pixels, of the icon or cursor.</blockquote>
<br><i>height</i> int
<br><blockquote>The height, in pixels, of the icon or cursor.</blockquote>
<br><i>fLoad</i> int
<br><blockquote>Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``</blockquote>
</h4>
<hr>
<h1>MessageBeep</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBeep</span><span style="color:white;">(sound: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry.</h4>
<h2>Parameters</h2>
<h4><i>sound</i> int
<br><blockquote>The sound to be played. The sounds are set by the user through the Sound control panel application, and then stored in the registry. Any of the Message Box icon values or 0xFFFFFFFF.</blockquote>
</h4>
<hr>
<h1>MessageBox</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBox</span><span style="color:white;">(hWnd: HWND, msg: str, title: str, type: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.</h4>
<h2>Parameters</h2>
<h4><i>hWnd</i> HWND
<br><blockquote>The parent window of the Message Box, or None.</blockquote>
<br><i>msg</i> str
<br><blockquote>The message to be displayed, as an UTF-16 string.</blockquote>
<br><i>title</i> str
<br><blockquote>The dialog box title, as an UTF-16 string.</blockquote>
<br><i>type</i> int
<br><blockquote>The contents and behavior of the dialog box.</blockquote>
</h4>
<hr>
<h1>MessageBoxA</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBoxA</span><span style="color:white;">(hWnd: HWND, msg: str, title: str, type: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.</h4>
<h2>Parameters</h2>
<h4><i>hWnd</i> HWND
<br><blockquote>The parent window of the Message Box, or None.</blockquote>
<br><i>msg</i> str
<br><blockquote>The message to be displayed, as an ASCII string.</blockquote>
<br><i>title</i> str
<br><blockquote>The dialog box title, as an ASCII string.</blockquote>
<br><i>type</i> int
<br><blockquote>The contents and behavior of the dialog box.</blockquote>
</h4>
<hr>
<h1>MessageBoxIndirect</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+MessageBoxIndirect" style="color:SlateBlue">View MessageBoxIndirect on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBoxIndirect</span><span style="color:white;">(hwnd: int, ic: HICON)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>MessageBoxIndirectA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+MessageBoxIndirectA" style="color:SlateBlue">View MessageBoxIndirectA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBoxIndirectA</span><span style="color:white;">(hwnd: int, ic: HICON)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>MessageBoxIndirectW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+MessageBoxIndirectW" style="color:SlateBlue">View MessageBoxIndirectW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBoxIndirectW</span><span style="color:white;">(hwnd: int, ic: HICON)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>MessageBoxW</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">MessageBoxW</span><span style="color:white;">(hWnd: HWND, msg: str, title: str, type: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.</h4>
<h2>Parameters</h2>
<h4><i>hWnd</i> HWND
<br><blockquote>The parent window of the Message Box, or None.</blockquote>
<br><i>msg</i> str
<br><blockquote>The message to be displayed, as an UTF-16 string.</blockquote>
<br><i>title</i> str
<br><blockquote>The dialog box title, as an UTF-16 string.</blockquote>
<br><i>type</i> int
<br><blockquote>The contents and behavior of the dialog box.</blockquote>
</h4>
<hr>
<h1>PlaySound</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+PlaySound" style="color:SlateBlue">View PlaySound on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">PlaySound</span><span style="color:white;">(sound: str/int, mod: int, flags: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>PlaySoundA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+PlaySoundA" style="color:SlateBlue">View PlaySoundA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">PlaySoundA</span><span style="color:white;">(sound: str/int, mod: int, flags: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>PlaySoundW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+PlaySoundW" style="color:SlateBlue">View PlaySoundW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">PlaySoundW</span><span style="color:white;">(sound: str/int, mod: int, flags: int)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>RedrawWindow</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">RedrawWindow</span><span style="color:white;">(hwnd: HWND, rect: tuple, region: HRGN, flags: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Redraws a portion or the entire specified window.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window, or None</blockquote>
<br><i>rect</i> tuple
<br><blockquote>Rectangle with coordinates to be redrawn (x1, y1, x2, y2), or None</blockquote>
<br><i>region</i> HRGN
<br><blockquote>Handle to a region to be redrawn, or None</blockquote>
<br><i>flags</i> int
<br><blockquote>[optional] Redrawing flags. Default are RDW_ALLCHILDREN, RDW_ERASE and RDW_INVALIDATE</blockquote>
</h4>
<hr>
<h1>ReleaseDC</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ReleaseDC</span><span style="color:white;">(hwnd: HWND, hdc: HDC)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Releases a device context, making it available to other applications.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window to be released</blockquote>
<br><i>hdc</i> HDC
<br><blockquote>A handle to a device context to be released</blockquote>
</h4>
<hr>
<h1>SendDlgItemMessage</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendDlgItemMessage" style="color:SlateBlue">View SendDlgItemMessage on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendDlgItemMessage</span><span style="color:white;">(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SendDlgItemMessageA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendDlgItemMessageA" style="color:SlateBlue">View SendDlgItemMessageA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendDlgItemMessageA</span><span style="color:white;">(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SendDlgItemMessageW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendDlgItemMessageW" style="color:SlateBlue">View SendDlgItemMessageW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendDlgItemMessageW</span><span style="color:white;">(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SendMessage</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendMessage" style="color:SlateBlue">View SendMessage on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendMessage</span><span style="color:white;">(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SendMessageA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendMessageA" style="color:SlateBlue">View SendMessageA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendMessageA</span><span style="color:white;">(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SendMessageW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SendMessageW" style="color:SlateBlue">View SendMessageW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SendMessageW</span><span style="color:white;">(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int)</span> <span style="color:#f92672">-></span> HANDLE:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SetCursorPos</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SetCursorPos</span><span style="color:white;">(x: int, y: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Moves the cursor to the specified screen coordinates.</h4>
<h2>Parameters</h2>
<h4><i>x</i> int
<br><blockquote>The new X-coordinate of the cursor</blockquote>
<br><i>y</i> int
<br><blockquote>The new Y-coordinate of the cursor</blockquote>
</h4>
<hr>
<h1>SetDlgItemText</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SetDlgItemText" style="color:SlateBlue">View SetDlgItemText on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SetDlgItemText</span><span style="color:white;">(h: HWND, ctrl: int, s: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SetDlgItemTextA</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SetDlgItemTextA" style="color:SlateBlue">View SetDlgItemTextA on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SetDlgItemTextA</span><span style="color:white;">(h: HWND, ctrl: int, s: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>SetDlgItemTextW</h1><h4><i>Note that this documentation has been automatically generated. It may be flawed or incorrect.</i></h4>
<h4><a href="https://www.google.com/search?q=site%3Adocs.microsoft.com+SetDlgItemTextW" style="color:SlateBlue">View SetDlgItemTextW on Microsoft Docs</a></h4><div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SetDlgItemTextW</span><span style="color:white;">(h: HWND, ctrl: int, s: str)</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<hr>
<h1>ShowWindow</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">ShowWindow</span><span style="color:white;">(hwnd: HWND, nCmdShow: int)</span> <span style="color:#f92672">-></span> bool:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Sets the specified window's show state.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
<br><i>nCmdShow</i> int
<br><blockquote>The new show state.</blockquote>
</h4>
<hr>
<h1>Sleep</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">Sleep</span><span style="color:white;">(dwMilliseconds: int)</span> <span style="color:#f92672">-></span> NoneType:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Sleeps for the specified duration, in milliseconds.</h4>
<h2>Parameters</h2>
<h4><i>dwMilliseconds</i> int
<br><blockquote>The amount to wait in milliseconds</blockquote>
</h4>
<hr>
<h1>SwitchToThisWindow</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">SwitchToThisWindow</span><span style="color:white;">(hwnd: HWND, bAltTab: bool)</span> <span style="color:#f92672">-></span> NoneType:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>[This function is not made for general use. It can be unavailable in future versions of Windows.] Switches focus to the specified window and brings it to the foreground.</h4>
<h2>Parameters</h2>
<h4><i>hwnd</i> HWND
<br><blockquote>Handle to a window</blockquote>
<br><i>bAltTab</i> bool
<br><blockquote>Specifies whether the window is being switched to using the Alt/Ctl+Tab key sequence or not.</blockquote>
</h4>
<hr>
<h1>WindowFromDC</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">WindowFromDC</span><span style="color:white;">(hdc: HDC)</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns a handle to the window associated with the specified display device context.</h4>
<h2>Parameters</h2>
<h4><i>hdc</i> HDC
<br><blockquote>Handle to a device context</blockquote>
</h4>
<hr>
<h1>WindowFromPhysicalPoint</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">WindowFromPhysicalPoint</span><span style="color:white;">(point: tuple)</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns a handle to the window that contains the specified physical point.</h4>
<h2>Parameters</h2>
<h4><i>point</i> tuple
<br><blockquote>The point to be checked, as a tuple of two integers (x, y).</blockquote>
</h4>
<hr>
<h1>WindowFromPoint</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">WindowFromPoint</span><span style="color:white;">(point: tuple)</span> <span style="color:#f92672">-></span> HWND:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Returns a handle to the window that contains the specified point. Returns a handle to the window if it exists at the specified point, otherwise None.</h4>
<h2>Parameters</h2>
<h4><i>point</i> tuple
<br><blockquote>The point to be checked, as a tuple of two integers (x, y).</blockquote>
</h4>
<hr>
<h1>rand</h1>
<div style="background:#272822;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin:0;line-height:125%;color:#444;">1
2</pre></td><td><pre style="margin:0;line-height:125%"><span style="color:#66d9ef">def <span style="color:#a6e22e">rand</span><span style="color:white;">()</span> <span style="color:#f92672">-></span> int:<br> <span style="color:#f92672">...</span></pre></td></tr></table></div>
<h2>Description</h2>
<h4>Generates a random integer.</h4>
</div>
</body>
</html>