600 references to NativeMethods
WindowsBase (600)
Base\System\Windows\Input\KeyInterop.cs (341)
22
case
NativeMethods
.VK_CANCEL:
26
case
NativeMethods
.VK_BACK:
30
case
NativeMethods
.VK_TAB:
34
case
NativeMethods
.VK_CLEAR:
38
case
NativeMethods
.VK_RETURN:
42
case
NativeMethods
.VK_PAUSE:
46
case
NativeMethods
.VK_CAPITAL:
50
case
NativeMethods
.VK_KANA:
54
case
NativeMethods
.VK_JUNJA:
58
case
NativeMethods
.VK_FINAL:
62
case
NativeMethods
.VK_KANJI:
66
case
NativeMethods
.VK_ESCAPE:
70
case
NativeMethods
.VK_CONVERT:
74
case
NativeMethods
.VK_NONCONVERT:
78
case
NativeMethods
.VK_ACCEPT:
82
case
NativeMethods
.VK_MODECHANGE:
86
case
NativeMethods
.VK_SPACE:
90
case
NativeMethods
.VK_PRIOR:
94
case
NativeMethods
.VK_NEXT:
98
case
NativeMethods
.VK_END:
102
case
NativeMethods
.VK_HOME:
106
case
NativeMethods
.VK_LEFT:
110
case
NativeMethods
.VK_UP:
114
case
NativeMethods
.VK_RIGHT:
118
case
NativeMethods
.VK_DOWN:
122
case
NativeMethods
.VK_SELECT:
126
case
NativeMethods
.VK_PRINT:
130
case
NativeMethods
.VK_EXECUTE:
134
case
NativeMethods
.VK_SNAPSHOT:
138
case
NativeMethods
.VK_INSERT:
142
case
NativeMethods
.VK_DELETE:
146
case
NativeMethods
.VK_HELP:
150
case
NativeMethods
.VK_0:
154
case
NativeMethods
.VK_1:
158
case
NativeMethods
.VK_2:
162
case
NativeMethods
.VK_3:
166
case
NativeMethods
.VK_4:
170
case
NativeMethods
.VK_5:
174
case
NativeMethods
.VK_6:
178
case
NativeMethods
.VK_7:
182
case
NativeMethods
.VK_8:
186
case
NativeMethods
.VK_9:
190
case
NativeMethods
.VK_A:
194
case
NativeMethods
.VK_B:
198
case
NativeMethods
.VK_C:
202
case
NativeMethods
.VK_D:
206
case
NativeMethods
.VK_E:
210
case
NativeMethods
.VK_F:
214
case
NativeMethods
.VK_G:
218
case
NativeMethods
.VK_H:
222
case
NativeMethods
.VK_I:
226
case
NativeMethods
.VK_J:
230
case
NativeMethods
.VK_K:
234
case
NativeMethods
.VK_L:
238
case
NativeMethods
.VK_M:
242
case
NativeMethods
.VK_N:
246
case
NativeMethods
.VK_O:
250
case
NativeMethods
.VK_P:
254
case
NativeMethods
.VK_Q:
258
case
NativeMethods
.VK_R:
262
case
NativeMethods
.VK_S:
266
case
NativeMethods
.VK_T:
270
case
NativeMethods
.VK_U:
274
case
NativeMethods
.VK_V:
278
case
NativeMethods
.VK_W:
282
case
NativeMethods
.VK_X:
286
case
NativeMethods
.VK_Y:
290
case
NativeMethods
.VK_Z:
294
case
NativeMethods
.VK_LWIN:
298
case
NativeMethods
.VK_RWIN:
302
case
NativeMethods
.VK_APPS:
306
case
NativeMethods
.VK_SLEEP:
310
case
NativeMethods
.VK_NUMPAD0:
314
case
NativeMethods
.VK_NUMPAD1:
318
case
NativeMethods
.VK_NUMPAD2:
322
case
NativeMethods
.VK_NUMPAD3:
326
case
NativeMethods
.VK_NUMPAD4:
330
case
NativeMethods
.VK_NUMPAD5:
334
case
NativeMethods
.VK_NUMPAD6:
338
case
NativeMethods
.VK_NUMPAD7:
342
case
NativeMethods
.VK_NUMPAD8:
346
case
NativeMethods
.VK_NUMPAD9:
350
case
NativeMethods
.VK_MULTIPLY:
354
case
NativeMethods
.VK_ADD:
358
case
NativeMethods
.VK_SEPARATOR:
362
case
NativeMethods
.VK_SUBTRACT:
366
case
NativeMethods
.VK_DECIMAL:
370
case
NativeMethods
.VK_DIVIDE:
374
case
NativeMethods
.VK_F1:
378
case
NativeMethods
.VK_F2:
382
case
NativeMethods
.VK_F3:
386
case
NativeMethods
.VK_F4:
390
case
NativeMethods
.VK_F5:
394
case
NativeMethods
.VK_F6:
398
case
NativeMethods
.VK_F7:
402
case
NativeMethods
.VK_F8:
406
case
NativeMethods
.VK_F9:
410
case
NativeMethods
.VK_F10:
414
case
NativeMethods
.VK_F11:
418
case
NativeMethods
.VK_F12:
422
case
NativeMethods
.VK_F13:
426
case
NativeMethods
.VK_F14:
430
case
NativeMethods
.VK_F15:
434
case
NativeMethods
.VK_F16:
438
case
NativeMethods
.VK_F17:
442
case
NativeMethods
.VK_F18:
446
case
NativeMethods
.VK_F19:
450
case
NativeMethods
.VK_F20:
454
case
NativeMethods
.VK_F21:
458
case
NativeMethods
.VK_F22:
462
case
NativeMethods
.VK_F23:
466
case
NativeMethods
.VK_F24:
470
case
NativeMethods
.VK_NUMLOCK:
474
case
NativeMethods
.VK_SCROLL:
478
case
NativeMethods
.VK_SHIFT:
479
case
NativeMethods
.VK_LSHIFT:
483
case
NativeMethods
.VK_RSHIFT:
487
case
NativeMethods
.VK_CONTROL:
488
case
NativeMethods
.VK_LCONTROL:
492
case
NativeMethods
.VK_RCONTROL:
496
case
NativeMethods
.VK_MENU:
497
case
NativeMethods
.VK_LMENU:
501
case
NativeMethods
.VK_RMENU:
505
case
NativeMethods
.VK_BROWSER_BACK:
509
case
NativeMethods
.VK_BROWSER_FORWARD:
513
case
NativeMethods
.VK_BROWSER_REFRESH:
517
case
NativeMethods
.VK_BROWSER_STOP:
521
case
NativeMethods
.VK_BROWSER_SEARCH:
525
case
NativeMethods
.VK_BROWSER_FAVORITES:
529
case
NativeMethods
.VK_BROWSER_HOME:
533
case
NativeMethods
.VK_VOLUME_MUTE:
537
case
NativeMethods
.VK_VOLUME_DOWN:
541
case
NativeMethods
.VK_VOLUME_UP:
545
case
NativeMethods
.VK_MEDIA_NEXT_TRACK:
549
case
NativeMethods
.VK_MEDIA_PREV_TRACK:
553
case
NativeMethods
.VK_MEDIA_STOP:
557
case
NativeMethods
.VK_MEDIA_PLAY_PAUSE:
561
case
NativeMethods
.VK_LAUNCH_MAIL:
565
case
NativeMethods
.VK_LAUNCH_MEDIA_SELECT:
569
case
NativeMethods
.VK_LAUNCH_APP1:
573
case
NativeMethods
.VK_LAUNCH_APP2:
577
case
NativeMethods
.VK_OEM_1:
581
case
NativeMethods
.VK_OEM_PLUS:
585
case
NativeMethods
.VK_OEM_COMMA:
589
case
NativeMethods
.VK_OEM_MINUS:
593
case
NativeMethods
.VK_OEM_PERIOD:
597
case
NativeMethods
.VK_OEM_2:
601
case
NativeMethods
.VK_OEM_3:
605
case
NativeMethods
.VK_C1:
609
case
NativeMethods
.VK_C2:
613
case
NativeMethods
.VK_OEM_4:
617
case
NativeMethods
.VK_OEM_5:
621
case
NativeMethods
.VK_OEM_6:
625
case
NativeMethods
.VK_OEM_7:
629
case
NativeMethods
.VK_OEM_8:
633
case
NativeMethods
.VK_OEM_102:
637
case
NativeMethods
.VK_PROCESSKEY:
641
case
NativeMethods
.VK_OEM_ATTN: // VK_DBE_ALPHANUMERIC
645
case
NativeMethods
.VK_OEM_FINISH: // VK_DBE_KATAKANA
649
case
NativeMethods
.VK_OEM_COPY: // VK_DBE_HIRAGANA
653
case
NativeMethods
.VK_OEM_AUTO: // VK_DBE_SBCSCHAR
657
case
NativeMethods
.VK_OEM_ENLW: // VK_DBE_DBCSCHAR
661
case
NativeMethods
.VK_OEM_BACKTAB: // VK_DBE_ROMAN
665
case
NativeMethods
.VK_ATTN: // VK_DBE_NOROMAN
669
case
NativeMethods
.VK_CRSEL: // VK_DBE_ENTERWORDREGISTERMODE
673
case
NativeMethods
.VK_EXSEL: // VK_DBE_ENTERIMECONFIGMODE
677
case
NativeMethods
.VK_EREOF: // VK_DBE_FLUSHSTRING
681
case
NativeMethods
.VK_PLAY: // VK_DBE_CODEINPUT
685
case
NativeMethods
.VK_ZOOM: // VK_DBE_NOCODEINPUT
689
case
NativeMethods
.VK_NONAME: // VK_DBE_DETERMINESTRING
693
case
NativeMethods
.VK_PA1: // VK_DBE_ENTERDLGCONVERSIONMODE
697
case
NativeMethods
.VK_OEM_CLEAR:
719
virtualKey =
NativeMethods
.VK_CANCEL;
723
virtualKey =
NativeMethods
.VK_BACK;
727
virtualKey =
NativeMethods
.VK_TAB;
731
virtualKey =
NativeMethods
.VK_CLEAR;
735
virtualKey =
NativeMethods
.VK_RETURN;
739
virtualKey =
NativeMethods
.VK_PAUSE;
743
virtualKey =
NativeMethods
.VK_CAPITAL;
747
virtualKey =
NativeMethods
.VK_KANA;
751
virtualKey =
NativeMethods
.VK_JUNJA;
755
virtualKey =
NativeMethods
.VK_FINAL;
759
virtualKey =
NativeMethods
.VK_KANJI;
763
virtualKey =
NativeMethods
.VK_ESCAPE;
767
virtualKey =
NativeMethods
.VK_CONVERT;
771
virtualKey =
NativeMethods
.VK_NONCONVERT;
775
virtualKey =
NativeMethods
.VK_ACCEPT;
779
virtualKey =
NativeMethods
.VK_MODECHANGE;
783
virtualKey =
NativeMethods
.VK_SPACE;
787
virtualKey =
NativeMethods
.VK_PRIOR;
791
virtualKey =
NativeMethods
.VK_NEXT;
795
virtualKey =
NativeMethods
.VK_END;
799
virtualKey =
NativeMethods
.VK_HOME;
803
virtualKey =
NativeMethods
.VK_LEFT;
807
virtualKey =
NativeMethods
.VK_UP;
811
virtualKey =
NativeMethods
.VK_RIGHT;
815
virtualKey =
NativeMethods
.VK_DOWN;
819
virtualKey =
NativeMethods
.VK_SELECT;
823
virtualKey =
NativeMethods
.VK_PRINT;
827
virtualKey =
NativeMethods
.VK_EXECUTE;
831
virtualKey =
NativeMethods
.VK_SNAPSHOT;
835
virtualKey =
NativeMethods
.VK_INSERT;
839
virtualKey =
NativeMethods
.VK_DELETE;
843
virtualKey =
NativeMethods
.VK_HELP;
847
virtualKey =
NativeMethods
.VK_0;
851
virtualKey =
NativeMethods
.VK_1;
855
virtualKey =
NativeMethods
.VK_2;
859
virtualKey =
NativeMethods
.VK_3;
863
virtualKey =
NativeMethods
.VK_4;
867
virtualKey =
NativeMethods
.VK_5;
871
virtualKey =
NativeMethods
.VK_6;
875
virtualKey =
NativeMethods
.VK_7;
879
virtualKey =
NativeMethods
.VK_8;
883
virtualKey =
NativeMethods
.VK_9;
887
virtualKey =
NativeMethods
.VK_A;
891
virtualKey =
NativeMethods
.VK_B;
895
virtualKey =
NativeMethods
.VK_C;
899
virtualKey =
NativeMethods
.VK_D;
903
virtualKey =
NativeMethods
.VK_E;
907
virtualKey =
NativeMethods
.VK_F;
911
virtualKey =
NativeMethods
.VK_G;
915
virtualKey =
NativeMethods
.VK_H;
919
virtualKey =
NativeMethods
.VK_I;
923
virtualKey =
NativeMethods
.VK_J;
927
virtualKey =
NativeMethods
.VK_K;
931
virtualKey =
NativeMethods
.VK_L;
935
virtualKey =
NativeMethods
.VK_M;
939
virtualKey =
NativeMethods
.VK_N;
943
virtualKey =
NativeMethods
.VK_O;
947
virtualKey =
NativeMethods
.VK_P;
951
virtualKey =
NativeMethods
.VK_Q;
955
virtualKey =
NativeMethods
.VK_R;
959
virtualKey =
NativeMethods
.VK_S;
963
virtualKey =
NativeMethods
.VK_T;
967
virtualKey =
NativeMethods
.VK_U;
971
virtualKey =
NativeMethods
.VK_V;
975
virtualKey =
NativeMethods
.VK_W;
979
virtualKey =
NativeMethods
.VK_X;
983
virtualKey =
NativeMethods
.VK_Y;
987
virtualKey =
NativeMethods
.VK_Z;
991
virtualKey =
NativeMethods
.VK_LWIN;
995
virtualKey =
NativeMethods
.VK_RWIN;
999
virtualKey =
NativeMethods
.VK_APPS;
1003
virtualKey =
NativeMethods
.VK_SLEEP;
1007
virtualKey =
NativeMethods
.VK_NUMPAD0;
1011
virtualKey =
NativeMethods
.VK_NUMPAD1;
1015
virtualKey =
NativeMethods
.VK_NUMPAD2;
1019
virtualKey =
NativeMethods
.VK_NUMPAD3;
1023
virtualKey =
NativeMethods
.VK_NUMPAD4;
1027
virtualKey =
NativeMethods
.VK_NUMPAD5;
1031
virtualKey =
NativeMethods
.VK_NUMPAD6;
1035
virtualKey =
NativeMethods
.VK_NUMPAD7;
1039
virtualKey =
NativeMethods
.VK_NUMPAD8;
1043
virtualKey =
NativeMethods
.VK_NUMPAD9;
1047
virtualKey =
NativeMethods
.VK_MULTIPLY;
1051
virtualKey =
NativeMethods
.VK_ADD;
1055
virtualKey =
NativeMethods
.VK_SEPARATOR;
1059
virtualKey =
NativeMethods
.VK_SUBTRACT;
1063
virtualKey =
NativeMethods
.VK_DECIMAL;
1067
virtualKey =
NativeMethods
.VK_DIVIDE;
1071
virtualKey =
NativeMethods
.VK_F1;
1075
virtualKey =
NativeMethods
.VK_F2;
1079
virtualKey =
NativeMethods
.VK_F3;
1083
virtualKey =
NativeMethods
.VK_F4;
1087
virtualKey =
NativeMethods
.VK_F5;
1091
virtualKey =
NativeMethods
.VK_F6;
1095
virtualKey =
NativeMethods
.VK_F7;
1099
virtualKey =
NativeMethods
.VK_F8;
1103
virtualKey =
NativeMethods
.VK_F9;
1107
virtualKey =
NativeMethods
.VK_F10;
1111
virtualKey =
NativeMethods
.VK_F11;
1115
virtualKey =
NativeMethods
.VK_F12;
1119
virtualKey =
NativeMethods
.VK_F13;
1123
virtualKey =
NativeMethods
.VK_F14;
1127
virtualKey =
NativeMethods
.VK_F15;
1131
virtualKey =
NativeMethods
.VK_F16;
1135
virtualKey =
NativeMethods
.VK_F17;
1139
virtualKey =
NativeMethods
.VK_F18;
1143
virtualKey =
NativeMethods
.VK_F19;
1147
virtualKey =
NativeMethods
.VK_F20;
1151
virtualKey =
NativeMethods
.VK_F21;
1155
virtualKey =
NativeMethods
.VK_F22;
1159
virtualKey =
NativeMethods
.VK_F23;
1163
virtualKey =
NativeMethods
.VK_F24;
1167
virtualKey =
NativeMethods
.VK_NUMLOCK;
1171
virtualKey =
NativeMethods
.VK_SCROLL;
1175
virtualKey =
NativeMethods
.VK_LSHIFT;
1179
virtualKey =
NativeMethods
.VK_RSHIFT;
1183
virtualKey =
NativeMethods
.VK_LCONTROL;
1187
virtualKey =
NativeMethods
.VK_RCONTROL;
1191
virtualKey =
NativeMethods
.VK_LMENU;
1195
virtualKey =
NativeMethods
.VK_RMENU;
1199
virtualKey =
NativeMethods
.VK_BROWSER_BACK;
1203
virtualKey =
NativeMethods
.VK_BROWSER_FORWARD;
1207
virtualKey =
NativeMethods
.VK_BROWSER_REFRESH;
1211
virtualKey =
NativeMethods
.VK_BROWSER_STOP;
1215
virtualKey =
NativeMethods
.VK_BROWSER_SEARCH;
1219
virtualKey =
NativeMethods
.VK_BROWSER_FAVORITES;
1223
virtualKey =
NativeMethods
.VK_BROWSER_HOME;
1227
virtualKey =
NativeMethods
.VK_VOLUME_MUTE;
1231
virtualKey =
NativeMethods
.VK_VOLUME_DOWN;
1235
virtualKey =
NativeMethods
.VK_VOLUME_UP;
1239
virtualKey =
NativeMethods
.VK_MEDIA_NEXT_TRACK;
1243
virtualKey =
NativeMethods
.VK_MEDIA_PREV_TRACK;
1247
virtualKey =
NativeMethods
.VK_MEDIA_STOP;
1251
virtualKey =
NativeMethods
.VK_MEDIA_PLAY_PAUSE;
1255
virtualKey =
NativeMethods
.VK_LAUNCH_MAIL;
1259
virtualKey =
NativeMethods
.VK_LAUNCH_MEDIA_SELECT;
1263
virtualKey =
NativeMethods
.VK_LAUNCH_APP1;
1267
virtualKey =
NativeMethods
.VK_LAUNCH_APP2;
1271
virtualKey =
NativeMethods
.VK_OEM_1;
1275
virtualKey =
NativeMethods
.VK_OEM_PLUS;
1279
virtualKey =
NativeMethods
.VK_OEM_COMMA;
1283
virtualKey =
NativeMethods
.VK_OEM_MINUS;
1287
virtualKey =
NativeMethods
.VK_OEM_PERIOD;
1291
virtualKey =
NativeMethods
.VK_OEM_2;
1295
virtualKey =
NativeMethods
.VK_OEM_3;
1299
virtualKey =
NativeMethods
.VK_C1;
1303
virtualKey =
NativeMethods
.VK_C2;
1307
virtualKey =
NativeMethods
.VK_OEM_4;
1311
virtualKey =
NativeMethods
.VK_OEM_5;
1315
virtualKey =
NativeMethods
.VK_OEM_6;
1319
virtualKey =
NativeMethods
.VK_OEM_7;
1323
virtualKey =
NativeMethods
.VK_OEM_8;
1327
virtualKey =
NativeMethods
.VK_OEM_102;
1331
virtualKey =
NativeMethods
.VK_PROCESSKEY;
1335
virtualKey =
NativeMethods
.VK_OEM_ATTN; // VK_DBE_ALPHANUMERIC
1339
virtualKey =
NativeMethods
.VK_OEM_FINISH; // VK_DBE_KATAKANA
1343
virtualKey =
NativeMethods
.VK_OEM_COPY; // VK_DBE_HIRAGANA
1347
virtualKey =
NativeMethods
.VK_OEM_AUTO; // VK_DBE_SBCSCHAR
1351
virtualKey =
NativeMethods
.VK_OEM_ENLW; // VK_DBE_DBCSCHAR
1355
virtualKey =
NativeMethods
.VK_OEM_BACKTAB; // VK_DBE_ROMAN
1359
virtualKey =
NativeMethods
.VK_ATTN; // VK_DBE_NOROMAN
1363
virtualKey =
NativeMethods
.VK_CRSEL; // VK_DBE_ENTERWORDREGISTERMODE
1367
virtualKey =
NativeMethods
.VK_EXSEL; // VK_DBE_ENTERIMECONFIGMODE
1371
virtualKey =
NativeMethods
.VK_EREOF; // VK_DBE_FLUSHSTRING
1375
virtualKey =
NativeMethods
.VK_PLAY; // VK_DBE_CODEINPUT
1379
virtualKey =
NativeMethods
.VK_ZOOM; // VK_DBE_NOCODEINPUT
1383
virtualKey =
NativeMethods
.VK_NONAME; // VK_DBE_DETERMINESTRING
1387
virtualKey =
NativeMethods
.VK_PA1; // VK_ENTERDLGCONVERSIONMODE
1391
virtualKey =
NativeMethods
.VK_OEM_CLEAR;
Base\System\Windows\SplashScreen.cs (27)
42
private
NativeMethods
.BitmapHandle _hBitmap;
47
NativeMethods
.BLENDFUNCTION _blendFunc;
51
private static
NativeMethods
.WndProc _defWndProc;
174
private IntPtr CreateWindow(
NativeMethods
.BitmapHandle hBitmap, int width, int height, bool topMost)
178
_defWndProc = new MS.Win32.
NativeMethods
.WndProc(UnsafeNativeMethods.DefWindowProc);
181
MS.Win32.
NativeMethods
.WNDCLASSEX_D wndClass = new MS.Win32.
NativeMethods
.WNDCLASSEX_D();
182
wndClass.cbSize = Marshal.SizeOf(typeof(MS.Win32.
NativeMethods
.WNDCLASSEX_D));
207
(int)
NativeMethods
.WS_EX_WINDOWEDGE |
208
NativeMethods
.WS_EX_TOOLWINDOW |
209
NativeMethods
.WS_EX_LAYERED |
210
(topMost ?
NativeMethods
.WS_EX_TOPMOST : 0);
216
MS.Win32.
NativeMethods
.WS_POPUP | MS.Win32.
NativeMethods
.WS_VISIBLE,
225
NativeMethods
.POINT newSize = new
NativeMethods
.POINT(width, height);
226
NativeMethods
.POINT newLocation = new
NativeMethods
.POINT(x, y);
227
NativeMethods
.POINT sourceLocation = new
NativeMethods
.POINT(0, 0);
228
_blendFunc = new
NativeMethods
.BLENDFUNCTION();
229
_blendFunc.BlendOp =
NativeMethods
.AC_SRC_OVER;
235
memDC, sourceLocation, 0, ref _blendFunc,
NativeMethods
.ULW_ALPHA);
341
UnsafeNativeMethods.UpdateLayeredWindow(_hwnd, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref _blendFunc,
NativeMethods
.ULW_ALPHA);
450
MS.Win32.
NativeMethods
.BITMAPINFO bmInfo = new MS.Win32.
NativeMethods
.BITMAPINFO(width, height, 32 /*bpp*/);
451
bmInfo.bmiHeader_biCompression = MS.Win32.
NativeMethods
.BI_RGB;
Base\System\Windows\Threading\Dispatcher.cs (5)
2599
NativeMethods
.QS_INPUT |
2600
NativeMethods
.QS_EVENT |
2601
NativeMethods
.QS_POSTMESSAGE,
2602
NativeMethods
.MWMO_INPUTAVAILABLE);
2649
UnsafeNativeMethods.PeekMessage(ref msg, new HandleRef(this, _window.Value.Handle), _msgProcessQueue, _msgProcessQueue,
NativeMethods
.PM_REMOVE);
Shared\MS\Internal\TextServicesLoader.cs (1)
120
if (UnsafeNativeMethods.TF_CreateThreadMgr(out threadManager) ==
NativeMethods
.S_OK)
Shared\MS\Win32\HwndSubclass.cs (11)
346
HookWindowProc(hwnd, new
NativeMethods
.WndProc(SubclassWndProc),
468
NativeMethods
.WndProc newWndProc = new
NativeMethods
.WndProc(SubclassWndProc);
469
IntPtr oldWndProc = UnsafeNativeMethods.GetWindowLongPtr(new HandleRef(this,hwnd),
NativeMethods
.GWL_WNDPROC);
536
private void HookWindowProc(IntPtr hwnd,
NativeMethods
.WndProc newWndProc, IntPtr oldWndProc)
544
IntPtr oldWndProc2 = (IntPtr)UnsafeNativeMethods.CriticalSetWindowLong(_hwndHandleRef,
NativeMethods
.GWL_WNDPROC, _attachedWndProc);
592
NativeMethods
.WndProc currentWndProc = UnsafeNativeMethods.GetWindowLongWndProc(new HandleRef(this,_hwndAttached));
609
UnsafeNativeMethods.CriticalSetWindowLong(_hwndHandleRef,
NativeMethods
.GWL_WNDPROC, _oldWndProc);
705
private static
NativeMethods
.WndProc DefWndProcStub = new
NativeMethods
.WndProc(DefWndProcWrapper);
727
private
NativeMethods
.WndProc _attachedWndProc;
Shared\MS\Win32\HwndWrapper.cs (6)
92
NativeMethods
.WNDCLASSEX_D wc_d = new
NativeMethods
.WNDCLASSEX_D();
94
IntPtr hNullBrush = UnsafeNativeMethods.CriticalGetStockObject(
NativeMethods
.NULL_BRUSH);
107
NativeMethods
.WndProc initialWndProc = new
NativeMethods
.WndProc(hwndSubclass.SubclassWndProc);
129
wc_d.cbSize = Marshal.SizeOf(typeof(
NativeMethods
.WNDCLASSEX_D));
Shared\MS\Win32\ManagedWndProcTracker.cs (3)
108
int windowStyle = UnsafeNativeMethods.GetWindowLong(new HandleRef(null,hwnd),
NativeMethods
.GWL_STYLE);
109
if((windowStyle &
NativeMethods
.WS_CHILD) != 0)
174
result = UnsafeNativeMethods.SetWindowLong(new HandleRef(null,hwnd),
NativeMethods
.GWL_WNDPROC, defWindowProc);
Shared\MS\Win32\MessageOnlyHwndWrapper.cs (1)
17
public MessageOnlyHwndWrapper() : base(0, 0, 0, 0, 0, 0, 0, "",
NativeMethods
.HWND_MESSAGE, null)
Shared\MS\Win32\NativeMethodsCLR.cs (2)
3911
public int nMaxFile =
NativeMethods
.MAX_PATH;
3913
public int nMaxFileTitle =
NativeMethods
.MAX_PATH;
Shared\MS\Win32\NativeMethodsOther.cs (3)
298
private BitmapHandle(bool ownsHandle) : base(ownsHandle,
NativeMethods
.CommonHandles.GDI)
339
private IconHandle() : base(true,
NativeMethods
.CommonHandles.Icon)
382
private CursorHandle() : base(true,
NativeMethods
.CommonHandles.Cursor)
Shared\MS\Win32\NativeMethodsSetLastError.cs (5)
138
public static extern
NativeMethods
.WndProc GetWindowLongWndProc(HandleRef hWnd, int nIndex);
147
public static extern
NativeMethods
.WndProc GetWindowLongPtrWndProc(HandleRef hWnd, int nIndex);
156
public static extern int MapWindowPoints(HandleRef hWndFrom, HandleRef hWndTo, [In, Out] ref
NativeMethods
.RECT rect, int cPoints);
168
public static extern Int32 SetWindowLongWndProc(HandleRef hWnd, int nIndex,
NativeMethods
.WndProc dwNewLong);
177
public static extern IntPtr SetWindowLongPtrWndProc(HandleRef hWnd, int nIndex,
NativeMethods
.WndProc dwNewLong);
Shared\MS\Win32\SafeNativeMethodsCLR.cs (53)
104
internal static void GetMonitorInfo(HandleRef hmonitor, [In, Out]
NativeMethods
.MONITORINFOEX info)
118
public static IntPtr MonitorFromPoint(
NativeMethods
.POINTSTRUCT pt, int flags)
129
public static IntPtr MonitorFromRect(ref
NativeMethods
.RECT rect, int flags)
152
public static
NativeMethods
.CursorHandle LoadCursor(HandleRef hInst, IntPtr iconId)
154
NativeMethods
.CursorHandle cursorHandle = SafeNativeMethodsPrivate.LoadCursor(hInst, iconId);
190
internal static bool AdjustWindowRectEx(ref
NativeMethods
.RECT lpRect, int dwStyle, bool bMenu, int dwExStyle)
206
internal static void GetClientRect(HandleRef hWnd, [In, Out] ref
NativeMethods
.RECT rect)
217
internal static
NativeMethods
.RECT GetClientRect(HandleRef hWnd)
219
var clientRect = default(
NativeMethods
.RECT);
229
internal static void GetWindowRect(HandleRef hWnd, [In, Out] ref
NativeMethods
.RECT rect)
290
public static bool TrackMouseEvent(
NativeMethods
.TRACKMOUSEEVENT tme)
411
public static void ScreenToClient(HandleRef hWnd, [In, Out]
NativeMethods
.POINT pt)
530
int sessionId = SessionId.HasValue ? SessionId.Value :
NativeMethods
.WTS_CURRENT_SESSION;
536
NativeMethods
.WTS_CURRENT_SERVER_HANDLE,
538
NativeMethods
.WTS_INFO_CLASS.WTSConnectState,
542
if (Enum.IsDefined(typeof(
NativeMethods
.WTS_CONNECTSTATE_CLASS), data))
544
var connectState = (
NativeMethods
.WTS_CONNECTSTATE_CLASS)data;
545
currentSessionConnectState = (connectState ==
NativeMethods
.WTS_CONNECTSTATE_CLASS.WTSActive);
577
/// <returns>The <see cref="
NativeMethods
.PROCESS_DPI_AWARENESS"/> of the specified process</returns>
593
internal static
NativeMethods
.PROCESS_DPI_AWARENESS GetProcessDpiAwareness(HandleRef hProcess)
598
if(hr !=
NativeMethods
.S_OK)
603
return (
NativeMethods
.PROCESS_DPI_AWARENESS)
NativeMethods
.IntPtrToInt32(ptrProcessDpiAwareness);
668
/// <returns>The DPI for the window which depends on the <see cref="
NativeMethods
.DPI_AWARENESS"/> of the window. An invalid <paramref name="hwnd"/> value will result in a return value of 0.</returns>
670
/// The following table indicates the return value of GetDpiForWindow based on the <see cref="
NativeMethods
.DPI_AWARENESS"/> of the provided <paramref name="hwnd"/>.
698
/// DPI_AWARENESS (see <see cref="
NativeMethods
.DPI_AWARENESS"/>) value of DPI_AWARENESS_UNAWARE(<see cref="
NativeMethods
.DPI_AWARENESS.DPI_AWARENESS_UNAWARE"/>),
737
internal static
NativeMethods
.DPI_HOSTING_BEHAVIOR GetWindowDpiHostingBehavior(IntPtr hWnd)
757
internal static
NativeMethods
.DPI_HOSTING_BEHAVIOR GetThreadDpiHostingBehavior()
793
ref
NativeMethods
.RECT lpRect,
830
ref
NativeMethods
.POINT lpPoint)
856
ref
NativeMethods
.POINT lpPoint)
888
public static extern bool IntGetWindowRect(HandleRef hWnd, [In, Out] ref
NativeMethods
.RECT rect);
891
public static extern bool IntGetClientRect(HandleRef hWnd, [In, Out] ref
NativeMethods
.RECT rect);
894
public static extern bool IntAdjustWindowRectEx(ref
NativeMethods
.RECT lpRect, int dwStyle, bool bMenu, int dwExStyle);
897
public static extern IntPtr MonitorFromRect(ref
NativeMethods
.RECT rect, int flags);
900
public static extern IntPtr MonitorFromPoint(
NativeMethods
.POINTSTRUCT pt, int flags);
909
public static extern IntPtr SetTimer(HandleRef hWnd, int nIDEvent, int uElapse,
NativeMethods
.TimerProc lpTimerFunc);
912
public static extern IntPtr TrySetTimer(HandleRef hWnd, int nIDEvent, int uElapse,
NativeMethods
.TimerProc lpTimerFunc);
933
public static extern bool IntGetMonitorInfo(HandleRef hmonitor, [In, Out]
NativeMethods
.MONITORINFOEX info);
952
public static extern bool TrackMouseEvent(
NativeMethods
.TRACKMOUSEEVENT tme);
955
public static extern
NativeMethods
.CursorHandle LoadCursor(HandleRef hInst, IntPtr iconId);
966
public static extern int IntScreenToClient(HandleRef hWnd, [In, Out]
NativeMethods
.POINT pt);
977
[In]
NativeMethods
.WTS_INFO_CLASS WTSInfoClass,
1051
[In] [Out] ref
NativeMethods
.RECT lpRect,
1079
[In] [Out] ref
NativeMethods
.POINT lpPoint);
1104
[In] [Out] ref
NativeMethods
.POINT lpPoint);
1155
/// <returns>The DPI for the window which depends on the <see cref="
NativeMethods
.DPI_AWARENESS"/> of the window. An invalid <paramref name="hwnd"/> value will result in a return value of 0.</returns>
1157
/// The following table indicates the return value of GetDpiForWindow based on the <see cref="
NativeMethods
.DPI_AWARENESS"/> of the provided <paramref name="hwnd"/>.
1179
/// DPI_AWARENESS (see <see cref="
NativeMethods
.DPI_AWARENESS"/>) value of DPI_AWARENESS_UNAWARE(<see cref="
NativeMethods
.DPI_AWARENESS.DPI_AWARENESS_UNAWARE"/>),
1211
internal static extern
NativeMethods
.DPI_HOSTING_BEHAVIOR GetWindowDpiHostingBehavior(IntPtr hWnd);
1226
internal static extern
NativeMethods
.DPI_HOSTING_BEHAVIOR GetThreadDpiHostingBehavior();
Shared\MS\Win32\SafeNativeMethodsOther.cs (2)
287
int nIndex = exStyle ?
NativeMethods
.GWL_EXSTYLE :
NativeMethods
.GWL_STYLE;
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (101)
169
public static extern uint GetDpiForMonitor(HandleRef hMonitor,
NativeMethods
.MONITOR_DPI_TYPE dpiType, out uint dpiX, out uint dpiY);
236
public static extern int CriticalFillRect(IntPtr hdc, ref
NativeMethods
.RECT rcFill, IntPtr brush);
258
HandleCollector.Remove((IntPtr)hObject,
NativeMethods
.CommonHandles.GDI);
272
HandleCollector.Remove((IntPtr)hObject,
NativeMethods
.CommonHandles.GDI);
302
public static extern IntPtr SelectObject(HandleRef hdc,
NativeMethods
.BitmapHandle obj);
577
public extern static bool EnumThreadWindows(int dwThreadId,
NativeMethods
.EnumThreadWindowsCallback lpfn, HandleRef lParam);
595
HandleCollector.Remove((IntPtr)handle,
NativeMethods
.CommonHandles.Kernel);
643
return HandleCollector.Add(h,
NativeMethods
.CommonHandles.HDC);
671
HandleCollector.Remove((IntPtr)pvBaseAddress,
NativeMethods
.CommonHandles.Kernel);
717
public static extern int GetObject(HandleRef hObject, int nSize, [In, Out]
NativeMethods
.BITMAP bm);
732
private static extern bool IntGetCursorPos([In, Out]
NativeMethods
.POINT pt);
738
internal static bool GetCursorPos([In, Out]
NativeMethods
.POINT pt)
753
private static extern bool IntTryGetCursorPos([In, Out]
NativeMethods
.POINT pt);
759
internal static bool TryGetCursorPos([In, Out]
NativeMethods
.POINT pt)
1024
public static extern int ImmConfigureIME(HandleRef hkl, HandleRef hwnd, int dwData, [In] ref
NativeMethods
.REGISTERWORD registerWord);
1032
public static extern int ImmSetCompositionWindow(HandleRef hIMC, [In, Out] ref
NativeMethods
.COMPOSITIONFORM compform);
1040
public static extern int ImmSetCandidateWindow(HandleRef hIMC, [In, Out] ref
NativeMethods
.CANDIDATEFORM candform);
1450
public static extern bool SystemParametersInfo(int nAction, int nParam, ref
NativeMethods
.RECT rc, int nUpdate);
1474
public static extern bool SystemParametersInfo(int nAction, int nParam, ref
NativeMethods
.HIGHCONTRAST_I rc, int nUpdate);
1482
public static extern bool SystemParametersInfo(int nAction, int nParam, [In, Out]
NativeMethods
.NONCLIENTMETRICS metrics, int nUpdate);
1489
public static extern bool GetSystemPowerStatus(ref
NativeMethods
.SYSTEM_POWER_STATUS systemPowerStatus);
1497
private static extern int IntClientToScreen(HandleRef hWnd, [In, Out]
NativeMethods
.POINT pt);
1503
public static void ClientToScreen(HandleRef hWnd, [In, Out]
NativeMethods
.POINT pt)
1603
private static extern IntPtr IntBeginPaint(HandleRef hWnd, [In, Out] ref
NativeMethods
.PAINTSTRUCT lpPaint);
1609
public static IntPtr BeginPaint(HandleRef hWnd, [In, Out, MarshalAs(UnmanagedType.LPStruct)] ref
NativeMethods
.PAINTSTRUCT lpPaint) {
1610
return HandleCollector.Add(IntBeginPaint(hWnd, ref lpPaint),
NativeMethods
.CommonHandles.HDC);
1619
private static extern bool IntEndPaint(HandleRef hWnd, ref
NativeMethods
.PAINTSTRUCT lpPaint);
1625
public static bool EndPaint(HandleRef hWnd, [In, MarshalAs(UnmanagedType.LPStruct)] ref
NativeMethods
.PAINTSTRUCT lpPaint) {
1626
HandleCollector.Remove(lpPaint.hdc,
NativeMethods
.CommonHandles.HDC);
1652
return HandleCollector.Add(hDc,
NativeMethods
.CommonHandles.HDC);
1669
HandleCollector.Remove((IntPtr)hDC,
NativeMethods
.CommonHandles.HDC);
1713
internal static extern bool GetOpenFileName([In, Out]
NativeMethods
.OPENFILENAME_I ofn);
1721
internal static extern bool GetSaveFileName([In, Out]
NativeMethods
.OPENFILENAME_I ofn);
1740
public static extern bool UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst,
NativeMethods
.POINT pptDst,
NativeMethods
.POINT pSizeDst, IntPtr hdcSrc,
NativeMethods
.POINT pptSrc, int crKey, ref
NativeMethods
.BLENDFUNCTION pBlend, int dwFlags);
1840
private static extern
NativeMethods
.BitmapHandle PrivateCreateDIBSection(HandleRef hdc, ref
NativeMethods
.BITMAPINFO bitmapInfo, int iUsage, ref IntPtr ppvBits, SafeFileMappingHandle hSection, int dwOffset);
1845
internal static
NativeMethods
.BitmapHandle CreateDIBSection(HandleRef hdc, ref
NativeMethods
.BITMAPINFO bitmapInfo, int iUsage, ref IntPtr ppvBits, SafeFileMappingHandle hSection, int dwOffset)
1853
NativeMethods
.BitmapHandle hBitmap = PrivateCreateDIBSection(hdc, ref bitmapInfo, iUsage, ref ppvBits, hSection, dwOffset);
1870
private static extern
NativeMethods
.BitmapHandle PrivateCreateBitmap(int width, int height, int planes, int bitsPerPixel, byte[] lpvBits);
1875
internal static
NativeMethods
.BitmapHandle CreateBitmap(int width, int height, int planes, int bitsPerPixel, byte[] lpvBits)
1877
NativeMethods
.BitmapHandle hBitmap = PrivateCreateBitmap(width, height, planes, bitsPerPixel, lpvBits);
1900
HandleCollector.Remove((IntPtr)handle,
NativeMethods
.CommonHandles.Icon);
1918
private static extern
NativeMethods
.IconHandle PrivateCreateIconIndirect([In, MarshalAs(UnmanagedType.LPStruct)]
NativeMethods
.ICONINFO iconInfo);
1923
internal static
NativeMethods
.IconHandle CreateIconIndirect([In, MarshalAs(UnmanagedType.LPStruct)]
NativeMethods
.ICONINFO iconInfo)
1925
NativeMethods
.IconHandle hIcon = PrivateCreateIconIndirect(iconInfo);
1954
HandleCollector.Remove((IntPtr)hDC,
NativeMethods
.CommonHandles.HDC);
1975
HandleCollector.Remove((IntPtr)hDC,
NativeMethods
.CommonHandles.HDC);
2089
internal static extern IntPtr SetWinEventHook(int eventMin, int eventMax, IntPtr hmodWinEventProc,
NativeMethods
.WinEventProcDef WinEventReentrancyFilter, uint idProcess, uint idThread, int dwFlags);
2248
NativeMethods
.POINT pPtlHimetric,
2250
NativeMethods
.POINTF pPtfContainer,
2331
NativeMethods
.COMRECT lprcPosRect,
2333
NativeMethods
.COMRECT lprcClipRect,
2335
NativeMethods
.OLEINPLACEFRAMEINFO lpFrameInfo);
2339
NativeMethods
.SIZE scrollExtant);
2357
NativeMethods
.COMRECT lprcPosRect);
2448
NativeMethods
.COMRECT lprectBorder);
2453
NativeMethods
.COMRECT pborderwidths);
2458
NativeMethods
.COMRECT pborderwidths);
2472
NativeMethods
.tagOleMenuGroupWidths lpMenuWidths);
2577
NativeMethods
.RECT lprectBorder);
2582
NativeMethods
.RECT pborderwidths);
2587
NativeMethods
.RECT pborderwidths);
2632
NativeMethods
.RECT prcBorder,
2685
NativeMethods
.COMRECT lprcPosRect,
2687
NativeMethods
.COMRECT lprcClipRect);
2767
NativeMethods
.COMRECT lprcPosRect);
2795
NativeMethods
.SIZE pSizel);
2802
NativeMethods
.SIZE pSizel);
2826
NativeMethods
.tagLOGPALETTE pLogpal);
2901
NativeMethods
.RECT lprcPosRect);
2929
NativeMethods
.SIZE pSizel);
2936
NativeMethods
.SIZE pSizel);
2961
NativeMethods
.tagLOGPALETTE pLogpal);
2989
NativeMethods
.tagCONTROLINFO pCI);
3093
NativeMethods
.tagOLEVERB rgelt,
3185
NativeMethods
.STATSTG pStatstg,
3282
NativeMethods
.DISPPARAMS pDispParams,
3286
NativeMethods
.EXCEPINFO pExcepInfo,
3345
NativeMethods
.DISPPARAMS pDispParams,
3349
NativeMethods
.EXCEPINFO pExcepInfo,
3374
[In, Out]
NativeMethods
.DISPPARAMS dispParams,
3382
[In, Out]
NativeMethods
.EXCEPINFO exceptionInfo,
3588
NativeMethods
.WebBrowserReadyState ReadyState { get;}
3706
NativeMethods
.POINT pt,
3716
NativeMethods
.DOCHOSTUIINFO info);
3726
NativeMethods
.IOleCommandTarget commandTarget,
3762
NativeMethods
.COMRECT rect,
4081
int hr =
NativeMethods
.S_OK;
4086
int hrcurrent =
NativeMethods
.S_OK;
4093
if (
NativeMethods
.Succeeded(hr) &&
NativeMethods
.Failed(hrcurrent))
4100
if (
NativeMethods
.Failed(hr))
4210
[In, Out]
NativeMethods
.RAWINPUTDEVICELIST[] ridl,
4222
[In] ref
NativeMethods
.RID_DEVICE_INFO ridInfo,
4347
NativeMethods
.MonitorEnumProc lpfnEnum,
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (38)
77
out
NativeMethods
.IconHandle phiconLarge,
78
out
NativeMethods
.IconHandle phiconSmall,
86
internal static extern
NativeMethods
.IconHandle CreateIcon(IntPtr hInstance, int nWidth, int nHeight, byte cPlanes, byte cBitsPixel, byte[] lpbANDbits, byte[] lpbXORbits);
93
public static extern bool CreateCaret(HandleRef hwnd,
NativeMethods
.BitmapHandle hbitmap, int width, int height);
117
internal static extern
NativeMethods
.IconHandle LoadImageIcon(IntPtr hinst, string stName, int nType, int cxDesired, int cyDesired, int nFlags);
120
internal static extern
NativeMethods
.CursorHandle LoadImageCursor(IntPtr hinst, string stName, int nType, int cxDesired, int cyDesired, int nFlags);
180
internal static extern bool GetVersionEx([In, Out]
NativeMethods
.OSVERSIONINFOEX ver);
202
void SetSecuritySite(
NativeMethods
.IInternetSecurityMgrSite pSite);
264
[In]
NativeMethods
.SECURITY_ATTRIBUTES lpSecurityAttributes,
340
internal static extern UInt16 IntRegisterClassEx(
NativeMethods
.WNDCLASSEX_D wc_d);
346
internal static UInt16 RegisterClassEx(
NativeMethods
.WNDCLASSEX_D wc_d)
448
int length = MS.Win32.
NativeMethods
.MAX_PATH;
512
internal static extern IntPtr SendMessage( HandleRef hWnd, WindowMessage msg, IntPtr wParam,
NativeMethods
.IconHandle iconHandle );
637
internal unsafe static extern SafeFileMappingHandle CreateFileMapping(SafeFileHandle hFile,
NativeMethods
.SECURITY_ATTRIBUTES lpFileMappingAttributes, int flProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, string lpName);
662
Int32 tempResult = NativeMethodsSetLastError.SetWindowLong(hWnd, nIndex,
NativeMethods
.IntPtrToInt32(dwNewLong));
685
Int32 tempResult = NativeMethodsSetLastError.SetWindowLong(hWnd, nIndex,
NativeMethods
.IntPtrToInt32(dwNewLong));
701
internal static IntPtr CriticalSetWindowLong(HandleRef hWnd, int nIndex,
NativeMethods
.WndProc dwNewLong)
787
iResult =
NativeMethods
.IntPtrToInt32(result);
808
internal static
NativeMethods
.WndProc GetWindowLongWndProc(HandleRef hWnd)
810
NativeMethods
.WndProc returnValue = null;
816
returnValue = NativeMethodsSetLastError.GetWindowLongWndProc(hWnd,
NativeMethods
.GWL_WNDPROC);
822
returnValue = NativeMethodsSetLastError.GetWindowLongPtrWndProc(hWnd,
NativeMethods
.GWL_WNDPROC);
949
internal static void GetIconInfo(HandleRef hIcon, out
NativeMethods
.ICONINFO piconinfo)
953
piconinfo = new
NativeMethods
.ICONINFO();
969
piconinfo.hbmMask =
NativeMethods
.BitmapHandle.CreateFromHandle(iconInfoImpl.hbmMask);
970
piconinfo.hbmColor =
NativeMethods
.BitmapHandle.CreateFromHandle(iconInfoImpl.hbmColor);
997
private static extern bool IntGetWindowPlacement(HandleRef hWnd, ref
NativeMethods
.WINDOWPLACEMENT placement);
1006
internal static void GetWindowPlacement(HandleRef hWnd, ref
NativeMethods
.WINDOWPLACEMENT placement)
1016
private static extern bool IntSetWindowPlacement(HandleRef hWnd, [In] ref
NativeMethods
.WINDOWPLACEMENT placement);
1025
internal static void SetWindowPlacement(HandleRef hWnd, [In] ref
NativeMethods
.WINDOWPLACEMENT placement)
1046
internal static extern bool SystemParametersInfo(int nAction, int nParam, [In, Out]
NativeMethods
.ANIMATIONINFO anim, int nUpdate);
1054
internal static extern bool SystemParametersInfo(int nAction, int nParam, [In, Out]
NativeMethods
.ICONMETRICS metrics, int nUpdate);
1182
[In] ref
NativeMethods
.MOUSEMOVEPOINT pointsIn,
1183
[Out]
NativeMethods
.MOUSEMOVEPOINT[] pointsBufferOut,
1466
ref
NativeMethods
.InternetCacheConfigInfo pInternetCacheConfigInfo,
1524
public
NativeMethods
.ColorSpace phDataColorSpace; // color space of data
1547
public
NativeMethods
.ProfileType dwType; // profile type
1588
public
NativeMethods
.POINT pt;
Shared\MS\Win32\UnsafeNativeMethodsTextServices.cs (1)
887
public
NativeMethods
.VARIANT val;