3000 references to PInvokeCore
PresentationCore (4)
System\Windows\Ole\WpfOleServices.cs (4)
147PInvokeCore.ReleaseStgMedium(ref medium); 184PInvokeCore.OleGetClipboard(dataObject); 187PInvokeCore.OleSetClipboard(dataObject); 190PInvokeCore.OleFlushClipboard();
System.Drawing.Common (168)
misc\DpiHelper.cs (2)
35s_deviceDpiX = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 36s_deviceDpiY = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Drawing\BufferedGraphics.cs (1)
91PInvokeCore.BitBlt(
System\Drawing\BufferedGraphicsContext.cs (9)
277entries = PInvokeCore.GetPaletteEntries(halftonePalette, 0, (uint)colorCount, paletteEntries); 281entries = PInvokeCore.GetPaletteEntries(hpalette, 0, (uint)colorCount, paletteEntries); 310_compatDC = PInvokeCore.CreateCompatibleDC(src); 327_oldBitmap = (HBITMAP)PInvokeCore.SelectObject(_compatDC, _dib); 366OBJ_TYPE objType = (OBJ_TYPE)PInvokeCore.GetObjectType(hdc); 409hbitmap = PInvokeCore.CreateDIBSection(hdc, bitmapInfo, DIB_USAGE.DIB_RGB_COLORS, &pvBits, HANDLE.Null, 0); 426PInvokeCore.SelectObject(_compatDC, _oldBitmap); 432PInvokeCore.DeleteDC(_compatDC); 448PInvokeCore.DeleteObject(_dib);
System\Drawing\Font.cs (2)
551PInvokeCore.GetObject((HGDIOBJ)hfont, out LOGFONT logFont); 719HFONT handle = PInvokeCore.CreateFontIndirect((LOGFONTW*)&lf);
System\Drawing\FontFamily.cs (3)
189Span<char> name = stackalloc char[(int)PInvokeCore.LF_FACESIZE]; 231Span<char> name = stackalloc char[(int)PInvokeCore.LF_FACESIZE]; 238Debug.Assert(span.Length == (int)PInvokeCore.LF_FACESIZE);
System\Drawing\Graphics.cs (6)
2746BOOL result = PInvokeCore.BitBlt( 3318saveState = PInvokeCore.SaveDC(hdc); 3332type = PInvokeCore.CombineRgn(graphicsRegion!, dcRegion, graphicsRegion!, RGN_COMBINE_MODE.RGN_AND); 3339type = PInvokeCore.SelectClipRgn(hdc, graphicsRegion!); 3348PInvokeCore.OffsetViewportOrgEx(hdc, (int)offset.X, (int)offset.Y, lppt: null); 3565(((PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_REMOTESESSION) & 0x00000001) != 0) && (error == 0)))
System\Drawing\Icon.cs (19)
87_handle = PInvokeCore.CopyIcon(original, _iconSize.Width, _iconSize.Height); 168char[] buffer = ArrayPool<char>.Shared.Rent(Math.Max((int)PInvokeCore.MAX_PATH, filePath.Length)); 201ICONINFO info = PInvokeCore.GetIconInfo(this); 206PInvokeCore.GetObject( 211PInvokeCore.DeleteObject(info.hbmColor); 216PInvokeCore.GetObject( 226PInvokeCore.DeleteObject(info.hbmMask); 252PInvokeCore.DestroyIcon(_handle); 336PInvokeCore.IntersectClipRect(hdc, targetX, targetY, targetX + clipWidth, targetY + clipHeight); 337PInvokeCore.DrawIconEx( 348PInvokeCore.SelectClipRgn(hdc, clippingRegion); 423width = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXICON); 428height = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYICON); 434s_bitDepth = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.BITSPIXEL); 435s_bitDepth *= PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PLANES); 664ICONINFO info = PInvokeCore.GetIconInfo(this); 671PInvokeCore.GetObject(info.hbmColor, sizeof(BITMAP), &bmp); 718PInvokeCore.DeleteObject(info.hbmColor); 723PInvokeCore.DeleteObject(info.hbmMask);
System\Drawing\Image.cs (1)
233encoder = ImageCodecInfoHelper.GetEncoderClsid(PInvokeCore.ImageFormatPNG);
System\Drawing\Imaging\ImageFormat.cs (24)
17private static readonly ImageFormat s_memoryBMP = new(PInvokeCore.ImageFormatMemoryBMP); 18private static readonly ImageFormat s_bmp = new(PInvokeCore.ImageFormatBMP); 19private static readonly ImageFormat s_emf = new(PInvokeCore.ImageFormatEMF); 20private static readonly ImageFormat s_wmf = new(PInvokeCore.ImageFormatWMF); 21private static readonly ImageFormat s_jpeg = new(PInvokeCore.ImageFormatJPEG); 22private static readonly ImageFormat s_png = new(PInvokeCore.ImageFormatPNG); 23private static readonly ImageFormat s_gif = new(PInvokeCore.ImageFormatGIF); 24private static readonly ImageFormat s_tiff = new(PInvokeCore.ImageFormatTIFF); 25private static readonly ImageFormat s_exif = new(PInvokeCore.ImageFormatEXIF); 26private static readonly ImageFormat s_icon = new(PInvokeCore.ImageFormatIcon); 27private static readonly ImageFormat s_heif = new(PInvokeCore.ImageFormatHEIF); 28private static readonly ImageFormat s_webp = new(PInvokeCore.ImageFormatWEBP); 131if (Guid == PInvokeCore.ImageFormatMemoryBMP) 136if (Guid == PInvokeCore.ImageFormatBMP) 141if (Guid == PInvokeCore.ImageFormatEMF) 146if (Guid == PInvokeCore.ImageFormatWMF) 151if (Guid == PInvokeCore.ImageFormatGIF) 156if (Guid == PInvokeCore.ImageFormatJPEG) 161if (Guid == PInvokeCore.ImageFormatPNG) 166if (Guid == PInvokeCore.ImageFormatTIFF) 171if (Guid == PInvokeCore.ImageFormatEXIF) 176if (Guid == PInvokeCore.ImageFormatIcon) 181if (Guid == PInvokeCore.ImageFormatHEIF) 186if (Guid == PInvokeCore.ImageFormatWEBP)
System\Drawing\Interop\LOGFONT.cs (2)
31private fixed char _lfFaceName[(int)PInvokeCore.LF_FACESIZE]; 38public Span<char> lfFaceName => MemoryMarshal.CreateSpan(ref _lfFaceName[0], (int)PInvokeCore.LF_FACESIZE);
System\Drawing\Printing\DefaultPrintController.cs (6)
78DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(_modeHandle); 86PInvokeCore.GlobalUnlock(_modeHandle); 94int dpiX = PInvokeCore.GetDeviceCaps(_hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 95int dpiY = PInvokeCore.GetDeviceCaps(_hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 96int hardMarginX_DU = PInvokeCore.GetDeviceCaps(_hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX); 97int hardMarginY_DU = PInvokeCore.GetDeviceCaps(_hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System\Drawing\Printing\PageSettings.cs (39)
45PInvokeCore.GlobalFree(modeHandle); 70int dpiX = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 71int hardMarginX_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX); 85int dpiY = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 86int hardMarginY_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY); 97? _printerSettings.GetModeField(ModeField.Orientation, (short)PInvokeCore.DMORIENT_PORTRAIT) == PInvokeCore.DMORIENT_LANDSCAPE 133DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(modeHandle); 137PInvokeCore.GlobalUnlock(modeHandle); 138PInvokeCore.GlobalFree(modeHandle); 155int dpiX = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 156int dpiY = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 160printableArea.X = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX; 161printableArea.Y = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY; 162printableArea.Width = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.HORZRES) * 100 / dpiX; 163printableArea.Height = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.VERTRES) * 100 / dpiY; 168printableArea.Y = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX; 169printableArea.X = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY; 170printableArea.Height = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.HORZRES) * 100 / dpiX; 171printableArea.Width = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.VERTRES) * 100 / dpiY; 191DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(modeHandle); 194PInvokeCore.GlobalUnlock(modeHandle); 195PInvokeCore.GlobalFree(modeHandle); 231DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock((HGLOBAL)hdevmode); 240devmode->dmOrientation = _landscape.IsTrue ? (short)PInvokeCore.DMORIENT_LANDSCAPE : (short)PInvokeCore.DMORIENT_PORTRAIT; 335PInvokeCore.GlobalFree((HGLOBAL)hdevmode); 340PInvokeCore.GlobalUnlock((HGLOBAL)hdevmode); 348DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(modeHandle); 352PInvokeCore.GlobalUnlock(modeHandle); 353PInvokeCore.GlobalFree(modeHandle); 367? _printerSettings.GetModeField(ModeField.Orientation, (short)PInvokeCore.DMORIENT_PORTRAIT, modeHandle) == PInvokeCore.DMORIENT_LANDSCAPE 385DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(modeHandle); 389PInvokeCore.GlobalUnlock(modeHandle); 393PInvokeCore.GlobalFree(modeHandle); 479DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock((HGLOBAL)hdevmode); 488_landscape = devmode->dmOrientation == PInvokeCore.DMORIENT_LANDSCAPE; 495PInvokeCore.GlobalUnlock((HGLOBAL)hdevmode);
System\Drawing\Printing\PreviewPrintController.cs (4)
80int dpiX = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 81int dpiY = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 82int hardMarginX_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX); 83int hardMarginY_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System\Drawing\Printing\PrintController.SafeDeviceModeHandle.cs (1)
36PInvokeCore.GlobalFree((HGLOBAL)handle);
System\Drawing\Printing\PrinterSettings.cs (29)
452PInvokeCore.GlobalFree(modeHandle); 458DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(hdevmode); 460PInvokeCore.GlobalUnlock(hdevmode); 477PInvokeCore.GlobalFree(modeHandle); 484void* modePointer = PInvokeCore.GlobalLock(hdevmode); 486PInvokeCore.GlobalUnlock(hdevmode); 554hwndOwner = PInvokeCore.GetDesktopWindow(), 555nStartPage = PInvokeCore.START_PAGE_GENERAL 558HRESULT status = PInvokeCore.PrintDlgEx(&dialogSettings); 565DEVNAMES* names = (DEVNAMES*)PInvokeCore.GlobalLock(handle); 578PInvokeCore.GlobalUnlock(handle); 581PInvokeCore.GlobalFree(dialogSettings.hDevNames); 582PInvokeCore.GlobalFree(dialogSettings.hDevMode); 590return PInvokeCore.GetDeviceCaps(hdc, capability); 634HGLOBAL handle = PInvokeCore.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE, (uint)result); 635DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(handle); 693PInvokeCore.GlobalFree(handle); 694PInvokeCore.GlobalUnlock(handle); 698PInvokeCore.GlobalUnlock(handle); 735HGLOBAL handle = PInvokeCore.GlobalAlloc( 739DEVNAMES* devnames = (DEVNAMES*)PInvokeCore.GlobalLock(handle); 756PInvokeCore.GlobalUnlock(handle); 782DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock(modeHandle); 827PInvokeCore.GlobalUnlock(modeHandle); 833PInvokeCore.GlobalFree(modeHandle); 989DEVMODEW* devmode = (DEVMODEW*)PInvokeCore.GlobalLock((HGLOBAL)hdevmode); 1022PInvokeCore.GlobalUnlock((HGLOBAL)hdevmode); 1035DEVNAMES* names = (DEVNAMES*)PInvokeCore.GlobalLock((HGLOBAL)hdevnames); 1043PInvokeCore.GlobalUnlock((HGLOBAL)hdevnames);
System\Drawing\Printing\PrintPreviewGraphics.cs (4)
38int dpiX = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 39int dpiY = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 40int hardMarginX_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX); 41int hardMarginY_DU = PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System\Drawing\Region.cs (1)
87PInvokeCore.DeleteObject((HRGN)regionHandle);
System\Drawing\SystemFonts.cs (5)
54return PInvokeCore.SystemParametersInfo(ref metrics); 154if (PInvokeCore.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETICONTITLELOGFONT, (uint)sizeof(LOGFONT), &itfont, 0)) 171if (PInvokeCore.GetSystemDefaultLCID() == PInvoke.LANG_ARABIC) 183HFONT handle = (HFONT)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.DEFAULT_GUI_FONT); 228if (PInvokeCore.GetSystemDefaultLCID() == PInvoke.LANG_JAPANESE)
System\Drawing\SystemIcons.cs (10)
22public static Icon Application => GetIcon(ref s_application, PInvokeCore.IDI_APPLICATION); 24public static Icon Asterisk => GetIcon(ref s_asterisk, PInvokeCore.IDI_ASTERISK); 26public static Icon Error => GetIcon(ref s_error, PInvokeCore.IDI_ERROR); 28public static Icon Exclamation => GetIcon(ref s_exclamation, PInvokeCore.IDI_EXCLAMATION); 30public static Icon Hand => GetIcon(ref s_hand, PInvokeCore.IDI_HAND); 32public static Icon Information => GetIcon(ref s_information, PInvokeCore.IDI_INFORMATION); 34public static Icon Question => GetIcon(ref s_question, PInvokeCore.IDI_QUESTION); 36public static Icon Warning => GetIcon(ref s_warning, PInvokeCore.IDI_WARNING); 38public static Icon WinLogo => GetIcon(ref s_winlogo, PInvokeCore.IDI_WINLOGO); 43icon ??= new Icon(PInvokeCore.LoadIcon(HINSTANCE.Null, iconId));
System.Private.Windows.Core (483)
_generated\195\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (12)
173 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateDCW(pwszDriverLocal, pwszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 208 winmdroot.Graphics.Gdi.HBITMAP __result = PInvokeCore.CreateDIBSection(hdc, pbmi, usage, ppvBitsLocal, hSection, offset); 256 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateEnhMetaFile(hdc, lpFilenameLocal, lprc.HasValue ? &lprcLocal : null, lpDescLocal); 284 winmdroot.Graphics.Gdi.HFONT __result = PInvokeCore.CreateFontIndirect(lplfLocal); 313 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateICW(pszDriverLocal, pszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 399 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumEnhMetaFile(hdc, hmf, proc, param3, lpRect.HasValue ? &lpRectLocal : null); 458 uint __result = PInvokeCore.GetEnhMetaFileBits(hEMF, (uint )lpData.Length, lpDataLocal); 509 uint __result = PInvokeCore.GetPaletteEntries(hpal, iStart, (uint )pPalEntries.Length, pPalEntriesLocal); 561 winmdroot.Foundation.BOOL __result = PInvokeCore.GetViewportExtEx(hdc, lpsizeLocal); 585 winmdroot.Foundation.BOOL __result = PInvokeCore.GetViewportOrgEx(hdc, lppointLocal); 609 winmdroot.Foundation.BOOL __result = PInvokeCore.GetWindowOrgEx(hdc, lppointLocal); 633 winmdroot.Foundation.BOOL __result = PInvokeCore.GetWorldTransform(hdc, lpxfLocal);
_generated\196\Windows.Win32.PInvokeCore.gdiplus.dll.g.cs (1)
36 winmdroot.Graphics.GdiPlus.Status __result = PInvokeCore.GdiplusStartup(tokenLocal, inputLocal, outputLocal);
_generated\197\Windows.Win32.PInvokeCore.KERNEL32.dll.g.cs (2)
253 int __result = PInvokeCore.MultiByteToWideChar(CodePage, dwFlags, new winmdroot.Foundation.PCSTR (lpMultiByteStrLocal), cbMultiByte, lpWideCharStr, cchWideChar); 301 int __result = PInvokeCore.WideCharToMultiByte(CodePage, dwFlags, lpWideCharStrLocal, cchWideChar, lpMultiByteStr, cbMultiByte, new winmdroot.Foundation.PCSTR (lpDefaultCharLocal), lpUsedDefaultChar);
_generated\198\Windows.Win32.PInvokeCore.OLE32.dll.g.cs (5)
46 winmdroot.Foundation.HRESULT __result = PInvokeCore.CoCreateInstance(rclsidLocal, pUnkOuter, dwClsContext, riidLocal, ppvLocal); 79 winmdroot.Foundation.HRESULT __result = PInvokeCore.DoDragDrop(pDataObj, pDropSource, dwOKEffects, pdwEffectLocal); 146 winmdroot.Foundation.HRESULT __result = PInvokeCore.OleInitialize(default); 196 winmdroot.Foundation.HRESULT __result = PInvokeCore.PropVariantClear(pvarLocal); 236 PInvokeCore.ReleaseStgMedium(param0Local);
_generated\199\Windows.Win32.PInvokeCore.OLEAUT32.dll.g.cs (7)
39 winmdroot.Foundation.HRESULT __result = PInvokeCore.LoadRegTypeLib(rguidLocal, wVerMajor, wVerMinor, lcid, pptlib); 74 winmdroot.Foundation.HRESULT __result = PInvokeCore.OleCreatePictureIndirect(lpPictDescLocal, riidLocal, fOwn, lplpvObjLocal); 100 winmdroot.System.Com.SAFEARRAY* __result = PInvokeCore.SafeArrayCreate(vt, cDims, rgsaboundLocal); 121 winmdroot.System.Com.SAFEARRAY* __result = PInvokeCore.SafeArrayCreateEx(vt, cDims, rgsaboundLocal, pvExtra); 151 winmdroot.Foundation.HRESULT __result = PInvokeCore.SafeArrayGetElement(psa, rgIndicesLocal, pv); 186 winmdroot.Foundation.HRESULT __result = PInvokeCore.SafeArrayGetVartype(psa, pvtLocal); 223 winmdroot.Foundation.HRESULT __result = PInvokeCore.SafeArrayPutElement(psa, rgIndicesLocal, pv);
_generated\201\Windows.Win32.PInvokeCore.USER32.dll.g.cs (12)
32 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.BeginPaint(hWnd, lpPaintLocal); 233 winmdroot.Foundation.BOOL __result = PInvokeCore.EndPaint(hWnd, lpPaintLocal); 279 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumDisplayMonitors(hdc, lprcClip.HasValue ? &lprcClipLocal : null, lpfnEnum, dwData); 363 winmdroot.Foundation.BOOL __result = PInvokeCore.GetClientRect(hWnd, lpRectLocal); 506 winmdroot.Foundation.BOOL __result = PInvokeCore.GetIconInfo(hIcon, piconinfoLocal); 542 winmdroot.Foundation.BOOL __result = PInvokeCore.GetMonitorInfo(hMonitor, lpmiLocal); 609 winmdroot.Foundation.BOOL __result = PInvokeCore.GetWindowRect(hWnd, lpRectLocal); 749 winmdroot.UI.WindowsAndMessaging.HICON __result = PInvokeCore.LoadIcon(hInstance, lpIconNameLocal); 789 int __result = PInvokeCore.MapWindowPoints(hWndFrom, hWndTo, lpPointsLocal, (uint )lpPoints.Length); 831 winmdroot.Graphics.Gdi.HMONITOR __result = PInvokeCore.MonitorFromRect(lprcLocal, dwFlags); 866 winmdroot.Foundation.BOOL __result = PInvokeCore.PeekMessage(lpMsgLocal, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); 945 uint __result = PInvokeCore.RegisterClipboardFormat(lpszFormatLocal);
System\IO\StreamExtensions.cs (4)
33HGLOBAL freed = PInvokeCore.GlobalFree(hglobal); 48hglobal = PInvokeCore.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE, (uint)size); 54void* buffer = PInvokeCore.GlobalLock(hglobal); 68PInvokeCore.GlobalUnlock(hglobal);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (7)
83pmedium->hGlobal = PInvokeCore.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE | GLOBAL_ALLOC_FLAGS.GMEM_ZEROINIT, 1); 93PInvokeCore.GlobalFree(pmedium->hGlobal); 148PInvokeCore.GlobalFree(pmedium->hGlobal); 378int byteCount = PInvokeCore.WideCharToMultiByte(PInvokeCore.CP_ACP, 0, value, value.Length, null, 0, null, null); 386PInvokeCore.WideCharToMultiByte(PInvokeCore.CP_ACP, 0, value, value.Length, (PSTR)buffer.Pointer, byteCount, null, null);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (21)
152void* buffer = PInvokeCore.GlobalLock(hglobal); 160int size = checked((int)PInvokeCore.GlobalSize(hglobal)); 183PInvokeCore.GlobalUnlock(hglobal); 189void* buffer = PInvokeCore.GlobalLock(hglobal); 203int size = checked((int)PInvokeCore.GlobalSize(hglobal)); 237PInvokeCore.GlobalUnlock(hglobal); 243void* buffer = PInvokeCore.GlobalLock(hglobal); 251int size = checked((int)PInvokeCore.GlobalSize(hglobal)); 271PInvokeCore.GlobalUnlock(hglobal); 277void* buffer = PInvokeCore.GlobalLock(hglobal); 285int size = checked((int)PInvokeCore.GlobalSize(hglobal)); 305PInvokeCore.GlobalUnlock(hglobal); 311uint count = PInvokeCore.DragQueryFile(hdrop, iFile: 0xFFFFFFFF, lpszFile: null, cch: 0); 317Span<char> fileName = stackalloc char[(int)PInvokeCore.MAX_PATH + 1]; 324uint charactersCopied = PInvokeCore.DragQueryFile(hdrop, i, buffer, (uint)fileName.Length); 457PInvokeCore.ReleaseStgMedium(ref medium); 496hglobal = PInvokeCore.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE | GLOBAL_ALLOC_FLAGS.GMEM_ZEROINIT, (uint)sstg.cbSize); 505void* ptr = PInvokeCore.GlobalLock(hglobal); 507PInvokeCore.GlobalUnlock(hglobal); 515PInvokeCore.GlobalFree(hglobal); 518PInvokeCore.ReleaseStgMedium(ref medium);
System\Private\Windows\Ole\DataFormatNames.cs (3)
33internal const string InkSerializedFormat = PInvokeCore.INK_SERIALIZED_FORMAT; 34internal const string FileNameAnsi = PInvokeCore.CFSTR_FILENAMEA; 35internal const string FileNameUnicode = PInvokeCore.CFSTR_FILENAME;
System\Private\Windows\Ole\DataFormatsCore.cs (2)
45uint formatId = PInvokeCore.RegisterClipboardFormat(format); 105int length = PInvokeCore.GetClipboardFormatName(shortId, pBuffer, 256);
System\Private\Windows\Ole\DragDropFormat.cs (3)
68mediumDestination.hGlobal = (HGLOBAL)(nint)PInvokeCore.OleDuplicateData( 107PInvokeCore.ReleaseStgMedium(ref mediumDestination); 117PInvokeCore.ReleaseStgMedium(ref _medium);
System\Private\Windows\Ole\DragDropHelper.cs (23)
137if (dataObject.GetDataPresent(PInvokeCore.CFSTR_INDRAGLOOP) 138&& dataObject.GetData(PInvokeCore.CFSTR_INDRAGLOOP) is DragDropFormat dragDropFormat) 142void* basePtr = PInvokeCore.GlobalLock(dragDropFormat.Medium.hGlobal); 147PInvokeCore.GlobalUnlock(dragDropFormat.Medium.hGlobal); 169|| formatName.Equals(PInvokeCore.CFSTR_DROPDESCRIPTION) 170|| formatName.Equals(PInvokeCore.CFSTR_INDRAGLOOP) 200cfFormat = (ushort)(short)PInvokeCore.RegisterClipboardFormat(format), 211hGlobal = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(BOOL)) 219void* basePtr = PInvokeCore.GlobalLock(medium.hGlobal); 222PInvokeCore.GlobalFree(medium.hGlobal); 227PInvokeCore.GlobalUnlock(medium.hGlobal); 286crColorKey = (COLORREF)PInvokeCore.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW) 293PInvokeCore.DeleteObject(hbmpDragImage); 346if (message.Length >= (int)PInvokeCore.MAX_PATH) 351if (messageReplacementToken.Length >= (int)PInvokeCore.MAX_PATH) 358cfFormat = (ushort)(short)PInvokeCore.RegisterClipboardFormat(PInvokeCore.CFSTR_DROPDESCRIPTION), 369hGlobal = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(DROPDESCRIPTION)) 377void* basePtr = PInvokeCore.GlobalLock(medium.hGlobal); 380PInvokeCore.GlobalFree(medium.hGlobal); 388PInvokeCore.GlobalUnlock(medium.hGlobal); 414SetBooleanFormat(dataObject, PInvokeCore.CFSTR_INDRAGLOOP, inDragLoop); 459HRESULT hr = PInvokeCore.CoCreateInstance(
System\Private\Windows\Ole\IOleServices.cs (3)
99/// <inheritdoc cref="PInvokeCore.OleGetClipboard(IDataObject**)"/> 105/// <inheritdoc cref="PInvokeCore.OleSetClipboard(IDataObject*)"/> 111/// <inheritdoc cref="PInvokeCore.OleFlushClipboard"/>
Windows\Win32\Foundation\COLORREF.cs (1)
10/// Never convert native constants (such as <see cref="PInvokeCore.CLR_NONE"/> to <see cref="Color"/> or pass them through
Windows\Win32\Foundation\GlobalBuffer.cs (3)
25_hglobal = PInvokeCore.GlobalReAlloc( 36_pointer = PInvokeCore.GlobalLock(_hglobal); 56PInvokeCore.GlobalUnlock(_hglobal);
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (3)
9/// Helper to scope lifetime of an HDC retrieved via <see cref="PInvokeCore.BeginPaint(HWND, out PAINTSTRUCT)"/> 31HDC = PInvokeCore.BeginPaint(hwnd, out _paintStruct); 41PInvokeCore.EndPaint(HWND, _paintStruct);
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (6)
7/// Helper to scope lifetime of a <see cref="Gdi.HBITMAP"/> created via <see cref="PInvokeCore.CreateBitmap"/> 25/// Creates a bitmap using <see cref="PInvokeCore.CreateBitmap"/> 28HBITMAP = PInvokeCore.CreateBitmap(nWidth, nHeight, nPlanes, nBitCount, lpvBits); 32/// <see cref="PInvokeCore.CreateCompatibleBitmap(HDC, int, int)"/> 34public CreateBitmapScope(HDC hdc, int cx, int cy) => HBITMAP = PInvokeCore.CreateCompatibleBitmap(hdc, cx, cy); 46PInvokeCore.DeleteObject(HBITMAP);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (4)
27/// Creates a solid brush based on the <paramref name="color"/> using <see cref="PInvokeCore.CreateSolidBrush(COLORREF)"/>. 32? PInvokeCore.GetSysColorBrush(color) 33: PInvokeCore.CreateSolidBrush(color); 48PInvokeCore.DeleteObject(HBRUSH);
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (5)
25/// Creates a compatible HDC for <paramref name="hdc"/> using <see cref="PInvokeCore.CreateCompatibleDC(HDC)"/>. 34HDC = PInvokeCore.CreateCompatibleDC(hdc); 47? PInvokeCore.CreateICW(driver, device, null, lpInitData) 48: PInvokeCore.CreateDCW(driver, device, null, lpInitData); 63PInvokeCore.DeleteDC(HDC);
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (3)
27/// <see cref="PInvokeCore.CreatePen(PEN_STYLE, int, COLORREF)" />. 30HPEN = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, width, color); 41PInvokeCore.DeleteObject(HPEN);
Windows\Win32\Graphics\Gdi\GetDcScope.cs (7)
7/// Helper to scope lifetime of an <see cref="Gdi.HDC"/> retrieved via <see cref="PInvokeCore.GetDC(HWND)"/> and 8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 25HDC = PInvokeCore.GetDC(hwnd); 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 43HDC = PInvokeCore.GetDCEx(hwnd, hrgnClip, flags); 51/// <see cref="PInvokeCore.CreateDCW(PCWSTR, PCWSTR, PCWSTR, DEVMODEW*)" /> is the 66PInvokeCore.ReleaseDC(HWND, HDC);
Windows\Win32\Graphics\Gdi\HBITMAP.cs (3)
12PInvokeCore.DeleteObject(this); 29HBITMAP compatibleBitmap = PInvokeCore.CreateCompatibleBitmap(screenDC, width, height); 33PInvokeCore.BitBlt(
Windows\Win32\Graphics\Gdi\HDC.cs (3)
15PInvokeCore.GetViewportOrgEx(this, out Point point) ? point : Point.Empty; 18PInvokeCore.GetWindowOrgEx(this, out Point point) ? point : Point.Empty; 22if (PInvokeCore.GetWorldTransform(this, out XFORM matrix))
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
35PInvokeCore.DeleteDC(Handle);
Windows\Win32\Graphics\Gdi\HRGN.cs (2)
10uint regionDataSize = PInvokeCore.GetRegionData(this, 0, lpRgnData: null); 20if (PInvokeCore.GetRegionData(this, regionDataSize, (RGNDATA*)b) != regionDataSize)
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
32PInvokeCore.DeleteObject(HGDIOBJ);
Windows\Win32\Graphics\Gdi\RegionScope.cs (9)
26/// Creates a region with the given rectangle via <see cref="PInvokeCore.CreateRectRgn(int, int, int, int)"/>. 29Region = PInvokeCore.CreateRectRgn(rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 32/// Creates a region with the given rectangle via <see cref="PInvokeCore.CreateRectRgn(int, int, int, int)"/>. 35Region = PInvokeCore.CreateRectRgn(x1, y1, x2, y2); 38/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC, HRGN)"/> for the given device context. 43HRGN region = PInvokeCore.CreateRectRgn(0, 0, 0, 0); 44int result = PInvokeCore.GetClipRgn(hdc, region); 54PInvokeCore.DeleteObject(region); 88PInvokeCore.DeleteObject(Region);
Windows\Win32\Graphics\Gdi\SaveDcScope.cs (3)
29/// Saves the device context state using <see cref="PInvokeCore.SaveDC(HDC)"/>. 34_savedState = PInvokeCore.SaveDC(hdc); 42PInvokeCore.RestoreDC(HDC, _savedState);
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (3)
27/// <see cref="PInvokeCore.SelectObject(HDC, HGDIOBJ)"/>. 41PreviousObject = PInvokeCore.SelectObject(hdc, @object); 49PInvokeCore.SelectObject(_hdc, PreviousObject);
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (3)
27HPALETTE = PInvokeCore.SelectPalette(hdc, hpalette, forceBackground); 30PInvokeCore.RealizePalette(hdc); 40PInvokeCore.SelectPalette(HDC, HPALETTE, bForceBkgd: false);
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
23/// <see cref="PInvokeCore.SetBkColor(HDC, COLORREF)"/>. 27_previousColor = PInvokeCore.SetBkColor(hdc, color); 37PInvokeCore.SetBkColor(_hdc, _previousColor);
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (2)
30_previousMode = (BACKGROUND_MODE)PInvokeCore.SetBkMode(hdc, bkmode); 40PInvokeCore.SetBkMode(_hdc, _previousMode);
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (3)
27/// <see cref="PInvokeCore.SetMapMode(HDC, HDC_MAP_MODE)"/>. 31_previousMapMode = (HDC_MAP_MODE)PInvokeCore.SetMapMode(hdc, mapMode); 41PInvokeCore.SetMapMode(_hdc, _previousMapMode);
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (3)
26/// Selects <paramref name="rop2"/> into the given <paramref name="hdc"/> using <see cref="PInvokeCore.SetROP2(HDC, R2_MODE)"/>. 30_previousRop = (R2_MODE)PInvokeCore.SetROP2(hdc, rop2); 40PInvokeCore.SetROP2(_hdc, _previousRop);
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (3)
27/// using <see cref="PInvokeCore.SetTextAlign(HDC, TEXT_ALIGN_OPTIONS)"/>. 31_previousTa = (TEXT_ALIGN_OPTIONS)PInvokeCore.SetTextAlign(hdc, ta); 41PInvokeCore.SetTextAlign(_hdc, _previousTa);
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
27/// <see cref="PInvokeCore.SetTextColor(HDC, COLORREF)"/>. 31_previousColor = PInvokeCore.SetTextColor(hdc, color); 41PInvokeCore.SetTextColor(_hdc, _previousColor);
Windows\Win32\Graphics\GdiPlus\GdiPlusInitialization.cs (2)
22PInvokeCore.GdiplusStartup(&token, (GdiplusStartupInput*)&startup, null).ThrowIfFailed(); 31/// This should be called anywhere you make <see cref="PInvokeCore"/> calls to GDI+ where you don't
Windows\Win32\MessageId.cs (281)
22public const uint WM_REFLECT = PInvokeCore.WM_USER + 0x1C00; 23public const uint WM_REFLECT_NOTIFY = WM_REFLECT + PInvokeCore.WM_NOTIFY; 24public const uint WM_REFLECT_NOTIFYFORMAT = WM_REFLECT + PInvokeCore.WM_NOTIFYFORMAT; 25public const uint WM_REFLECT_COMMAND = WM_REFLECT + PInvokeCore.WM_COMMAND; 26public const uint WM_REFLECT_CHARTOITEM = WM_REFLECT + PInvokeCore.WM_CHARTOITEM; 27public const uint WM_REFLECT_VKEYTOITEM = WM_REFLECT + PInvokeCore.WM_VKEYTOITEM; 28public const uint WM_REFLECT_DRAWITEM = WM_REFLECT + PInvokeCore.WM_DRAWITEM; 29public const uint WM_REFLECT_MEASUREITEM = WM_REFLECT + PInvokeCore.WM_MEASUREITEM; 30public const uint WM_REFLECT_HSCROLL = WM_REFLECT + PInvokeCore.WM_HSCROLL; 31public const uint WM_REFLECT_VSCROLL = WM_REFLECT + PInvokeCore.WM_VSCROLL; 32public const uint WM_REFLECT_CTLCOLOR = WM_REFLECT + PInvokeCore.WM_CTLCOLOR; 33public const uint WM_REFLECT_CTLCOLORBTN = WM_REFLECT + PInvokeCore.WM_CTLCOLORBTN; 34public const uint WM_REFLECT_CTLCOLORDLG = WM_REFLECT + PInvokeCore.WM_CTLCOLORDLG; 35public const uint WM_REFLECT_CTLCOLORMSGBOX = WM_REFLECT + PInvokeCore.WM_CTLCOLORMSGBOX; 36public const uint WM_REFLECT_CTLCOLORSCROLLBAR = WM_REFLECT + PInvokeCore.WM_CTLCOLORSCROLLBAR; 37public const uint WM_REFLECT_CTLCOLOREDIT = WM_REFLECT + PInvokeCore.WM_CTLCOLOREDIT; 38public const uint WM_REFLECT_CTLCOLORLISTBOX = WM_REFLECT + PInvokeCore.WM_CTLCOLORLISTBOX; 39public const uint WM_REFLECT_CTLCOLORSTATIC = WM_REFLECT + PInvokeCore.WM_CTLCOLORSTATIC; 48PInvokeCore.WM_NULL => "WM_NULL", 49PInvokeCore.WM_CREATE => "WM_CREATE", 50PInvokeCore.WM_DESTROY => "WM_DESTROY", 51PInvokeCore.WM_MOVE => "WM_MOVE", 52PInvokeCore.WM_SIZE => "WM_SIZE", 53PInvokeCore.WM_ACTIVATE => "WM_ACTIVATE", 54PInvokeCore.WM_SETFOCUS => "WM_SETFOCUS", 55PInvokeCore.WM_KILLFOCUS => "WM_KILLFOCUS", 56PInvokeCore.WM_ENABLE => "WM_ENABLE", 57PInvokeCore.WM_SETREDRAW => "WM_SETREDRAW", 58PInvokeCore.WM_SETTEXT => "WM_SETTEXT", 59PInvokeCore.WM_GETTEXT => "WM_GETTEXT", 60PInvokeCore.WM_GETTEXTLENGTH => "WM_GETTEXTLENGTH", 61PInvokeCore.WM_PAINT => "WM_PAINT", 62PInvokeCore.WM_CLOSE => "WM_CLOSE", 63PInvokeCore.WM_QUERYENDSESSION => "WM_QUERYENDSESSION", 64PInvokeCore.WM_QUIT => "WM_QUIT", 65PInvokeCore.WM_QUERYOPEN => "WM_QUERYOPEN", 66PInvokeCore.WM_ERASEBKGND => "WM_ERASEBKGND", 67PInvokeCore.WM_SYSCOLORCHANGE => "WM_SYSCOLORCHANGE", 68PInvokeCore.WM_ENDSESSION => "WM_ENDSESSION", 69PInvokeCore.WM_SHOWWINDOW => "WM_SHOWWINDOW", 70PInvokeCore.WM_WININICHANGE => "WM_WININICHANGE", 71PInvokeCore.WM_DEVMODECHANGE => "WM_DEVMODECHANGE", 72PInvokeCore.WM_ACTIVATEAPP => "WM_ACTIVATEAPP", 73PInvokeCore.WM_FONTCHANGE => "WM_FONTCHANGE", 74PInvokeCore.WM_TIMECHANGE => "WM_TIMECHANGE", 75PInvokeCore.WM_CANCELMODE => "WM_CANCELMODE", 76PInvokeCore.WM_SETCURSOR => "WM_SETCURSOR", 77PInvokeCore.WM_MOUSEACTIVATE => "WM_MOUSEACTIVATE", 78PInvokeCore.WM_CHILDACTIVATE => "WM_CHILDACTIVATE", 79PInvokeCore.WM_QUEUESYNC => "WM_QUEUESYNC", 80PInvokeCore.WM_GETMINMAXINFO => "WM_GETMINMAXINFO", 81PInvokeCore.WM_PAINTICON => "WM_PAINTICON", 82PInvokeCore.WM_ICONERASEBKGND => "WM_ICONERASEBKGND", 83PInvokeCore.WM_NEXTDLGCTL => "WM_NEXTDLGCTL", 84PInvokeCore.WM_SPOOLERSTATUS => "WM_SPOOLERSTATUS", 85PInvokeCore.WM_DRAWITEM => "WM_DRAWITEM", 86PInvokeCore.WM_MEASUREITEM => "WM_MEASUREITEM", 87PInvokeCore.WM_DELETEITEM => "WM_DELETEITEM", 88PInvokeCore.WM_VKEYTOITEM => "WM_VKEYTOITEM", 89PInvokeCore.WM_CHARTOITEM => "WM_CHARTOITEM", 90PInvokeCore.WM_SETFONT => "WM_SETFONT", 91PInvokeCore.WM_GETFONT => "WM_GETFONT", 92PInvokeCore.WM_SETHOTKEY => "WM_SETHOTKEY", 93PInvokeCore.WM_GETHOTKEY => "WM_GETHOTKEY", 94PInvokeCore.WM_QUERYDRAGICON => "WM_QUERYDRAGICON", 95PInvokeCore.WM_COMPAREITEM => "WM_COMPAREITEM", 96PInvokeCore.WM_GETOBJECT => "WM_GETOBJECT", 97PInvokeCore.WM_COMPACTING => "WM_COMPACTING", 98PInvokeCore.WM_COMMNOTIFY => "WM_COMMNOTIFY", 99PInvokeCore.WM_WINDOWPOSCHANGING => "WM_WINDOWPOSCHANGING", 100PInvokeCore.WM_WINDOWPOSCHANGED => "WM_WINDOWPOSCHANGED", 101PInvokeCore.WM_POWER => "WM_POWER", 102PInvokeCore.WM_COPYDATA => "WM_COPYDATA", 103PInvokeCore.WM_CANCELJOURNAL => "WM_CANCELJOURNAL", 104PInvokeCore.WM_NOTIFY => "WM_NOTIFY", 105PInvokeCore.WM_INPUTLANGCHANGEREQUEST => "WM_INPUTLANGCHANGEREQUEST", 106PInvokeCore.WM_INPUTLANGCHANGE => "WM_INPUTLANGCHANGE", 107PInvokeCore.WM_TCARD => "WM_TCARD", 108PInvokeCore.WM_HELP => "WM_HELP", 109PInvokeCore.WM_USERCHANGED => "WM_USERCHANGED", 110PInvokeCore.WM_NOTIFYFORMAT => "WM_NOTIFYFORMAT", 111PInvokeCore.WM_CONTEXTMENU => "WM_CONTEXTMENU", 112PInvokeCore.WM_STYLECHANGING => "WM_STYLECHANGING", 113PInvokeCore.WM_STYLECHANGED => "WM_STYLECHANGED", 114PInvokeCore.WM_DISPLAYCHANGE => "WM_DISPLAYCHANGE", 115PInvokeCore.WM_GETICON => "WM_GETICON", 116PInvokeCore.WM_SETICON => "WM_SETICON", 117PInvokeCore.WM_NCCREATE => "WM_NCCREATE", 118PInvokeCore.WM_NCDESTROY => "WM_NCDESTROY", 119PInvokeCore.WM_NCCALCSIZE => "WM_NCCALCSIZE", 120PInvokeCore.WM_NCHITTEST => "WM_NCHITTEST", 121PInvokeCore.WM_NCPAINT => "WM_NCPAINT", 122PInvokeCore.WM_NCACTIVATE => "WM_NCACTIVATE", 123PInvokeCore.WM_GETDLGCODE => "WM_GETDLGCODE", 124PInvokeCore.WM_NCMOUSEMOVE => "WM_NCMOUSEMOVE", 125PInvokeCore.WM_NCLBUTTONDOWN => "WM_NCLBUTTONDOWN", 126PInvokeCore.WM_NCLBUTTONUP => "WM_NCLBUTTONUP", 127PInvokeCore.WM_NCLBUTTONDBLCLK => "WM_NCLBUTTONDBLCLK", 128PInvokeCore.WM_NCRBUTTONDOWN => "WM_NCRBUTTONDOWN", 129PInvokeCore.WM_NCRBUTTONUP => "WM_NCRBUTTONUP", 130PInvokeCore.WM_NCRBUTTONDBLCLK => "WM_NCRBUTTONDBLCLK", 131PInvokeCore.WM_NCMBUTTONDOWN => "WM_NCMBUTTONDOWN", 132PInvokeCore.WM_NCMBUTTONUP => "WM_NCMBUTTONUP", 133PInvokeCore.WM_NCMBUTTONDBLCLK => "WM_NCMBUTTONDBLCLK", 134PInvokeCore.WM_KEYDOWN => "WM_KEYDOWN", 135PInvokeCore.WM_KEYUP => "WM_KEYUP", 136PInvokeCore.WM_CHAR => "WM_CHAR", 137PInvokeCore.WM_DEADCHAR => "WM_DEADCHAR", 138PInvokeCore.WM_SYSKEYDOWN => "WM_SYSKEYDOWN", 139PInvokeCore.WM_SYSKEYUP => "WM_SYSKEYUP", 140PInvokeCore.WM_SYSCHAR => "WM_SYSCHAR", 141PInvokeCore.WM_SYSDEADCHAR => "WM_SYSDEADCHAR", 142PInvokeCore.WM_KEYLAST => "WM_KEYLAST", 143PInvokeCore.WM_IME_STARTCOMPOSITION => "WM_IME_STARTCOMPOSITION", 144PInvokeCore.WM_IME_ENDCOMPOSITION => "WM_IME_ENDCOMPOSITION", 145PInvokeCore.WM_IME_COMPOSITION => "WM_IME_COMPOSITION", 146PInvokeCore.WM_INITDIALOG => "WM_INITDIALOG", 147PInvokeCore.WM_COMMAND => "WM_COMMAND", 148PInvokeCore.WM_SYSCOMMAND => "WM_SYSCOMMAND", 149PInvokeCore.WM_TIMER => "WM_TIMER", 150PInvokeCore.WM_HSCROLL => "WM_HSCROLL", 151PInvokeCore.WM_VSCROLL => "WM_VSCROLL", 152PInvokeCore.WM_INITMENU => "WM_INITMENU", 153PInvokeCore.WM_INITMENUPOPUP => "WM_INITMENUPOPUP", 154PInvokeCore.WM_MENUSELECT => "WM_MENUSELECT", 155PInvokeCore.WM_MENUCHAR => "WM_MENUCHAR", 156PInvokeCore.WM_ENTERIDLE => "WM_ENTERIDLE", 157PInvokeCore.WM_CTLCOLORMSGBOX => "WM_CTLCOLORMSGBOX", 158PInvokeCore.WM_CTLCOLOREDIT => "WM_CTLCOLOREDIT", 159PInvokeCore.WM_CTLCOLORLISTBOX => "WM_CTLCOLORLISTBOX", 160PInvokeCore.WM_CTLCOLORBTN => "WM_CTLCOLORBTN", 161PInvokeCore.WM_CTLCOLORDLG => "WM_CTLCOLORDLG", 162PInvokeCore.WM_CTLCOLORSCROLLBAR => "WM_CTLCOLORSCROLLBAR", 163PInvokeCore.WM_CTLCOLORSTATIC => "WM_CTLCOLORSTATIC", 164PInvokeCore.WM_MOUSEMOVE => "WM_MOUSEMOVE", 165PInvokeCore.WM_LBUTTONDOWN => "WM_LBUTTONDOWN", 166PInvokeCore.WM_LBUTTONUP => "WM_LBUTTONUP", 167PInvokeCore.WM_LBUTTONDBLCLK => "WM_LBUTTONDBLCLK", 168PInvokeCore.WM_RBUTTONDOWN => "WM_RBUTTONDOWN", 169PInvokeCore.WM_RBUTTONUP => "WM_RBUTTONUP", 170PInvokeCore.WM_RBUTTONDBLCLK => "WM_RBUTTONDBLCLK", 171PInvokeCore.WM_MBUTTONDOWN => "WM_MBUTTONDOWN", 172PInvokeCore.WM_MBUTTONUP => "WM_MBUTTONUP", 173PInvokeCore.WM_MBUTTONDBLCLK => "WM_MBUTTONDBLCLK", 174PInvokeCore.WM_MOUSEWHEEL => "WM_MOUSEWHEEL", 175PInvokeCore.WM_PARENTNOTIFY => "WM_PARENTNOTIFY", 176PInvokeCore.WM_ENTERMENULOOP => "WM_ENTERMENULOOP", 177PInvokeCore.WM_EXITMENULOOP => "WM_EXITMENULOOP", 178PInvokeCore.WM_NEXTMENU => "WM_NEXTMENU", 179PInvokeCore.WM_SIZING => "WM_SIZING", 180PInvokeCore.WM_CAPTURECHANGED => "WM_CAPTURECHANGED", 181PInvokeCore.WM_MOVING => "WM_MOVING", 182PInvokeCore.WM_POWERBROADCAST => "WM_POWERBROADCAST", 183PInvokeCore.WM_DEVICECHANGE => "WM_DEVICECHANGE", 184PInvokeCore.WM_IME_SETCONTEXT => "WM_IME_SETCONTEXT", 185PInvokeCore.WM_IME_NOTIFY => "WM_IME_NOTIFY", 186PInvokeCore.WM_IME_CONTROL => "WM_IME_CONTROL", 187PInvokeCore.WM_IME_COMPOSITIONFULL => "WM_IME_COMPOSITIONFULL", 188PInvokeCore.WM_IME_SELECT => "WM_IME_SELECT", 189PInvokeCore.WM_IME_CHAR => "WM_IME_CHAR", 190PInvokeCore.WM_IME_KEYDOWN => "WM_IME_KEYDOWN", 191PInvokeCore.WM_IME_KEYUP => "WM_IME_KEYUP", 192PInvokeCore.WM_MDICREATE => "WM_MDICREATE", 193PInvokeCore.WM_MDIDESTROY => "WM_MDIDESTROY", 194PInvokeCore.WM_MDIACTIVATE => "WM_MDIACTIVATE", 195PInvokeCore.WM_MDIRESTORE => "WM_MDIRESTORE", 196PInvokeCore.WM_MDINEXT => "WM_MDINEXT", 197PInvokeCore.WM_MDIMAXIMIZE => "WM_MDIMAXIMIZE", 198PInvokeCore.WM_MDITILE => "WM_MDITILE", 199PInvokeCore.WM_MDICASCADE => "WM_MDICASCADE", 200PInvokeCore.WM_MDIICONARRANGE => "WM_MDIICONARRANGE", 201PInvokeCore.WM_MDIGETACTIVE => "WM_MDIGETACTIVE", 202PInvokeCore.WM_MDISETMENU => "WM_MDISETMENU", 203PInvokeCore.WM_ENTERSIZEMOVE => "WM_ENTERSIZEMOVE", 204PInvokeCore.WM_EXITSIZEMOVE => "WM_EXITSIZEMOVE", 205PInvokeCore.WM_DROPFILES => "WM_DROPFILES", 206PInvokeCore.WM_MDIREFRESHMENU => "WM_MDIREFRESHMENU", 207PInvokeCore.WM_MOUSEHOVER => "WM_MOUSEHOVER", 208PInvokeCore.WM_MOUSELEAVE => "WM_MOUSELEAVE", 209PInvokeCore.WM_CUT => "WM_CUT", 210PInvokeCore.WM_COPY => "WM_COPY", 211PInvokeCore.WM_PASTE => "WM_PASTE", 212PInvokeCore.WM_CLEAR => "WM_CLEAR", 213PInvokeCore.WM_UNDO => "WM_UNDO", 214PInvokeCore.WM_RENDERFORMAT => "WM_RENDERFORMAT", 215PInvokeCore.WM_RENDERALLFORMATS => "WM_RENDERALLFORMATS", 216PInvokeCore.WM_DESTROYCLIPBOARD => "WM_DESTROYCLIPBOARD", 217PInvokeCore.WM_DRAWCLIPBOARD => "WM_DRAWCLIPBOARD", 218PInvokeCore.WM_PAINTCLIPBOARD => "WM_PAINTCLIPBOARD", 219PInvokeCore.WM_VSCROLLCLIPBOARD => "WM_VSCROLLCLIPBOARD", 220PInvokeCore.WM_SIZECLIPBOARD => "WM_SIZECLIPBOARD", 221PInvokeCore.WM_ASKCBFORMATNAME => "WM_ASKCBFORMATNAME", 222PInvokeCore.WM_CHANGECBCHAIN => "WM_CHANGECBCHAIN", 223PInvokeCore.WM_HSCROLLCLIPBOARD => "WM_HSCROLLCLIPBOARD", 224PInvokeCore.WM_QUERYNEWPALETTE => "WM_QUERYNEWPALETTE", 225PInvokeCore.WM_PALETTEISCHANGING => "WM_PALETTEISCHANGING", 226PInvokeCore.WM_PALETTECHANGED => "WM_PALETTECHANGED", 227PInvokeCore.WM_HOTKEY => "WM_HOTKEY", 228PInvokeCore.WM_PRINT => "WM_PRINT", 229PInvokeCore.WM_PRINTCLIENT => "WM_PRINTCLIENT", 230PInvokeCore.WM_HANDHELDFIRST => "WM_HANDHELDFIRST", 231PInvokeCore.WM_HANDHELDLAST => "WM_HANDHELDLAST", 232PInvokeCore.WM_AFXFIRST => "WM_AFXFIRST", 233PInvokeCore.WM_AFXLAST => "WM_AFXLAST", 234PInvokeCore.WM_PENWINFIRST => "WM_PENWINFIRST", 235PInvokeCore.WM_PENWINLAST => "WM_PENWINLAST", 236PInvokeCore.WM_APP => "WM_APP", 237PInvokeCore.WM_USER => "WM_USER", 238PInvokeCore.WM_CTLCOLOR => "WM_CTLCOLOR", 241PInvokeCore.EM_GETLIMITTEXT => "EM_GETLIMITTEXT", 242PInvokeCore.EM_POSFROMCHAR => "EM_POSFROMCHAR", 243PInvokeCore.EM_CHARFROMPOS => "EM_CHARFROMPOS", 244PInvokeCore.EM_SCROLLCARET => "EM_SCROLLCARET", 245PInvokeCore.EM_CANPASTE => "EM_CANPASTE", 246PInvokeCore.EM_DISPLAYBAND => "EM_DISPLAYBAND", 247PInvokeCore.EM_EXGETSEL => "EM_EXGETSEL", 248PInvokeCore.EM_EXLIMITTEXT => "EM_EXLIMITTEXT", 249PInvokeCore.EM_EXLINEFROMCHAR => "EM_EXLINEFROMCHAR", 250PInvokeCore.EM_EXSETSEL => "EM_EXSETSEL", 251PInvokeCore.EM_FINDTEXT => "EM_FINDTEXT", 252PInvokeCore.EM_FORMATRANGE => "EM_FORMATRANGE", 253PInvokeCore.EM_GETCHARFORMAT => "EM_GETCHARFORMAT", 254PInvokeCore.EM_GETEVENTMASK => "EM_GETEVENTMASK", 255PInvokeCore.EM_GETOLEINTERFACE => "EM_GETOLEINTERFACE", 256PInvokeCore.EM_GETPARAFORMAT => "EM_GETPARAFORMAT", 257PInvokeCore.EM_GETSELTEXT => "EM_GETSELTEXT", 258PInvokeCore.EM_HIDESELECTION => "EM_HIDESELECTION", 259PInvokeCore.EM_PASTESPECIAL => "EM_PASTESPECIAL", 260PInvokeCore.EM_REQUESTRESIZE => "EM_REQUESTRESIZE", 261PInvokeCore.EM_SELECTIONTYPE => "EM_SELECTIONTYPE", 262PInvokeCore.EM_SETBKGNDCOLOR => "EM_SETBKGNDCOLOR", 263PInvokeCore.EM_SETCHARFORMAT => "EM_SETCHARFORMAT", 264PInvokeCore.EM_SETEVENTMASK => "EM_SETEVENTMASK", 265PInvokeCore.EM_SETOLECALLBACK => "EM_SETOLECALLBACK", 266PInvokeCore.EM_SETPARAFORMAT => "EM_SETPARAFORMAT", 267PInvokeCore.EM_SETTARGETDEVICE => "EM_SETTARGETDEVICE", 268PInvokeCore.EM_STREAMIN => "EM_STREAMIN", 269PInvokeCore.EM_STREAMOUT => "EM_STREAMOUT", 270PInvokeCore.EM_GETTEXTRANGE => "EM_GETTEXTRANGE", 271PInvokeCore.EM_FINDWORDBREAK => "EM_FINDWORDBREAK", 272PInvokeCore.EM_SETOPTIONS => "EM_SETOPTIONS", 273PInvokeCore.EM_GETOPTIONS => "EM_GETOPTIONS", 274PInvokeCore.EM_FINDTEXTEX => "EM_FINDTEXTEX", 275PInvokeCore.EM_GETWORDBREAKPROCEX => "EM_GETWORDBREAKPROCEX", 276PInvokeCore.EM_SETWORDBREAKPROCEX => "EM_SETWORDBREAKPROCEX", 279PInvokeCore.EM_SETUNDOLIMIT => "EM_SETUNDOLIMIT", 280PInvokeCore.EM_REDO => "EM_REDO", 281PInvokeCore.EM_CANREDO => "EM_CANREDO", 282PInvokeCore.EM_GETUNDONAME => "EM_GETUNDONAME", 283PInvokeCore.EM_GETREDONAME => "EM_GETREDONAME", 284PInvokeCore.EM_STOPGROUPTYPING => "EM_STOPGROUPTYPING", 285PInvokeCore.EM_SETTEXTMODE => "EM_SETTEXTMODE", 286PInvokeCore.EM_GETTEXTMODE => "EM_GETTEXTMODE", 287PInvokeCore.EM_AUTOURLDETECT => "EM_AUTOURLDETECT", 288PInvokeCore.EM_GETAUTOURLDETECT => "EM_GETAUTOURLDETECT", 289PInvokeCore.EM_SETPALETTE => "EM_SETPALETTE", 290PInvokeCore.EM_GETTEXTEX => "EM_GETTEXTEX", 291PInvokeCore.EM_GETTEXTLENGTHEX => "EM_GETTEXTLENGTHEX", 294PInvokeCore.EM_SETPUNCTUATION => "EM_SETPUNCTUATION", 295PInvokeCore.EM_GETPUNCTUATION => "EM_GETPUNCTUATION", 296PInvokeCore.EM_SETWORDWRAPMODE => "EM_SETWORDWRAPMODE", 297PInvokeCore.EM_GETWORDWRAPMODE => "EM_GETWORDWRAPMODE", 298PInvokeCore.EM_SETIMECOLOR => "EM_SETIMECOLOR", 299PInvokeCore.EM_GETIMECOLOR => "EM_GETIMECOLOR", 300PInvokeCore.EM_SETIMEOPTIONS => "EM_SETIMEOPTIONS", 301PInvokeCore.EM_GETIMEOPTIONS => "EM_GETIMEOPTIONS", 302PInvokeCore.EM_CONVPOSITION => "EM_CONVPOSITION", 303PInvokeCore.EM_SETLANGOPTIONS => "EM_SETLANGOPTIONS", 304PInvokeCore.EM_GETLANGOPTIONS => "EM_GETLANGOPTIONS", 305PInvokeCore.EM_GETIMECOMPMODE => "EM_GETIMECOMPMODE", 306PInvokeCore.EM_FINDTEXTW => "EM_FINDTEXTW", 307PInvokeCore.EM_FINDTEXTEXW => "EM_FINDTEXTEXW", 310PInvokeCore.EM_RECONVERSION => "EM_RECONVERSION", 311PInvokeCore.EM_SETIMEMODEBIAS => "EM_SETIMEMODEBIAS", 312PInvokeCore.EM_GETIMEMODEBIAS => "EM_GETIMEMODEBIAS", 315PInvokeCore.EM_SETBIDIOPTIONS => "EM_SETBIDIOPTIONS", 316PInvokeCore.EM_GETBIDIOPTIONS => "EM_GETBIDIOPTIONS", 317PInvokeCore.EM_SETTYPOGRAPHYOPTIONS => "EM_SETTYPOGRAPHYOPTIONS", 318PInvokeCore.EM_GETTYPOGRAPHYOPTIONS => "EM_GETTYPOGRAPHYOPTIONS", 321PInvokeCore.EM_SETEDITSTYLE => "EM_SETEDITSTYLE", 322PInvokeCore.EM_GETEDITSTYLE => "EM_GETEDITSTYLE",
Windows\Win32\System\Com\ComHelpers.cs (1)
356HRESULT hr = PInvokeCore.LoadRegTypeLib(typeLibrary, majorVersion, minorVersion, 0, typelib);
Windows\Win32\System\Com\GlobalInterfaceTable.cs (1)
21PInvokeCore.CoCreateInstance(
Windows\Win32\System\Com\IDispatch.cs (3)
96int putDispatchID = PInvokeCore.DISPID_PROPERTYPUT; 113PInvokeCore.GetThreadLocale(), 141HRESULT result = GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1u, PInvokeCore.GetThreadLocale(), &id);
Windows\Win32\System\Com\SAFEARRAY.cs (2)
34return PInvokeCore.SafeArrayCreate(arrayType, 1, &saBound); 64PInvokeCore.SafeArrayGetVartype(pThis, &vt).ThrowOnFailure();
Windows\Win32\System\Com\SafeArrayScope.cs (5)
10/// <see cref="PInvokeCore.SafeArrayCreate(VARENUM, uint, SAFEARRAYBOUND*)"/> 126_value = (nint)PInvokeCore.SafeArrayCreate(vt, 1, &saBound); 213PInvokeCore.SafeArrayGetElement(Value, pIndices, &result).ThrowOnFailure(); 224PInvokeCore.SafeArrayPutElement((SAFEARRAY*)_value, pIndices, value).ThrowOnFailure(); 245PInvokeCore.SafeArrayDestroy(safeArray).ThrowOnFailure();
Windows\Win32\System\Variant\VARIANT.cs (3)
65PInvokeCore.PropVariantClear((PROPVARIANT*)t); 282HRESULT hr = PInvokeCore.SafeArrayLock(psa); 440hr = PInvokeCore.SafeArrayUnlock(psa);
Windows\Win32\UI\Controls\Dialogs\PRINTPAGERANGE.cs (1)
8/// supplied in the <see cref="PRINTDLGEXW"/> structure when calling the <see cref="PInvokeCore.PrintDlgEx"/> function.
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (2)
12PInvokeCore.DeleteObject((HGDIOBJ)hbmMask.Value); 18PInvokeCore.DeleteObject((HGDIOBJ)hbmColor.Value);
System.Private.Windows.GdiPlus (22)
System\Drawing\CoreImageExtensions.cs (3)
21if (format == PInvokeCore.ImageFormatGIF && image.Data is { } rawData && rawData.Length > 0) 40if (format == PInvokeCore.ImageFormatJPEG || encoder == Guid.Empty) 42format = PInvokeCore.ImageFormatPNG;
System\Drawing\IIconExtensions.cs (2)
21(HICON)PInvokeCore.CopyImage( 44PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (4)
40/// the viewport origin are applied (<see cref="PInvokeCore.GetViewportExtEx(HDC, SIZE*)"/>). The clipping 143_savedHdcState = saveHdcState ? PInvokeCore.SaveDC(HDC) : 0; 169OBJ_TYPE type = (OBJ_TYPE)PInvokeCore.GetObjectType(HDC); 189PInvokeCore.RestoreDC(HDC, _savedHdcState);
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
22if (PInvokeCore.GetDeviceCaps(hdc.Handle, GET_DEVICE_CAPS_INDEX.BITSPIXEL) > 8)
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
55PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPictureDisp>(), fOwn: true, picture).ThrowOnFailure(); 70PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
Windows\Win32\Graphics\GdiPlus\PixelFormat.cs (8)
12Indexed = (int)PInvokeCore.PixelFormatIndexed, 17Gdi = (int)PInvokeCore.PixelFormatGDI, 22Alpha = (int)PInvokeCore.PixelFormatAlpha, 27PAlpha = (int)PInvokeCore.PixelFormatPAlpha, 32Extended = (int)PInvokeCore.PixelFormatExtended, 34Canonical = (int)PInvokeCore.PixelFormatCanonical, 39Undefined = (int)PInvokeCore.PixelFormatUndefined, 44DontCare = (int)PInvokeCore.PixelFormatDontCare,
Windows\Win32\System\Ole\IPicture.cs (2)
23PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure(); 38PInvokeCore.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
System.Windows.Forms (1984)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
69? PInvokeCore.GetWindowText(target)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (3)
54PInvokeCore.GetCurrentThreadId(), 63PInvokeCore.GetCurrentThreadId(), 186case PInvokeCore.WM_GETOBJECT:
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (18)
64public override string Text => PInvokeCore.GetWindowText(_owningChildEdit); 66public override int TextLength => (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.WM_GETTEXTLENGTH); 89PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETSEL, ref start, ref end); 163PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETSEL, ref start, ref end); 228PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref pt); 272if (PInvokeCore.MapWindowPoints(HWND.Null, _owningChildEdit.Handle, ref clientLocation) == 0) 308PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref r); 326PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end); 331int index = PARAM.LOWORD(PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt))); 355PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETRECT, 0, ref rectangle); 367int i = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
305*pid = PInvokeCore.DISPID_UNKNOWN; 329*pid = PInvokeCore.DISPID_UNKNOWN;
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
92: PInvokeCore.DISPID_UNKNOWN;
System\Windows\Forms\ActiveX\AxHost.cs (62)
787AmbientChanged(PInvokeCore.DISPID_AMBIENT_FONT); 793AmbientChanged(PInvokeCore.DISPID_AMBIENT_FORECOLOR); 799AmbientChanged(PInvokeCore.DISPID_AMBIENT_BACKCOLOR); 839oleCtl.OnAmbientPropertyChange(PInvokeCore.DISPID_AMBIENT_DISPLAYNAME); 1064s_logPixelsX = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 1065s_logPixelsY = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 1247IntPtr currentWndproc = PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 1253if ((int)PInvokeCore.SendMessage(this, _subclassCheckMessage) == REGMSG_RETVAL) 1262PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, currentWndproc); 1758message = PInvokeCore.WM_SYSKEYDOWN, 2079case PInvokeCore.DISPID_AMBIENT_USERMODE: 2081case PInvokeCore.DISPID_AMBIENT_AUTOCLIP: 2083case PInvokeCore.DISPID_AMBIENT_MESSAGEREFLECT: 2085case PInvokeCore.DISPID_AMBIENT_UIDEAD: 2087case PInvokeCore.DISPID_AMBIENT_DISPLAYASDEFAULT: 2089case PInvokeCore.DISPID_AMBIENT_FONT: 2096case PInvokeCore.DISPID_AMBIENT_SHOWGRABHANDLES: 2098case PInvokeCore.DISPID_AMBIENT_SHOWHATCHING: 2100case PInvokeCore.DISPID_AMBIENT_BACKCOLOR: 2107case PInvokeCore.DISPID_AMBIENT_FORECOLOR: 2114case PInvokeCore.DISPID_AMBIENT_DISPLAYNAME: 2116case PInvokeCore.DISPID_AMBIENT_LOCALEID: 2117return PInvokeCore.GetThreadLocale(); 2118case PInvokeCore.DISPID_AMBIENT_RIGHTTOLEFT: 2257HRESULT hr = PInvokeCore.CoCreateInstance( 2366hr = categorizeProperties.Value->GetCategoryName(propcat, (int)PInvokeCore.GetThreadLocale(), &name); 2707Debug.Assert(dispid != PInvokeCore.DISPID_UNKNOWN, "Wrong dispid sent to GetPropertyDescriptorFromDispid"); 2974lcid = PInvokeCore.GetThreadLocale(), 3034PInvokeCore.GetThreadLocale(), 3042sink.OnChanged(PInvokeCore.DISPID_UNKNOWN); 3073case PInvokeCore.WM_ERASEBKGND: 3075case PInvokeCore.WM_SETCURSOR: 3076case PInvokeCore.WM_SYSCOLORCHANGE: 3080case PInvokeCore.WM_DRAWITEM: 3082case PInvokeCore.WM_LBUTTONDBLCLK: 3083case PInvokeCore.WM_LBUTTONUP: 3084case PInvokeCore.WM_MBUTTONDBLCLK: 3085case PInvokeCore.WM_MBUTTONUP: 3086case PInvokeCore.WM_RBUTTONDBLCLK: 3087case PInvokeCore.WM_RBUTTONUP: 3091case PInvokeCore.WM_LBUTTONDOWN: 3092case PInvokeCore.WM_MBUTTONDOWN: 3093case PInvokeCore.WM_RBUTTONDOWN: 3102case PInvokeCore.WM_KILLFOCUS: 3117case PInvokeCore.WM_COMMAND: 3125case PInvokeCore.WM_CONTEXTMENU: 3129case PInvokeCore.WM_DESTROY: 3154case PInvokeCore.WM_HELP: 3160case PInvokeCore.WM_KEYUP: 3184case PInvokeCore.WM_NCDESTROY: 3208void* wndProc = (void*)PInvokeCore.GetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 3209m.ResultInternal = PInvokeCore.CallWindowProc( 3232_wndprocAddr = PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 3321qaContainer.lcid = (int)PInvokeCore.GetThreadLocale(); 3765if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_BOLD)) 3770if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_ITALIC)) 3775if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_UNDER)) 3780if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_STRIKE)) 3785if ((short)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_WEIGHT) >= 700) 3790using BSTR name = (BSTR)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_NAME); 3794(float)(CY)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_SIZE), 3797(byte)(short)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_CHARSET));
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
485if (dispid != PInvokeCore.DISPID_UNKNOWN)
System\Windows\Forms\ActiveX\AxHost.State.cs (7)
140hglobal = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE, (uint)_length); 141void* pointer = PInvokeCore.GlobalLock(hglobal); 151PInvokeCore.GlobalUnlock(hglobal); 158PInvokeCore.GlobalFree(hglobal); 181PInvokeCore.GlobalFree(hglobal); 278void* pointer = PInvokeCore.GlobalLock(hglobal); 288PInvokeCore.GlobalUnlock(hglobal);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (35)
163new("Font", PInvokeCore.DISPID_AMBIENT_FONT), 164new("BackColor", PInvokeCore.DISPID_AMBIENT_BACKCOLOR), 165new("ForeColor", PInvokeCore.DISPID_AMBIENT_FORECOLOR) 179AmbientProperty property = LookupAmbient(PInvokeCore.DISPID_AMBIENT_BACKCOLOR); 183using VARIANT value = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_BACKCOLOR); 204AmbientProperty property = LookupAmbient(PInvokeCore.DISPID_AMBIENT_FONT); 208using VARIANT value = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_FONT); 240AmbientProperty property = LookupAmbient(PInvokeCore.DISPID_AMBIENT_FORECOLOR); 244using VARIANT value = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_FORECOLOR); 283s_logPixels.X = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 284s_logPixels.Y = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 363PInvokeCore.MapWindowPoints(hwndMap, _control, ref pt); 377if (lpmsg->message == PInvokeCore.WM_KEYDOWN && lpmsg->wParam == (WPARAM)(nuint)VIRTUAL_KEY.VK_TAB) 383PInvokeCore.SendMessage(target, lpmsg->message, lpmsg->wParam, lpmsg->lParam); 434OBJ_TYPE hdcType = (OBJ_TYPE)PInvokeCore.GetObjectType(hdcDraw); 463iMode = (HDC_MAP_MODE)PInvokeCore.SetMapMode(hdcDraw, HDC_MAP_MODE.MM_ANISOTROPIC); 476PInvokeCore.SendMessage(_control, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags); 492PInvokeCore.SetMapMode(hdcDraw, iMode); 1258if (dispID == PInvokeCore.DISPID_UNKNOWN) 1285case PInvokeCore.DISPID_AMBIENT_UIDEAD: 1286using (VARIANT value = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_UIDEAD)) 1296case PInvokeCore.DISPID_AMBIENT_DISPLAYASDEFAULT: 1299using VARIANT value = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_DISPLAYASDEFAULT); 1363AmbientProperty prop = LookupAmbient(PInvokeCore.DISPID_AMBIENT_BACKCOLOR); 1366prop = LookupAmbient(PInvokeCore.DISPID_AMBIENT_FORECOLOR); 1372prop = LookupAmbient(PInvokeCore.DISPID_AMBIENT_FONT); 1652using VARIANT property = GetAmbientProperty(PInvokeCore.DISPID_AMBIENT_UIDEAD); 1812PInvokeCore.MapWindowPoints(hWndParent, _control, ref rcIntersect); 1850case PInvokeCore.WM_KEYDOWN: 1851case PInvokeCore.WM_SYSKEYDOWN: 1852case PInvokeCore.WM_CHAR: 1853case PInvokeCore.WM_SYSCHAR: 2112if (m.Msg is >= ((int)PInvokeCore.WM_NCLBUTTONDOWN) and <= ((int)PInvokeCore.WM_NCMBUTTONDBLCLK))
System\Windows\Forms\Application.ComponentManager.cs (4)
201return PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE); 231if (PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 241if (msg.message == PInvokeCore.WM_QUIT) 309if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
309else if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 428PInvokeCore.GetWindowThreadProcessId(PInvoke.GetActiveWindow(), out uint pid); 454if (!PInvokeCore.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.cs (8)
368bool success = PInvoke.SendMessageCallback(hwnd, PInvokeCore.WM_SYSCOLORCHANGE + MessageId.WM_REFLECT, () => complete = true); 725PInvokeCore.EnumWindows(SendThemeChanged); 736PInvokeCore.GetWindowThreadProcessId(hwnd, &processId); 761PInvokeCore.EnumChildWindows(handle, SendThemeChangedRecursive); 764PInvokeCore.SendMessage(handle, PInvokeCore.WM_THEMECHANGED); 1169ThreadContext? threadContext = ThreadContext.FromId(PInvokeCore.GetWindowThreadProcessId(handle.Handle, null)); 1234((WINDOW_STYLE)PInvokeCore.GetWindowLong(handle.Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
System\Windows\Forms\Application.LightThreadContext.cs (4)
64if (!PInvokeCore.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 83if (PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 93if (msg.message == PInvokeCore.WM_QUIT) 134if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
30HWND parentHandle = (HWND)PInvokeCore.GetWindowLong(MainForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Application.ParkingWindow.cs (7)
19private const int WM_CHECKDESTROY = (int)PInvokeCore.WM_USER + 0x01; 73uint id = PInvokeCore.GetWindowThreadProcessId(HWNDInternal, out _); 79PInvokeCore.PostMessage(HWNDInternal, WM_CHECKDESTROY); 141if (m.MsgInternal == PInvokeCore.WM_SHOWWINDOW) 147case PInvokeCore.WM_PARENTNOTIFY: 148if (m.WParamInternal.LOWORD == PInvokeCore.WM_DESTROY) 150PInvokeCore.PostMessage(this, WM_CHECKDESTROY);
System\Windows\Forms\Application.ThreadContext.cs (10)
86_id = PInvokeCore.GetCurrentThreadId(); 275if (PInvokeCore.GetCurrentThreadId() != _id) 292PInvokeCore.OleUninitialize(); 355uint hwndThread = PInvokeCore.GetWindowThreadProcessId(_parkingWindows[0], out _); 356uint currentThread = PInvokeCore.GetCurrentThreadId(); 500if (id == PInvokeCore.GetCurrentThreadId()) 561HRESULT hr = PInvokeCore.OleInitialize(pvReserved: (void*)null); 654PInvoke.PostThreadMessage(_id, PInvokeCore.WM_QUIT, default, default); 750hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 919if (msg.message == PInvokeCore.WM_CHAR)
System\Windows\Forms\Application.ThreadWindows.cs (1)
25PInvokeCore.EnumCurrentThreadWindows(Callback);
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (2)
26PInvokeCore.DISPID_ABOUTBOX, 28PInvokeCore.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (2)
18PInvokeCore.DISPID_ABOUTBOX, 21new DispIdAttribute(PInvokeCore.DISPID_ABOUTBOX),
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (2)
75PInvokeCore.GetThreadLocale(), 110PInvokeCore.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
50return categorizeProperties.Value->GetCategoryName(categoryId, (int)PInvokeCore.GetThreadLocale(), &categoryName).Succeeded
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
64hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID, PInvokeCore.GetThreadLocale(), null, &helpString); 136hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID, PInvokeCore.GetThreadLocale(), &name, null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (2)
25if (property.DISPID == PInvokeCore.DISPID_MOUSEICON || property.Name.Contains("Icon")) 121PInvokeCore.OleCreatePictureIndirect(&pictdesc, IID.Get<IPicture>(), own, picture).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
620hr = dispatch.Value->TryGetProperty(DISPID, &nativeValue, PInvokeCore.GetThreadLocale()); 903PInvokeCore.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
87PInvokeCore.GetThreadLocale()).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (8)
84dispatch.Value->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), &typeInfo); 144int dispid = PInvokeCore.DISPID_UNKNOWN; 156hr = ComNativeDescriptor.GetPropertyValue(dispatch, PInvokeCore.DISPID_Name, out _); 159dispid = PInvokeCore.DISPID_Name; 174int pDispid = PInvokeCore.DISPID_UNKNOWN; 179hr = dispatch->GetIDsOfNames(&guid, (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &pDispid); 563|| dispid == PInvokeCore.DISPID_HWND) 624if (functionDescription->memid == PInvokeCore.DISPID_ABOUTBOX)
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.PropInfo.cs (1)
20public int DispId { get; set; } = PInvokeCore.DISPID_UNKNOWN;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (5)
109if (dispid != PInvokeCore.DISPID_UNKNOWN) 129int dispid = PInvokeCore.DISPID_UNKNOWN; 131HRESULT hr = dispatch->GetIDsOfNames(&guid, (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &dispid); 137return dispid == PInvokeCore.DISPID_UNKNOWN 148HRESULT hr = dispatch->TryGetProperty(dispid, &result, PInvokeCore.GetThreadLocale());
System\Windows\Forms\Control.ControlNativeWindow.cs (4)
88case PInvokeCore.WM_MOUSELEAVE: 92case PInvokeCore.WM_MOUSEMOVE: 98PInvokeCore.SendMessage(_control, RegisteredMessage.WM_MOUSEENTER); 108case PInvokeCore.WM_MOUSEWHEEL:
System\Windows\Forms\Control.cs (200)
794backBrush = PInvokeCore.GetSysColorBrush(color); 799backBrush = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(color)); 864[DispId(PInvokeCore.DISPID_BACKCOLOR)] 1536? PInvokeCore.GetWindowThreadProcessId(this, out _) 1537: PInvokeCore.GetCurrentThreadId(); 1582PInvokeCore.GetWindowRect(this, out RECT r); 1585PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT); 1835[DispId(PInvokeCore.DISPID_ENABLED)] 1888[DispId(PInvokeCore.DISPID_FONT)] 2083[DispId(PInvokeCore.DISPID_FORECOLOR)] 2199[DispId(PInvokeCore.DISPID_HWND)] 2264Span<char> buffer = stackalloc char[PInvokeCore.MaxClassName]; 2329PInvokeCore.GetWindowRect(this, out var temp); 2340PInvokeCore.GetWindowRect(next, out temp); 2399return PInvokeCore.GetWindowThreadProcessId(control, out _) != PInvokeCore.GetCurrentThreadId(); 3148[DispId(PInvokeCore.DISPID_TABSTOP)] 3207[DispId(PInvokeCore.DISPID_TEXT)] 3369PInvokeCore.SendMessage( 3371PInvokeCore.WM_CHANGEUISTATE, 3416PInvokeCore.SendMessage(TopMostParent, 3417PInvokeCore.WM_CHANGEUISTATE, 3628get => (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE); 3629set => PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)value); 3637get => (WINDOW_STYLE)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 3638set => PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (nint)value); 3672return PInvokeCore.GetWindowText(this); 4384PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 4719BOOL result = PInvokeCore.PeekMessage( 4754if (((WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(_window, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE)) 4757PInvoke.DefMDIChildProc(InternalHandle, PInvokeCore.WM_CLOSE, default, default); 4778PInvokeCore.DeleteObject(backBrush); 4965if (PInvokeCore.DoDragDrop(dataScope, dropSource, (DROPEFFECT)(uint)allowedEffects, out finalEffect).Failed) 5011PInvokeCore.SendMessage( 5013PInvokeCore.WM_PRINT, 5020PInvokeCore.BitBlt( 5054if (PInvokeCore.GetWindowThreadProcessId(marshaler, out _) == PInvokeCore.GetCurrentThreadId()) 5079PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 5871PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor)); 5872PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor)); 5876return (HBRUSH)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH); 6334return ((int)PInvokeCore.SendMessage(this, PInvokeCore.WM_GETDLGCODE) & mask) != 0; 6372&& ((uint)PInvokeCore.SendMessage(this, PInvokeCore.WM_GETDLGCODE) & mask) != 0; 6500bool syncSameThread = synchronous && PInvokeCore.GetWindowThreadProcessId(this, out _) == PInvokeCore.GetCurrentThreadId(); 6526if (s_threadCallbackMessage == PInvokeCore.WM_NULL) 6540PInvokeCore.PostMessage(this, s_threadCallbackMessage); 6676PInvokeCore.DeleteObject(backBrush); 7184Message m = Message.Create(HWND, PInvokeCore.WM_PRINTCLIENT, (WPARAM)hdc, (LPARAM)flags); 7420PInvokeCore.PostMessage(this, s_threadCallbackMessage); 7491PInvokeCore.SendMessage(this, PInvokeCore.WM_HSCROLL, WPARAM.MAKEWPARAM((int)SCROLLBAR_COMMAND.SB_THUMBPOSITION, si.nPos)); 7542PInvokeCore.DeleteObject(backBrush); 7989PInvokeCore.GetClientRect(new HandleRef<HWND>(_window, InternalHandle), out RECT rect); 8316PInvokeCore.OffsetViewportOrgEx(hdc, -Left, -Top, lppt: null); 8584PInvokeCore.MapWindowPoints((HWND)default, this, ref p); 8593PInvokeCore.MapWindowPoints(this, (HWND)default, ref p); 8639if (msg.MsgInternal == PInvokeCore.WM_KEYDOWN || msg.MsgInternal == PInvokeCore.WM_SYSKEYDOWN) 8661else if (msg.MsgInternal == PInvokeCore.WM_CHAR || msg.MsgInternal == PInvokeCore.WM_SYSCHAR) 8663if (msg.MsgInternal == PInvokeCore.WM_CHAR && IsInputChar((char)(nint)msg.WParamInternal)) 8717if (message.Msg is ((int)PInvokeCore.WM_KEYDOWN) or ((int)PInvokeCore.WM_SYSKEYDOWN)) 8735if (message.MsgInternal == PInvokeCore.WM_KEYDOWN || message.MsgInternal == PInvokeCore.WM_SYSKEYDOWN) 8744else if (message.MsgInternal == PInvokeCore.WM_CHAR || message.MsgInternal == PInvokeCore.WM_SYSCHAR) 8789Debug.Assert((OBJ_TYPE)PInvokeCore.GetObjectType(hDC) == OBJ_TYPE.OBJ_ENHMETADC, 8800bool success = PInvokeCore.GetViewportOrgEx(hDC, &viewportOrg); 8812GDI_REGION_TYPE selectResult = PInvokeCore.SelectClipRgn(hDC, hClippingRegion); 8830bool success = PInvokeCore.GetWindowRect(this, out var windowRect); 8858PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)hDC, (LPARAM)lParam); 8875PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)dcWrapper.HDC, (LPARAM)lParam); 8925if (m.MsgInternal == PInvokeCore.WM_CHAR || m.MsgInternal == PInvokeCore.WM_SYSCHAR) 8942else if (m.MsgInternal == PInvokeCore.WM_IME_CHAR) 8960if (m.MsgInternal == PInvokeCore.WM_KEYDOWN || m.MsgInternal == PInvokeCore.WM_SYSKEYDOWN) 8979RemovePendingMessages(PInvokeCore.WM_CHAR, PInvokeCore.WM_CHAR); 8980RemovePendingMessages(PInvokeCore.WM_SYSCHAR, PInvokeCore.WM_SYSCHAR); 8981RemovePendingMessages(PInvokeCore.WM_IME_CHAR, PInvokeCore.WM_IME_CHAR); 9049uint current = (uint)PInvokeCore.SendMessage(this, PInvokeCore.WM_QUERYUISTATE); 9056current = (uint)PInvokeCore.SendMessage(topMostParent, PInvokeCore.WM_QUERYUISTATE); 9100PInvokeCore.SendMessage( 9102PInvoke.GetParent(topMostParent).IsNull ? PInvokeCore.WM_CHANGEUISTATE : PInvokeCore.WM_UPDATEUISTATE, 9132while (PInvokeCore.PeekMessage(&msg, this, (uint)msgMin, (uint)msgMax, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE)) 9392PInvokeCore.MapWindowPoints(HWND.Null, this, ref rect); 9402PInvokeCore.MapWindowPoints(this, HWND.Null, ref rect); 9420m.ResultInternal = PInvokeCore.SendMessage( 9573HRESULT hr = PInvokeCore.RegisterDragDrop(this, new DropTarget(this)); 9582HRESULT hr = PInvokeCore.RevokeDragDrop(this); 10714private void SetWindowFont() => PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFONT, (WPARAM)FontHandle, (LPARAM)(BOOL)false); 10718int styleFlags = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 10719PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, value ? styleFlags | flag : styleFlags & ~flag); 10860PInvokeCore.GetClientRect(this, out rect); 10863PInvokeCore.GetWindowRect(this, out rect); 10866PInvokeCore.MapWindowPoints(HWND.Null, PInvoke.GetParent(this), ref rect); 11147if (((WINDOW_STYLE)PInvokeCore.GetWindowLong(lastParentHandle, WINDOW_LONG_PTR_INDEX.GWL_STYLE)) 11156PInvokeCore.PostMessage(lastParentHandle, PInvokeCore.WM_CLOSE); 11283PInvokeCore.GetClientRect(this, out RECT rc); 11682PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)screenLocation); 11761m.ResultInternal = PInvokeCore.SendMessage( 11768PInvokeCore.SendMessage( 11816m.ResultInternal = PInvokeCore.SendMessage( 12035case PInvokeCore.WM_CREATE: 12038case PInvokeCore.WM_DESTROY: 12299case PInvokeCore.WM_CAPTURECHANGED: 12303case PInvokeCore.WM_GETOBJECT: 12307case PInvokeCore.WM_COMMAND: 12311case PInvokeCore.WM_CLOSE: 12315case PInvokeCore.WM_CONTEXTMENU: 12319case PInvokeCore.WM_DISPLAYCHANGE: 12323case PInvokeCore.WM_DRAWITEM: 12331case PInvokeCore.WM_ERASEBKGND: 12335case PInvokeCore.WM_HELP: 12339case PInvokeCore.WM_PAINT: 12351case PInvokeCore.WM_PRINTCLIENT: 12363case PInvokeCore.WM_SYSCOMMAND: 12373case PInvokeCore.WM_INPUTLANGCHANGE: 12377case PInvokeCore.WM_INPUTLANGCHANGEREQUEST: 12381case PInvokeCore.WM_MEASUREITEM: 12389case PInvokeCore.WM_SETCURSOR: 12393case PInvokeCore.WM_WINDOWPOSCHANGING: 12397case PInvokeCore.WM_CHAR: 12398case PInvokeCore.WM_KEYDOWN: 12399case PInvokeCore.WM_SYSKEYDOWN: 12400case PInvokeCore.WM_KEYUP: 12401case PInvokeCore.WM_SYSKEYUP: 12405case PInvokeCore.WM_CREATE: 12409case PInvokeCore.WM_DESTROY: 12413case PInvokeCore.WM_CTLCOLOR: 12414case PInvokeCore.WM_CTLCOLORBTN: 12415case PInvokeCore.WM_CTLCOLORDLG: 12416case PInvokeCore.WM_CTLCOLORMSGBOX: 12417case PInvokeCore.WM_CTLCOLORSCROLLBAR: 12418case PInvokeCore.WM_CTLCOLOREDIT: 12419case PInvokeCore.WM_CTLCOLORLISTBOX: 12420case PInvokeCore.WM_CTLCOLORSTATIC: 12437case PInvokeCore.WM_HSCROLL: 12438case PInvokeCore.WM_VSCROLL: 12439case PInvokeCore.WM_DELETEITEM: 12440case PInvokeCore.WM_VKEYTOITEM: 12441case PInvokeCore.WM_CHARTOITEM: 12442case PInvokeCore.WM_COMPAREITEM: 12450case PInvokeCore.WM_IME_CHAR: 12454case PInvokeCore.WM_IME_STARTCOMPOSITION: 12458case PInvokeCore.WM_IME_ENDCOMPOSITION: 12462case PInvokeCore.WM_IME_NOTIFY: 12466case PInvokeCore.WM_KILLFOCUS: 12470case PInvokeCore.WM_LBUTTONDBLCLK: 12479case PInvokeCore.WM_LBUTTONDOWN: 12483case PInvokeCore.WM_LBUTTONUP: 12487case PInvokeCore.WM_MBUTTONDBLCLK: 12496case PInvokeCore.WM_MBUTTONDOWN: 12500case PInvokeCore.WM_MBUTTONUP: 12504case PInvokeCore.WM_XBUTTONDOWN: 12508case PInvokeCore.WM_XBUTTONUP: 12512case PInvokeCore.WM_XBUTTONDBLCLK: 12521case PInvokeCore.WM_MOUSELEAVE: 12525case PInvokeCore.WM_DPICHANGED_BEFOREPARENT: 12530case PInvokeCore.WM_DPICHANGED_AFTERPARENT: 12535case PInvokeCore.WM_MOUSEMOVE: 12539case PInvokeCore.WM_MOUSEWHEEL: 12543case PInvokeCore.WM_MOVE: 12547case PInvokeCore.WM_NOTIFY: 12551case PInvokeCore.WM_NOTIFYFORMAT: 12559case PInvokeCore.WM_SHOWWINDOW: 12563case PInvokeCore.WM_RBUTTONDBLCLK: 12572case PInvokeCore.WM_RBUTTONDOWN: 12576case PInvokeCore.WM_RBUTTONUP: 12580case PInvokeCore.WM_SETFOCUS: 12584case PInvokeCore.WM_MOUSEHOVER: 12588case PInvokeCore.WM_WINDOWPOSCHANGED: 12592case PInvokeCore.WM_QUERYNEWPALETTE: 12596case PInvokeCore.WM_UPDATEUISTATE: 12600case PInvokeCore.WM_PARENTNOTIFY: 12604case PInvokeCore.WM_SETTINGCHANGE: 12654case PInvokeCore.WM_SYSCOLORCHANGE: 12662case PInvokeCore.WM_EXITMENULOOP: 12663case PInvokeCore.WM_INITMENUPOPUP: 12664case PInvokeCore.WM_MENUSELECT: 12896PInvokeCore.GetWindowRect(this, out var rect);
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
32PInvokeCore.DeleteObject(_handle);
System\Windows\Forms\Control.MetafileDCWrapper.cs (14)
30Debug.Assert((OBJ_TYPE)PInvokeCore.GetObjectType(hOriginalDC) == OBJ_TYPE.OBJ_ENHMETADC, 40HDC = PInvokeCore.CreateCompatibleDC(default); 42int planes = PInvokeCore.GetDeviceCaps(HDC, GET_DEVICE_CAPS_INDEX.PLANES); 43int bitsPixel = PInvokeCore.GetDeviceCaps(HDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL); 44_hBitmap = PInvokeCore.CreateBitmap(size.Width, size.Height, (uint)planes, (uint)bitsPixel, lpBits: null); 45_hOriginalBmp = (HBITMAP)PInvokeCore.SelectObject(HDC, _hBitmap); 66PInvokeCore.SelectObject(HDC, _hOriginalBmp); 67success = PInvokeCore.DeleteObject(_hBitmap); 69success = PInvokeCore.DeleteDC(HDC); 91HBITMAP hNullBitmap = PInvokeCore.CreateBitmap(1, 1, 1, 1, null); 99HBITMAP hBitmap = (HBITMAP)PInvokeCore.SelectObject(hdcSrc, hNullBitmap); 106PInvokeCore.SelectObject(hdcSrc, hBitmap); 108if (!PInvokeCore.GetObject(hBitmap, out BITMAP bmp)) 214PInvokeCore.DeleteObject(hNullBitmap);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
344case PInvokeCore.WM_ERASEBKGND:
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (8)
1188PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)true); 1216PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)false); 1379case PInvokeCore.WM_KILLFOCUS: 1380case PInvokeCore.WM_CANCELMODE: 1381case PInvokeCore.WM_CAPTURECHANGED: 1396case PInvokeCore.WM_LBUTTONUP: 1397case PInvokeCore.WM_MBUTTONUP: 1398case PInvokeCore.WM_RBUTTONUP:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
86? PInvokeCore.GetSysColorBrush(SYS_COLOR_INDEX.COLOR_HIGHLIGHT)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
208PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState); 498PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
165PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)value); 349PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)_isChecked);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (2)
23PInvokeCore.EnumChildWindows(new HandleRef<HWND>(this, acHandle), RegisterACWindowRecursive); 71if (m.MsgInternal == PInvokeCore.WM_NCDESTROY)
System\Windows\Forms\Controls\ComboBox\ComboBox.AutoCompleteDropDownFinder.cs (1)
33PInvokeCore.EnumCurrentThreadWindows(Callback);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
36PInvokeCore.GetWindowRect(_owningComboBox.GetListNativeWindow(), out var rect);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (3)
25case PInvokeCore.WM_GETOBJECT: 28case PInvokeCore.WM_MOUSEMOVE: 55case PInvokeCore.WM_DESTROY:
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (3)
41int result = (int)PInvokeCore.SendMessage( 54PInvokeCore.MapWindowPoints(listHandle, HWND.Null, ref translated); 185PInvokeCore.SendMessage(_owningComboBox, PInvoke.CB_SETTOPINDEX, (WPARAM)GetCurrentIndex());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (15)
100? PInvokeCore.GetWindowText(_owningChildEdit) 105? (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.WM_GETTEXTLENGTH) 224PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETSEL, ref start, ref end); 295PInvokeCore.MapWindowPoints(_owningChildEdit, (HWND)default, ref pt); 345if (PInvokeCore.MapWindowPoints((HWND)default, _owningChildEdit, ref clientLocation) == 0) 399PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end); 404int index = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_CHARFROMPOS, (WPARAM)0, (LPARAM)pt); 430PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETRECT, (WPARAM)0, ref rectangle); 442int i = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (98)
446PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)value); 486get => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETDROPPEDSTATE) != 0; 494PInvokeCore.SendMessage(this, PInvoke.CB_SHOWDROPDOWN, (WPARAM)(value ? -1 : 0)); 595int height = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT); 703PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (WPARAM)value); 872get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETCURSEL) : _selectedIndex; 885PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)value); 961PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (WPARAM)(-1), value ?? string.Empty); 979PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&start), (LPARAM)(&end)); 1000PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&value)); 1379PInvokeCore.GetWindowRect(this, out var comboRectMid); 1382PInvokeCore.GetWindowRect(_childEdit, out var editRectMid); 1399case PInvokeCore.WM_CHAR: 1418case PInvokeCore.WM_SYSCHAR: 1437case PInvokeCore.WM_KEYDOWN: 1438case PInvokeCore.WM_SYSKEYDOWN: 1478case PInvokeCore.WM_INPUTLANGCHANGE: 1482case PInvokeCore.WM_KEYUP: 1483case PInvokeCore.WM_SYSKEYUP: 1507case PInvokeCore.WM_KILLFOCUS: 1529case PInvokeCore.WM_SETFOCUS: 1574case PInvokeCore.WM_SETFONT: 1578PInvokeCore.SendMessage( 1580PInvokeCore.EM_SETMARGINS, 1585case PInvokeCore.WM_LBUTTONDBLCLK: 1602case PInvokeCore.WM_MBUTTONDBLCLK: 1619case PInvokeCore.WM_RBUTTONDBLCLK: 1636case PInvokeCore.WM_LBUTTONDOWN: 1649case PInvokeCore.WM_LBUTTONUP: 1657PInvokeCore.GetWindowRect(this, out var rect); 1681case PInvokeCore.WM_MBUTTONDOWN: 1694case PInvokeCore.WM_RBUTTONDOWN: 1711case PInvokeCore.WM_MBUTTONUP: 1720case PInvokeCore.WM_RBUTTONUP: 1732case PInvokeCore.WM_CONTEXTMENU: 1736PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, m.WParamInternal, m.LParamInternal); 1745case PInvokeCore.WM_MOUSEMOVE: 1754case PInvokeCore.WM_SETCURSOR: 1767case PInvokeCore.WM_MOUSELEAVE: 1805PInvokeCore.GetWindowRect(this, out var rect); 1965int h = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)index); 1990if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor()) 1997else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 2002PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor)); 2003PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor)); 2016if (m.MsgInternal == PInvokeCore.WM_KEYDOWN) 2034else if (m.MsgInternal == PInvokeCore.WM_CHAR) 2158int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_ADDSTRING, (WPARAM)0, GetItemText(item)); 2174PInvokeCore.SendMessage(this, PInvoke.CB_RESETCONTENT); 2187int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXTLEN, (WPARAM)index); 2196int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXT, (WPARAM)index, (LPARAM)b); 2209int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_INSERTSTRING, (WPARAM)index, GetItemText(item)); 2236PInvokeCore.SendMessage(this, PInvoke.CB_DELETESTRING, (WPARAM)index); 2271PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (WPARAM)MaxLength); 2300PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN)); 2306PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)dropDownWidth); 2357PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)_selectedIndex); 3231PInvokeCore.SendMessage(this, PInvoke.CB_SETEDITSEL, (WPARAM)0, LPARAM.MAKELPARAM(start, end)); 3275PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)DataManager.Position); 3373PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight); 3374PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, 0, ItemHeight); 3378PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight); 3382int original = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)i); 3387PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)i, (LPARAM)mievent.ItemHeight); 3428PInvokeCore.SendMessage(_childEdit, PInvokeCore.WM_SETTEXT, 0, s); 3437PInvokeCore.GetClientRect(this, out RECT rect); 3451if ((int)m.WParamInternal == ((int)PInvokeCore.WM_CREATE | 1000 << 16)) 3608= PInvokeCore.CreateSolidBrush(ColorTranslator.ToWin32(Color.FromArgb(64, 64, 64))); 3621case PInvokeCore.WM_SETFOCUS: 3633case PInvokeCore.WM_KILLFOCUS: 3653PInvokeCore.PostMessage(this, PInvokeCore.WM_MOUSELEAVE); 3663case PInvokeCore.WM_CTLCOLORSTATIC: 3668PInvokeCore.SetBkColor( 3672PInvokeCore.SetTextColor( 3686PInvokeCore.SetBkColor( 3690PInvokeCore.SetTextColor( 3701case PInvokeCore.WM_CTLCOLOREDIT: 3702case PInvokeCore.WM_CTLCOLORLISTBOX: 3705case PInvokeCore.WM_ERASEBKGND: 3708case PInvokeCore.WM_PARENTNOTIFY: 3720case PInvokeCore.WM_LBUTTONDOWN: 3724case PInvokeCore.WM_LBUTTONUP: 3725PInvokeCore.GetWindowRect(this, out var rect); 3752case PInvokeCore.WM_MOUSELEAVE: 3757case PInvokeCore.WM_PAINT: 3768PInvokeCore.CombineRgn(dropDownRegion, windowRegion, dropDownRegion, RGN_COMBINE_MODE.RGN_DIFF); 3782PInvokeCore.SelectClipRgn(dc, dropDownRegion); 3790PInvokeCore.SelectClipRgn(dc, windowRegion); 3823case PInvokeCore.WM_PRINTCLIENT: 3844case PInvokeCore.WM_SETCURSOR: 3848case PInvokeCore.WM_SETFONT: 3857case PInvokeCore.WM_WINDOWPOSCHANGED: 3866case PInvokeCore.WM_NCDESTROY:
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (26)
5705HGDIOBJ saveBrush = PInvokeCore.SelectObject(dc, halftone); 5712PInvokeCore.SelectObject(dc, saveBrush); 5713PInvokeCore.DeleteObject(halftone); 5724HGDIOBJ saveBrush = PInvokeCore.SelectObject(dc, halftone); 5726PInvokeCore.SelectObject(dc, saveBrush); 5727PInvokeCore.DeleteObject(halftone); 21873if (m.Msg is ((int)PInvokeCore.WM_SYSKEYDOWN) or ((int)PInvokeCore.WM_KEYDOWN)) 21906PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal); 21917&& (m.MsgInternal == PInvokeCore.WM_SYSCHAR || m.MsgInternal == PInvokeCore.WM_CHAR || m.MsgInternal == PInvokeCore.WM_IME_CHAR)) 21922PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal); 21940dataGridViewWantsInputKey = m.MsgInternal == PInvokeCore.WM_CHAR 21966if (EditingControl is not null && (m.MsgInternal == PInvokeCore.WM_KEYDOWN || m.MsgInternal == PInvokeCore.WM_SYSKEYDOWN)) 21979if (m.MsgInternal == PInvokeCore.WM_KEYDOWN || m.MsgInternal == PInvokeCore.WM_SYSKEYDOWN) 30039PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width); 30062case PInvokeCore.WM_GETDLGCODE: 30065case PInvokeCore.WM_LBUTTONDBLCLK: 30066case PInvokeCore.WM_LBUTTONDOWN: 30079case PInvokeCore.WM_NOTIFY: 30088case PInvokeCore.WM_IME_STARTCOMPOSITION: 30089case PInvokeCore.WM_IME_COMPOSITION: 30093PInvokeCore.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
618PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)s_cachedDropDownWidth); 625int dropDownWidth = (int)PInvokeCore.SendMessage(comboBox, PInvoke.CB_GETDROPPEDWIDTH); 628PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)DropDownWidth);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
254if (m.MsgInternal == PInvokeCore.WM_CHAR 266if (m.MsgInternal == PInvokeCore.WM_CHAR && ModifierKeys == Keys.Control && Multiline && AcceptsReturn) 275if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && ModifierKeys == Keys.Control)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (20)
341nint result = PInvokeCore.SendMessage(this, PInvoke.DTM_GETSYSTEMTIME, 0, ref systemTime); 359PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime); 363PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_NONE); 445PInvokeCore.SendMessage(this, PInvoke.DTM_SETFORMATW, 0, _customFormat); 894PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime); 975PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime); 979PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_NONE); 984PInvokeCore.SendMessage(this, PInvoke.DTM_SETFORMATW, 0, _customFormat); 1126PInvokeCore.SetWindowLong( 1129PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)); 1261PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime); 1278PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value); 1289PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCFONT, (WPARAM)CalendarFontHandle, (LPARAM)(-1)); 1319PInvokeCore.SendMessage(this, PInvoke.DTM_SETRANGE, (WPARAM)flags, ref times[0]); 1441PInvokeCore.EnumChildWindows(this, c.enumChildren); 1503HWND handle = (HWND)PInvokeCore.SendMessage(this, PInvoke.DTM_GETMONTHCAL); 1506WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE); 1509PInvokeCore.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)style); 1553case PInvokeCore.WM_LBUTTONDOWN: 1565case PInvokeCore.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (3)
136PInvokeCore.SendMessage(owner, PInvokeCore.WM_SYSKEYDOWN, (WPARAM)(int)Keys.Down); 145PInvokeCore.SendMessage(owner, PInvoke.DTM_CLOSEMONTHCAL);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (8)
252PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 261PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 662PInvokeCore.GetClientRect(this, out RECT rect); 690case PInvokeCore.WM_ERASEBKGND: 691case PInvokeCore.WM_PRINTCLIENT: 694case PInvokeCore.WM_GETOBJECT:
System\Windows\Forms\Controls\ImageList\ImageList.cs (8)
223PInvokeCore.GetObject(imageInfo.hbmImage, out BITMAP bmp); 386PInvokeCore.DeleteObject(hBitmap); 387PInvokeCore.DeleteObject(hMask); 434PInvoke.ImageList.SetBkColor(this, (COLORREF)PInvokeCore.CLR_NONE); 539(COLORREF)PInvokeCore.CLR_NONE, 540(COLORREF)PInvokeCore.CLR_NONE, 675(COLORREF)PInvokeCore.CLR_NONE, 676(COLORREF)PInvokeCore.CLR_NONE,
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
167PInvokeCore.DeleteObject((HGDIOBJ)hBitmap); 168PInvokeCore.DeleteObject((HGDIOBJ)hMask);
System\Windows\Forms\Controls\Labels\Label.cs (2)
206[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 1429case PInvokeCore.WM_NCHITTEST:
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
301PInvokeCore.GetWindowRect(this, out var r); 304PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT); 1762case PInvokeCore.WM_SETCURSOR:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
392PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMRECT, (WPARAM)index, ref rect); 464PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight); 763PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (39)
203[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 257PInvokeCore.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth); 421internal int FocusedIndex => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETCARETINDEX) : -1; 596PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, 0, value); 837return (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETCURSEL); 1115get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTOPINDEX) : _topIndex; 1120PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (WPARAM)value); 1423int height = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMHEIGHT, (WPARAM)index); 1444if (PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMRECT, (uint)index, ref rect) == 0) 1478int selection = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (WPARAM)index); 1512PInvokeCore.GetClientRect(this, out RECT r); 1515int index = (int)PInvokeCore.SendMessage(this, PInvoke.LB_ITEMFROMPOINT, 0, PARAM.FromLowHigh(x, y)); 1532int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LB_ADDSTRING, 0, GetItemText(item)); 1556PInvokeCore.SendMessage(this, PInvoke.LB_RESETCONTENT); 1565int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXTLEN, (WPARAM)index); 1574int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXT, (WPARAM)index, (LPARAM)b); 1587int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LB_INSERTSTRING, (uint)index, GetItemText(item)); 1614bool selected = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (WPARAM)index) > 0; 1615PInvokeCore.SendMessage(this, PInvoke.LB_DELETESTRING, (WPARAM)index); 1637PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (WPARAM)(value ? index : -1)); 1641PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (LPARAM)index); 1664int index = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETCURSEL); 1674int count = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSELCOUNT); 1680PInvokeCore.SendMessage(this, PInvoke.LB_GETSELITEMS, (WPARAM)count, (LPARAM)pResult); 1745PInvokeCore.SendMessage(this, PInvoke.LB_SETLOCALE, (WPARAM)PInvokeCore.GetThreadLocale()); 1749PInvokeCore.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth); 1754PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight); 1759PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (WPARAM)_topIndex); 1770PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (LPARAM)pOffsets); 2116PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (WPARAM)DataManager.Position); 2255PInvokeCore.SendMessage(this, PInvoke.LB_SETHORIZONTALEXTENT, (WPARAM)width); 2312PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (nint)pOffsets); 2410case PInvokeCore.WM_PRINT: 2413case PInvokeCore.WM_LBUTTONDOWN: 2417case PInvokeCore.WM_LBUTTONUP: 2459case PInvokeCore.WM_RBUTTONUP: 2468case PInvokeCore.WM_LBUTTONDBLCLK: 2476case PInvokeCore.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (5)
207PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETCARETINDEX, (WPARAM)currentIndex); 211int firstVisibleIndex = (int)PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_GETTOPINDEX); 214PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)currentIndex); 224int itemHeight = (int)PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_GETITEMHEIGHT, (WPARAM)i); 236PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)(currentIndex - visibleItemsCount + 1));
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
55return (int)PInvokeCore.SendMessage(_owner, PInvoke.LB_GETSELCOUNT);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
395HWND hwndHdr = (HWND)PInvokeCore.SendMessage(ListView, PInvoke.LVM_GETHEADER); 398int nativeColumnCount = (int)PInvokeCore.SendMessage(hwndHdr, PInvoke.HDM_GETITEMCOUNT); 401_width = (int)PInvokeCore.SendMessage(ListView, PInvoke.LVM_GETCOLUMNWIDTH, (WPARAM)Index); 483PInvokeCore.SendMessage(ListView, PInvoke.LVM_SETCOLUMNORDERARRAY, (WPARAM)cols.Length, (LPARAM)pCols);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
334PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)colIdx); 507int retval = (int)PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)index);
System\Windows\Forms\Controls\ListView\ListView.cs (137)
354PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor); 404PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref lvbkImage); 416[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 559PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle); 563PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, PInvoke.LVSIL_STATE); 639int currentStyle = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 810int displayIndex = (int)PInvokeCore.SendMessage( 841PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor); 954PInvokeCore.SendMessage( 1218PInvokeCore.SendMessage( 1457PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)(value?.Handle ?? 0)); 1562PInvokeCore.SendMessage(this, 1580PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE); 1598PInvokeCore.SendMessage( 1661PInvokeCore.SendMessage(this, PInvoke.LVM_GETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo); 1691nint result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo); 1724_topIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_GETTOPINDEX); 1835PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (WPARAM)(int)_viewStyle); 1884topIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_GETTOPINDEX); 1891PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_virtualListSize); 2187HWND hwnd = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER); 2210&& PInvokeCore.SendMessage(hwnd, PInvoke.HDM_HITTEST, (WPARAM)0, ref lvhi) != -1 && lvhi.iItem > -1) 2260PInvokeCore.PostMessage(this, PInvoke.LVM_ARRANGE, (WPARAM)(int)value); 2396PInvokeCore.SendMessage(this, PInvokeCore.WM_TIMER, (WPARAM)LVLABELEDITTIMER); 2620PInvokeCore.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandleWrapper.Handle); 2905PInvokeCore.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandle); 2913PInvokeCore.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandleWrapper.Handle); 3177if (PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (WPARAM)DefaultGroup.ID) == 0) 3196PInvokeCore.SendMessage(this, PInvoke.LVM_ENSUREVISIBLE, (WPARAM)index); 3314int index = (int)PInvokeCore.SendMessage( 3366PInvokeCore.SendMessage(this, PInvoke.LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)PInvoke.LVS_EX_CHECKBOXES); 3367PInvokeCore.SendMessage( 3421displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (WPARAM)(lastIndex - 1), ref info); 3426displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (WPARAM)(-1) /* beginning */, ref info); 3486int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi); 3535int index = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi); 3551PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMPOSITION, (WPARAM)index, ref position); 3568return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (WPARAM)index, (LPARAM)(uint)mask); 3597return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0 3626return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0 3674return PInvokeCore.SendMessage(this, PInvoke.LVM_GETSUBITEMRECT, (WPARAM)itemIndex, ref itemrect) == 0 3705PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, handle); 3723? (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi) 3724: (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi); 3794HWND header = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER); 3930return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_INSERTCOLUMNW, (WPARAM)index, ref lvColumn); 3975PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem); 4118PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_itemCount); 4145IntPtr result = PInvokeCore.SendMessage(this, PInvoke.LVM_ISGROUPVIEWENABLED); 4147result = PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId); 4190insertIndex = (int)PInvokeCore.SendMessage( 4305PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)handle); 4514PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (WPARAM)(-1)); 4533int version = (int)PInvokeCore.SendMessage(this, PInvoke.CCM_GETVERSION); 4536PInvokeCore.SendMessage(this, PInvoke.CCM_SETVERSION, (WPARAM)5); 4542PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor); 4543PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor); 4549PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)PInvokeCore.CLR_NONE); 4555int style = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 4557PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style); 4563LIST_VIEW_ITEM_STATE_FLAGS callbackMask = (LIST_VIEW_ITEM_STATE_FLAGS)(int)PInvokeCore.SendMessage(this, PInvoke.LVM_GETCALLBACKMASK); 4565PInvokeCore.SendMessage(this, PInvoke.LVM_SETCALLBACKMASK, (WPARAM)(uint)callbackMask); 4570PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (WPARAM)(uint)_viewStyle); 4626PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)VirtualListSize); 4682PInvokeCore.SendMessage( 4695HWND columnHeaderHandle = (HWND)PInvokeCore.SendMessage( 4925PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor); 4929PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)PInvokeCore.CLR_NONE); 4944PInvokeCore.GetClientRect(this, out RECT clientRect); 4952PInvokeCore.SendMessage(headerWindow, PInvoke.HDM_LAYOUT, (WPARAM)0, ref hd); 4987PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)c); 4994PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)c); 5000PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.Handle); 5005PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.Handle); 5010PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle); 5015PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.Handle); 5039int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_REDRAWITEMS, (WPARAM)startIndex, (LPARAM)endIndex); 5147PInvokeCore.SendMessage(this, PInvoke.LVM_REMOVEGROUP, (WPARAM)group.ID); 5153PInvokeCore.SendMessage(this, PInvoke.LVM_SCROLL, (WPARAM)0, (LPARAM)scrollY); 5194PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref backgroundImage); 5275result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn); 5340PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)columnIndex, LPARAM.MAKELPARAM(width, 0)); 5350PInvokeCore.SendMessage( 5363PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)index, LPARAM.MAKELPARAM(width, 0)); 5381PInvokeCore.SendMessage( 5422HWND oldHandle = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_SETTOOLTIPS, toolTip); 5443PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem); 5463PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem); 5479PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMPOSITION32, (WPARAM)index, ref pt); 5499PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMSTATE, (WPARAM)index, ref lvItem); 5517int colWidth = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_GETCOLUMNWIDTH); 5536PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMTEXTW, (WPARAM)itemIndex, ref lvItem); 5552PInvokeCore.SendMessage(this, PInvoke.LVM_SETSELECTIONMARK, (WPARAM)0, itemIndex); 5563PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)handle); 5583PInvokeCore.SendMessage(this, PInvoke.LVM_SORTITEMS, (WPARAM)0, (LPARAM)callbackPointer); 5596PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)handle); 5638PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (WPARAM)(-1)); 5732PInvokeCore.SendMessage( 5843return PInvokeCore.SendMessage(this, msg, (WPARAM)lParam, ref lvgroup); 5852int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_ENABLEGROUPVIEW, (WPARAM)(BOOL)GroupsEnabled); 5873nint retval = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo); 5892int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi); 5934int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi); 6022PInvokeCore.SetTextColor(nmlvcd->nmcd.hdc, ForeColor); 6376HWND hwndHdr = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER); 6377HFONT hFont = (HFONT)PInvokeCore.SendMessage(hwndHdr, PInvokeCore.WM_GETFONT); 6384return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi); 6409int groupID = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)(-1), ref lvhi); 6416bool groupHeaderDblClicked = lvhi.flags == LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_HEADER && clickType == PInvokeCore.WM_LBUTTONDBLCLK; 6418bool chevronClicked = (lvhi.flags & LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_COLLAPSE) == LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_COLLAPSE && clickType == PInvokeCore.WM_LBUTTONUP; 6455PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE); 6497_labelEdit.AssignHandle(PInvokeCore.SendMessage(this, PInvoke.LVM_GETEDITCONTROL)); 6883PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, (WPARAM)0, (LPARAM)SystemInformation.MaxWindowTrackSize.Width); 6976case PInvokeCore.WM_KEYUP: 7004case PInvokeCore.WM_LBUTTONDBLCLK: 7011UpdateGroupCollapse(PInvokeCore.WM_LBUTTONDBLCLK); 7014case PInvokeCore.WM_LBUTTONDOWN: 7036case PInvokeCore.WM_LBUTTONUP: 7037case PInvokeCore.WM_RBUTTONUP: 7038case PInvokeCore.WM_MBUTTONUP: 7041int index = UpdateGroupCollapse(PInvokeCore.WM_LBUTTONUP); 7061case PInvokeCore.WM_MBUTTONDBLCLK: 7064case PInvokeCore.WM_MBUTTONDOWN: 7068case PInvokeCore.WM_RBUTTONDBLCLK: 7071case PInvokeCore.WM_RBUTTONDOWN: 7075case PInvokeCore.WM_MOUSEMOVE: 7085case PInvokeCore.WM_MOUSEHOVER: 7096case PInvokeCore.WM_NOTIFY: 7106case PInvokeCore.WM_SETFOCUS: 7124case PInvokeCore.WM_MOUSELEAVE: 7131case PInvokeCore.WM_PAINT: 7137case PInvokeCore.WM_PRINT: 7140case PInvokeCore.WM_TIMER:
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
28PInvokeCore.GetWindowRect(owningListView, out var rect);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (5)
202PInvokeCore.SendMessage(_owner, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem); 226int nextSelected = (int)PInvokeCore.SendMessage( 245nextSelected = (int)PInvokeCore.SendMessage( 261PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETEALLITEMS); 421if (PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETEITEM, (WPARAM)index) == 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
32return (int)PInvokeCore.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT); 58int fidx = (int)PInvokeCore.SendMessage( 106fidx = (int)PInvokeCore.SendMessage(
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (4)
32int cnt = (int)PInvokeCore.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT); 40int fidx = (int)PInvokeCore.SendMessage( 94return (int)PInvokeCore.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT); 129fidx = (int)PInvokeCore.SendMessage(
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
421LIST_VIEW_GROUP_STATE_FLAGS state = (LIST_VIEW_GROUP_STATE_FLAGS)(uint)PInvokeCore.SendMessage(
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
59PInvokeCore.SendMessage(_owningListView, PInvoke.LVM_GETGROUPRECT, (WPARAM)nativeGroupId, ref groupRect); 165return (LIST_VIEW_GROUP_STATE_FLAGS)(uint)PInvokeCore.SendMessage( 174if (PInvokeCore.SendMessage(_owningListView, PInvoke.LVM_HASGROUP, (WPARAM)_owningGroup.ID) == 0)
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (6)
57PInvokeCore.SendMessage(_listView, PInvoke.LVM_GETINSERTMARKRECT, (WPARAM)0, ref bounds); 71_color = new COLORREF((uint)PInvokeCore.SendMessage(_listView, PInvoke.LVM_GETINSERTMARKCOLOR)); 83PInvokeCore.SendMessage(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32()); 121PInvokeCore.SendMessage(_listView, PInvoke.LVM_INSERTMARKHITTEST, (WPARAM)(&pt), ref lvInsertMark); 136PInvokeCore.SendMessage(_listView, PInvoke.LVM_SETINSERTMARK, 0, ref lvInsertMark); 140PInvokeCore.SendMessage(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32());
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
880PInvokeCore.SendMessage(lv, PInvoke.LVM_EDITLABELW, (WPARAM)Index); 1099nint result = PInvokeCore.SendMessage(_listView, PInvoke.LVM_ISGROUPVIEWENABLED); 1101result = PInvokeCore.SendMessage(_listView, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId); 1107PInvokeCore.SendMessage(_listView, PInvoke.LVM_SETITEMW, 0, ref lvItem); 1136PInvokeCore.SendMessage(_listView, PInvoke.LVM_GETITEMW, 0, ref lvItem);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (3)
241PInvokeCore.PostMessage(ancestor, PInvokeCore.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_KEYMENU, (LPARAM)(int)Keys.Space); 252if (m.Msg == (int)PInvokeCore.WM_MOUSEACTIVATE && (ActiveDropDowns.Count == 0))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (5)
72bool mouseSwapped = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_SWAPBUTTON) != 0; 93int vscreenWidth = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXVIRTUALSCREEN); 94int vscreenHeight = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYVIRTUALSCREEN); 95int vscreenLeft = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_XVIRTUALSCREEN); 96int vscreenTop = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_YVIRTUALSCREEN);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (21)
396PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, 0, (nint)value); 484if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)value) == 0) 618PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)value); 798if (PInvokeCore.SendMessage(this, PInvoke.MCM_GETMINREQRECT, 0, ref rect) == 0) 862int result = (int)PInvokeCore.SendMessage(this, PInvoke.MCM_GETTODAY, 0, ref systemTime); 1235int maxTodayWidth = (int)PInvokeCore.SendMessage(this, PInvoke.MCM_GETMAXTODAYWIDTH); 1251PInvokeCore.SendMessage(this, PInvoke.MCM_GETMONTHRANGE, (WPARAM)(int)flag, ref times[0]); 1299PInvokeCore.SendMessage(this, PInvoke.MCM_HITTEST, 0, ref mchi); 1357PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)_maxSelectionCount); 1365PInvokeCore.SendMessage(this, PInvoke.MCM_SETTODAY, (WPARAM)0, ref systemTime); 1384PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (WPARAM)0, (LPARAM)firstDay); 1389PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)_scrollChange); 1688PInvokeCore.SendMessage(this, PInvoke.MCM_SETCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value); 1740if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETRANGE, (WPARAM)flags, ref times[0]) == 0) 1823PInvokeCore.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (WPARAM)monthsCount, (LPARAM)arr); 1885PInvokeCore.SendMessage(this, PInvoke.MCM_SETSELRANGE, 0, ref times[0]); 2003PInvokeCore.SendMessage(this, PInvoke.MCM_SETTODAY, 0, ref systemTime); 2007PInvokeCore.SendMessage(this, PInvoke.MCM_SETTODAY, 0, 0); 2212case PInvokeCore.WM_LBUTTONDOWN: 2220case PInvokeCore.WM_GETDLGCODE: 2227case PInvokeCore.WM_PAINT:
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (4)
252bool success = PInvokeCore.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0; 274bool success = PInvokeCore.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0; 302PInvokeCore.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo); 401PInvokeCore.SendMessage(owner, PInvoke.MCM_HITTEST, 0, ref hitTestInfo);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
130[DispId(PInvokeCore.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (15)
262PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)false, (LPARAM)_marqueeAnimationSpeed); 266PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)true, (LPARAM)_marqueeAnimationSpeed); 302PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum); 340PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum); 352PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32()); 361PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32()); 430PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (WPARAM)_step); 608PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum); 609PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (WPARAM)_step); 610PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (WPARAM)_value); 611PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor); 612PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (WPARAM)0, (LPARAM)ForeColor); 692PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (WPARAM)_value); 706PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32()); 707PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (10)
596PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 609PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 2376if ((ComNativeDescriptor.IsNameDispId(obj, dispID) || dispID == PInvokeCore.DISPID_Name) && obj is not null) 4253case PInvokeCore.WM_UNDO: 4264case PInvokeCore.WM_CUT: 4276case PInvokeCore.WM_COPY: 4288case PInvokeCore.WM_PASTE: 4300case PInvokeCore.WM_COPYDATA:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1704int planes = PInvokeCore.GetDeviceCaps(compatibleDC, GET_DEVICE_CAPS_INDEX.PLANES); 1705int bitsPixel = PInvokeCore.GetDeviceCaps(compatibleDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL); 1706using HBITMAP compatibleBitmap = PInvokeCore.CreateBitmap(rectangle.Width, rectangle.Height, (uint)planes, (uint)bitsPixel, lpBits: null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (4)
138PInvokeCore.SendMessage( 162PInvokeCore.SendMessage(this, PInvoke.TTM_UPDATE); 169case PInvokeCore.WM_SHOWWINDOW: 176case PInvokeCore.WM_NCHITTEST:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (34)
181return PInvokeCore.SendMessage(EditTextBox, PInvokeCore.EM_CANUNDO) != 0; 364&& ((WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(_editTextBox, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE)).HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING); 1086PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_UNDO); 1476PInvokeCore.SetWindowLong(_dropDownHolder, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, this); 1520if (_dropDownHolder?.Visible == true && m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal != Keys.Tab) 1525m.ResultInternal = PInvokeCore.SendMessage(control, m.MsgInternal, m.WParamInternal, m.LParamInternal); 2562for (HWND hwnd = PInvokeCore.GetForegroundWindow(); !hwnd.IsNull; hwnd = PInvoke.GetParent(hwnd)) 2633PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (LPARAM)e.Location); 3114if (PInvoke.IsChild(PInvokeCore.GetForegroundWindow(), this)) 3478PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONDOWN, 0, PARAM.FromPoint(editPoint)); 3479PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (LPARAM)editPoint); 3821PInvokeCore.SendMessage(toolTip, PInvoke.TTM_ADJUSTRECT, (WPARAM)1, ref rect); 4936while (PInvokeCore.PeekMessage( 4939PInvokeCore.WM_MOUSEFIRST, 4940PInvokeCore.WM_MOUSELAST, 5009while (PInvokeCore.PeekMessage( 5012PInvokeCore.WM_MOUSEFIRST, 5013PInvokeCore.WM_MOUSELAST, 5331case (int)PInvokeCore.WM_SYSCOLORCHANGE: 5337case (int)PInvokeCore.WM_SETFOCUS: 5347case (int)PInvokeCore.WM_IME_STARTCOMPOSITION: 5350PInvokeCore.PostMessage(EditTextBox, PInvokeCore.WM_IME_STARTCOMPOSITION); 5353case (int)PInvokeCore.WM_IME_COMPOSITION: 5355PInvokeCore.PostMessage(EditTextBox, PInvokeCore.WM_IME_COMPOSITION, m.WParamInternal, m.LParamInternal); 5358case (int)PInvokeCore.WM_GETDLGCODE: 5376case (int)PInvokeCore.WM_MOUSEMOVE: 5387case (int)PInvokeCore.WM_NOTIFY:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
268hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 664if (m.MsgInternal == PInvokeCore.WM_ACTIVATE) 674else if (m.MsgInternal == PInvokeCore.WM_CLOSE) 684else if (m.MsgInternal == PInvokeCore.WM_DPICHANGED)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (9)
96PInvokeCore.PostMessage(this, PInvokeCore.WM_CHAR, (WPARAM)keyChar); 321case PInvokeCore.WM_STYLECHANGED: 328case PInvokeCore.WM_MOUSEMOVE: 336case PInvokeCore.WM_DESTROY: 339case PInvokeCore.WM_SHOWWINDOW: 346case PInvokeCore.WM_PASTE: 354case PInvokeCore.WM_GETDLGCODE: 364case PInvokeCore.WM_NOTIFY:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (10)
90PInvokeCore.GetWindowThreadProcessId(_control, out _thisProcessId); 99PInvokeCore.GetCurrentThreadId()); 117case PInvokeCore.WM_LBUTTONDOWN: 118case PInvokeCore.WM_MBUTTONDOWN: 119case PInvokeCore.WM_RBUTTONDOWN: 120case PInvokeCore.WM_NCLBUTTONDOWN: 121case PInvokeCore.WM_NCMBUTTONDOWN: 122case PInvokeCore.WM_NCRBUTTONDOWN: 123case PInvokeCore.WM_MOUSEACTIVATE: 171PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (160)
169PInvokeCore.SendMessage( 171PInvokeCore.EM_SETOPTIONS, 250public bool CanRedo => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CANREDO) != 0; 343PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (WPARAM)(BOOL)(value)); 394if (!IsHandleCreated || PInvokeCore.GetWindowTextLength(this) <= 0) 465? (RichTextBoxLanguageOptions)(int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETLANGOPTIONS) 474PInvokeCore.SendMessage(this, PInvokeCore.EM_SETLANGOPTIONS, 0, (nint)value); 531int n = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETREDONAME); 578PInvokeCore.SendMessage(this, PInvokeCore.EM_SETTARGETDEVICE, (WPARAM)hdc, Pixel2Twip(value, true)); 674PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 725PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 750PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 790PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 829PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, PInvoke.SCF_SELECTION, ref cf); 865PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf); 924PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf2); 966PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 988PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 1014PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 1036PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 1136PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 1159PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 1183PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 1213PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf); 1223PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf); 1266int n = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_SELECTIONTYPE); 1293PInvokeCore.SendMessage( 1295PInvokeCore.EM_SETOPTIONS, 1355PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY); 1386return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (WPARAM)(&gtl)); 1410int n = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETUNDONAME); 1454PInvokeCore.SendMessage(this, PInvokeCore.EM_GETZOOM, (WPARAM)(&numerator), ref denominator); 1598=> PInvokeCore.SendMessage(this, PInvokeCore.EM_CANPASTE, (WPARAM)clipFormat.Id) != 0; 1829PInvokeCore.SendMessage(this, PInvokeCore.EM_EXSETSEL, 0, ref chrg); 1830PInvokeCore.SendMessage(this, PInvokeCore.EM_SCROLLCARET); 1908position = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_FINDTEXT, (WPARAM)(uint)findOptions, ref ft); 1959textLength = PInvokeCore.GetWindowTextLength(this); 2032len = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg); 2126PInvokeCore.SendMessage(this, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf); 2210int index = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CHARFROMPOS, 0, ref wpt); 2247=> (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_EXLINEFROMCHAR, 0, index); 2265PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (WPARAM)(&position), index); 2340PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32()); 2420PInvokeCore.SendMessage( 2422PInvokeCore.EM_SETEVENTMASK, 2435PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (WPARAM)(DetectUrls ? 1 : 0)); 2446PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, (WPARAM)0, (LPARAM)BackColor); 2487PInvokeCore.PostMessage( 2489PInvokeCore.EM_SETOPTIONS, 2580PInvokeCore.SendMessage(this, PInvokeCore.EM_PASTESPECIAL, (WPARAM)clipFormat.Id); 2602public void Redo() => PInvokeCore.SendMessage(this, PInvokeCore.EM_REDO); 2677PInvokeCore.SendMessage(this, PInvokeCore.EM_SETZOOM, (WPARAM)numerator, (LPARAM)denominator); 2703return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf) != 0; 2711return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)charRange, ref cf) != 0; 2755PInvokeCore.SendMessage( 2757PInvokeCore.EM_SETCHARFORMAT, 2765s_logPixelsX = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 2766s_logPixelsY = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 2790PInvokeCore.SendMessage(this, PInvokeCore.WM_CLEAR); 2796PInvokeCore.SendMessage(this, PInvokeCore.WM_SETTEXT, 0, string.Empty); 2832PInvokeCore.SendMessage(this, PInvokeCore.EM_EXSETSEL, 0, ref range); 2895PInvokeCore.SendMessage(this, PInvokeCore.EM_EXLIMITTEXT, 0, int.MaxValue); 2898PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMIN, (WPARAM)flags, ref es); 2917PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(-1)); 2920PInvokeCore.SendMessage(this, PInvokeCore.EM_GETLINECOUNT); 2998PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMOUT, (WPARAM)flags, ref es); 3034int expectedLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (WPARAM)pGtl); 3054int actualLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTEX, (WPARAM)pGt, (LPARAM)b); 3092PInvokeCore.SendMessage(this, PInvokeCore.EM_SETOLECALLBACK, 0, (nint)oleCallback); 3095PInvokeCore.DragAcceptFiles(this, fAccept: false); 3106PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32()); 3135case PInvokeCore.WM_SETCURSOR: 3140case PInvokeCore.WM_LBUTTONDOWN: 3187int len = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg); 3203PInvokeCore.SendMessage(this, PInvokeCore.EM_EXLIMITTEXT, 0, (IntPtr)MaxLength); 3250using (BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1)) 3254uint length = PInvokeCore.DragQueryFile(endropfiles, iFile: 0, b, cch: (uint)buffer.Length); 3310case PInvokeCore.EM_SETCHARFORMAT: 3322case PInvokeCore.EM_SETPARAFORMAT: 3323case PInvokeCore.EM_REPLACESEL: 3326case PInvokeCore.EM_STREAMIN: 3337case PInvokeCore.WM_COPY: 3338case PInvokeCore.WM_SETTEXT: 3339case PInvokeCore.EM_EXLIMITTEXT: 3384LRESULT compMode = PInvokeCore.SendMessage(this, PInvokeCore.EM_GETIMECOMPMODE); 3387int textLength = PInvokeCore.GetWindowTextLength(this); 3390PInvokeCore.SendMessage(this, PInvokeCore.WM_KILLFOCUS); 3391PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFOCUS); 3392PInvokeCore.PostMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)(selEnd - 1), (LPARAM)selEnd); 3429case PInvokeCore.WM_PAINT: 3473case PInvokeCore.WM_SETCURSOR: 3495case PInvokeCore.WM_SETFONT: 3499case PInvokeCore.WM_IME_NOTIFY: 3504case PInvokeCore.WM_GETDLGCODE: 3509case PInvokeCore.WM_GETOBJECT: 3523case PInvokeCore.WM_RBUTTONUP: 3534case PInvokeCore.WM_VSCROLL: 3550case PInvokeCore.WM_HSCROLL:
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
176[DispId(PInvokeCore.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\Splitter\Splitter.SplitterMessageFilter.cs (3)
21if (m.MsgInternal < PInvokeCore.WM_KEYFIRST || m.MsgInternal > PInvokeCore.WM_KEYLAST) 26if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.Escape)
System\Windows\Forms\Controls\TabControl\TabControl.cs (23)
384PInvokeCore.SendMessage(this, PInvoke.TCM_ADJUSTRECT, 0, ref rect); 478PInvokeCore.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, handle); 648=> (int)PInvokeCore.SendMessage(this, PInvoke.TCM_GETROWCOUNT); 662get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.TCM_GETCURSEL) : _selectedIndex; 690PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)value); 934PInvokeCore.PostMessage(this, _tabBaseReLayoutMessage); 942PInvokeCore.SendMessage(this, PInvoke.TCM_SETITEMSIZE, 0, PARAM.FromLowHigh(_itemSize.Width, _itemSize.Height)); 1122PInvokeCore.SendMessage(this, PInvoke.TCM_GETITEMRECT, (WPARAM)index, ref rect); 1142PInvokeCore.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, ImageList!.Handle); 1241PInvokeCore.SendMessage(this, PInvoke.TCM_SETPADDING, 0, PARAM.FromPoint(_padding)); 1250PInvokeCore.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, _imageList.Handle); 1255HWND tooltipHwnd = (HWND)PInvokeCore.SendMessage(this, PInvoke.TCM_GETTOOLTIPS); 1302PInvokeCore.EnumChildWindows(this, StyleChildren); 1558PInvokeCore.SendMessage(this, PInvoke.TCM_DELETEALLITEMS); 1593PInvokeCore.SendMessage(this, (PInvoke.TCM_DELETEALLITEMS)); 1611PInvokeCore.SendMessage(this, PInvoke.TCM_DELETEITEM, (WPARAM)index); 1647PInvokeCore.SendMessage(this, PInvoke.TCM_SETTOOLTIPS, (WPARAM)toolTip.Handle); 1666PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)index); 1995PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)_lastSelection); 2042while (PInvokeCore.PeekMessage( 2069case PInvokeCore.WM_NOTIFY: 2115PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width); 2155return (int)PInvokeCore.SendMessage(this, msg, (WPARAM)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (19)
1099PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)pwdChar); 2452if (m.Msg == PInvokeCore.WM_CHAR && ImeWmCharsToIgnore > 0) 2907case PInvokeCore.WM_PRINT: 2910case PInvokeCore.WM_CONTEXTMENU: 2911case (int)PInvokeCore.EM_CANUNDO: 2916case (int)PInvokeCore.EM_SCROLLCARET: // No scroll for single-line control. 2917case (int)PInvokeCore.EM_LIMITTEXT: // Max/Min text is defined by the mask. 2918case (int)PInvokeCore.EM_UNDO: 2919case PInvokeCore.WM_UNDO: 2934case PInvokeCore.WM_IME_STARTCOMPOSITION: 2942case PInvokeCore.WM_IME_ENDCOMPOSITION: 2946case PInvokeCore.WM_IME_COMPOSITION: 2954case PInvokeCore.WM_CUT: 2962case PInvokeCore.WM_COPY: 2966case PInvokeCore.WM_PASTE: 2970case PInvokeCore.WM_CLEAR: 2974case PInvokeCore.WM_KILLFOCUS: 2979case PInvokeCore.WM_SETFOCUS:
System\Windows\Forms\Controls\TextBox\TextBox.cs (9)
338return (char)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETPASSWORDCHAR); 350PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)value); 603PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)_passwordChar); 899case PInvokeCore.WM_LBUTTONDOWN: 911case PInvokeCore.WM_PAINT: 948case PInvokeCore.WM_PRINT:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (70)
276[DispId(PInvokeCore.DISPID_BACKCOLOR)] 347[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 391public bool CanUndo => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CANUNDO) != 0; 495[DispId(PInvokeCore.DISPID_FORECOLOR)] 667bool curState = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETMODIFY) != 0; 689PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)value); 881PInvokeCore.SendMessage(this, PInvokeCore.EM_GETSEL, (WPARAM)(&startResult), ref end); 937PInvokeCore.SendMessage(this, PInvokeCore.EM_SETREADONLY, (WPARAM)(BOOL)value); 1004PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT); 1008PInvokeCore.SendMessage(this, PInvokeCore.EM_REPLACESEL, 0, text); 1011PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY); 1016PInvokeCore.SendMessage(this, PInvokeCore.EM_REPLACESEL, (WPARAM)(-1), text); 1020PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (WPARAM)_maxLength); 1088PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY); 1099=> IsHandleCreated ? PInvokeCore.GetWindowTextLength(this) : Text.Length; 1278PInvokeCore.SendMessage(this, PInvokeCore.EM_EMPTYUNDOBUFFER); 1291public void Copy() => PInvokeCore.SendMessage(this, PInvokeCore.WM_COPY); 1316public void Cut() => PInvokeCore.SendMessage(this, PInvokeCore.WM_CUT); 1387PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)true); 1411public void Paste() => PInvokeCore.SendMessage(this, PInvokeCore.WM_PASTE); 1567int index = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt)); 1597public virtual int GetLineFromCharIndex(int index) => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEFROMCHAR, (WPARAM)index); 1609int i = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index); 1620return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (WPARAM)lineNumber); 1626public int GetFirstCharIndexOfCurrentLine() => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (WPARAM)(-1)); 1648if (PInvokeCore.SendMessage(this, PInvokeCore.EM_GETOLEINTERFACE, 0, (void**)richEdit) == 0) 1650PInvokeCore.SendMessage(this, PInvokeCore.EM_SCROLLCARET); 1677int firstVisibleLine = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETFIRSTVISIBLELINE); 1694PInvokeCore.SendMessage(this, PInvokeCore.EM_SCROLLCARET); 1749PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end); 1862PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end); 1985public void Undo() => PInvokeCore.SendMessage(this, PInvokeCore.EM_UNDO); 1991PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (WPARAM)_maxLength); 1997if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor()) 2032PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN)); 2084case PInvokeCore.WM_LBUTTONDBLCLK: 2091case PInvokeCore.WM_GETDLGCODE: 2094case PInvokeCore.WM_SETFONT: 2097case PInvokeCore.WM_CONTEXTMENU: 2112case PInvokeCore.WM_DESTROY:
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (15)
45PInvokeCore.SendMessage(Owner, PInvokeCore.EM_GETSEL, ref start, ref end); 110if (PInvokeCore.MapWindowPoints((HWND)default, Owner, ref clientLocation) == 0) 210? (int)PInvokeCore.SendMessage(Owner, PInvokeCore.EM_GETFIRSTVISIBLELINE) 235? (int)PInvokeCore.SendMessage(Owner, PInvokeCore.EM_GETLINECOUNT) 301? (int)PInvokeCore.SendMessage(Owner, PInvokeCore.EM_LINEINDEX, (WPARAM)line) 402&& PInvokeCore.SendMessage( 404PInvokeCore.EM_LINESCROLL, 427PInvokeCore.SendMessage(Owner, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end); 441PInvokeCore.SendMessage(Owner, PInvokeCore.EM_GETRECT, (WPARAM)0, ref rectangle);
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (6)
30_cachedItemHDC = PInvokeCore.CreateCompatibleDC(toolStripHDC); 34_cachedItemBitmap = PInvokeCore.CreateCompatibleBitmap(toolStripHDC, bitmapSize.Width, bitmapSize.Height); 35HGDIOBJ oldBitmap = PInvokeCore.SelectObject(_cachedItemHDC, _cachedItemBitmap); 40PInvokeCore.DeleteObject(oldBitmap); 56PInvokeCore.DeleteObject(_cachedItemBitmap); 59PInvokeCore.DeleteDC(_cachedItemHDC);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (4)
569if ((m.Msg == (int)PInvokeCore.WM_NCHITTEST) && SizingGrip) 585PInvokeCore.GetClientRect(rootHwnd, out RECT rootHwndClientArea); 592PInvokeCore.MapWindowPoints(this, rootHwnd, ref gripLocation); 633if (m.MsgInternal == PInvokeCore.WM_NCHITTEST)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (11)
1656[DispId(PInvokeCore.DISPID_TABSTOP)] 2650PInvokeCore.SendMessage( 2652PInvokeCore.WM_PRINT, 2657PInvokeCore.BitBlt( 3545PInvokeCore.BitBlt( 3563PInvokeCore.BitBlt( 4578if (m.MsgInternal == PInvokeCore.WM_SETFOCUS) 4593if (m.MsgInternal == PInvokeCore.WM_KILLFOCUS) 4611if (!AllowClickThrough && m.MsgInternal == PInvokeCore.WM_MOUSEACTIVATE) 4661if (AllowClickThrough && m.MsgInternal == PInvokeCore.WM_MOUSEACTIVATE && m.ResultInternal == PInvoke.MA_ACTIVATEANDEAT) 4666if (m.Msg == (int)PInvokeCore.WM_NCDESTROY)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (6)
28case PInvokeCore.WM_LBUTTONDOWN: 29case PInvokeCore.WM_RBUTTONDOWN: 30case PInvokeCore.WM_MBUTTONDOWN: 31case PInvokeCore.WM_NCLBUTTONDOWN: 32case PInvokeCore.WM_NCRBUTTONDOWN: 33case PInvokeCore.WM_NCMBUTTONDOWN:
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (7)
1431PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ToolStripManager.ModalMenuFilter.ActiveHwnd); 1438PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, DropDownOwnerWindow); 1581HWND foregroundWindow = PInvokeCore.GetForegroundWindow(); 1892case PInvokeCore.WM_NCACTIVATE: 1899case PInvokeCore.WM_ACTIVATE: 1984PInvokeCore.SendMessage(activeWindow, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true, (LPARAM)(-1));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
176HRESULT hr = PInvokeCore.RegisterDragDrop(_owner, new DropTarget(this));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2200if (PInvokeCore.DoDragDrop(dataObjectScope, dropSource, (DROPEFFECT)(uint)allowedEffects, out finalEffect).Failed)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
727if (m.Msg == (int)PInvokeCore.WM_SYSKEYDOWN) 933HWND foregroundWindow = PInvokeCore.GetForegroundWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (19)
322PInvokeCore.MapWindowPoints(hwndMouseMessageIsFrom, activeToolStrip, ref translatedLocation); 496else if (m.Msg is >= ((int)PInvokeCore.WM_NCLBUTTONDOWN) and <= ((int)PInvokeCore.WM_NCMBUTTONDBLCLK)) 562case PInvokeCore.WM_MOUSEMOVE: 563case PInvokeCore.WM_NCMOUSEMOVE: 602case PInvokeCore.WM_LBUTTONDOWN: 603case PInvokeCore.WM_RBUTTONDOWN: 604case PInvokeCore.WM_MBUTTONDOWN: 609case PInvokeCore.WM_NCLBUTTONDOWN: 610case PInvokeCore.WM_NCRBUTTONDOWN: 611case PInvokeCore.WM_NCMBUTTONDOWN: 617case PInvokeCore.WM_KEYDOWN: 618case PInvokeCore.WM_KEYUP: 619case PInvokeCore.WM_CHAR: 620case PInvokeCore.WM_DEADCHAR: 621case PInvokeCore.WM_SYSKEYDOWN: 622case PInvokeCore.WM_SYSKEYUP: 623case PInvokeCore.WM_SYSCHAR: 624case PInvokeCore.WM_SYSDEADCHAR:
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (2)
70PInvokeCore.GetCurrentThreadId()); 93msg->message = PInvokeCore.WM_NULL;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (4)
783PInvokeCore.PostMessage(_targetWindowHandle, PInvokeCore.WM_SYSCOMMAND, (WPARAM)(uint)_nativeMenuCommandID); 790PInvokeCore.PostMessage(_targetWindowHandle, PInvokeCore.WM_COMMAND, (WPARAM)(uint)_nativeMenuCommandID);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (4)
52while (PInvokeCore.PeekMessage( 55PInvokeCore.WM_PAINT, 56PInvokeCore.WM_PAINT, 103if (m.MsgInternal == PInvokeCore.WM_NCHITTEST)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (2)
40if (m.Msg is >= ((int)PInvokeCore.WM_KEYFIRST) and <= ((int)PInvokeCore.WM_KEYLAST))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
215[DispId(PInvokeCore.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (3)
40PInvokeCore.GetClientRect(this, out var clientRect); 125PInvokeCore.CombineRgn(hNonClientRegion, hTotalRegion, hClientRegion, RGN_COMBINE_MODE.RGN_XOR); 273if (m.MsgInternal == PInvokeCore.WM_NCPAINT)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (17)
293PInvokeCore.SendMessage(this, PInvoke.TBM_SETPAGESIZE, 0, value); 423int cyhscroll = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYHSCROLL); 438PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum); 496PInvokeCore.SendMessage(this, PInvoke.TBM_SETLINESIZE, 0, value); 580PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (WPARAM)value); 795PInvokeCore.SendMessage(this, PInvoke.TBM_CLEARTICS, (WPARAM)1, (LPARAM)0); 798LRESULT lresult = PInvokeCore.SendMessage(this, PInvoke.TBM_SETTIC, lParam: (IntPtr)i); 818_value = (int)PInvokeCore.SendMessage(this, PInvokeCore.WM_USER); 862PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum); 863PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)false, (LPARAM)_maximum); 866PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (WPARAM)_tickFrequency); 873PInvokeCore.SendMessage(this, PInvoke.TBM_SETPAGESIZE, (WPARAM)0, (LPARAM)_largeChange); 874PInvokeCore.SendMessage(this, PInvoke.TBM_SETLINESIZE, (WPARAM)0, (LPARAM)_smallChange); 1061PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum); 1062PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum); 1120PInvokeCore.SendMessage(this, PInvoke.TBM_SETPOS, (WPARAM)(BOOL)true, (LPARAM)reflectedValue);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (23)
241if (PInvokeCore.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) == 0) 270if (PInvokeCore.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 0, ref rc) == 0) 313PInvokeCore.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item); 337PInvokeCore.SendMessage(_treeView, PInvoke.TVM_GETITEMW, 0, ref item); 628bool visible = PInvokeCore.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0; 702LRESULT next = PInvokeCore.SendMessage( 860LRESULT prev = PInvokeCore.SendMessage( 972PInvokeCore.SendMessage(tv, PInvoke.TVM_GETITEMW, 0, ref item); 1290PInvokeCore.SendMessage(tv, PInvoke.TVM_EDITLABELW, 0, (LPARAM)HTREEITEMInternal); 1473PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_COLLAPSE, (LPARAM)Handle); 1592PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)cancel); 1661PInvokeCore.SendMessage(tv, PInvoke.TVM_ENSUREVISIBLE, 0, Handle); 1679PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_EXPAND, (LPARAM)Handle); 1877nint editHandle = PInvokeCore.SendMessage(tv, PInvoke.TVM_GETEDITCONTROL); 1882PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)false); 1885HTREEITEMInternal = (HTREEITEM)PInvokeCore.SendMessage(tv, PInvoke.TVM_INSERTITEMW, 0, ref tvis); 1895PInvokeCore.PostMessage(tv, PInvoke.TVM_EDITLABELW, default, (LPARAM)HTREEITEMInternal); 1907PInvokeCore.SendMessage(tv, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 1984PInvokeCore.SendMessage(tv, PInvoke.TVM_DELETEITEM, 0, (LPARAM)HTREEITEMInternal); 2032PInvokeCore.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item); 2180PInvokeCore.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item); 2215PInvokeCore.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item);
System\Windows\Forms\Controls\TreeView\TreeView.cs (86)
201PInvokeCore.SendMessage(this, PInvoke.TVM_SETBKCOLOR, 0, BackColor.ToWin32()); 206PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent); 248[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 315int currentStyle = unchecked((int)((long)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE))); 446PInvokeCore.SendMessage(this, PInvoke.TVM_SETTEXTCOLOR, 0, ForeColor.ToWin32()); 628PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, value is null ? 0 : value.Handle); 741return (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETINDENT); 756PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)value); 757_indent = (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETINDENT); 779return (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT); 814PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)value); 815_itemHeight = (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT); 858int intColor = (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETLINECOLOR); 871PInvokeCore.SendMessage(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32()); 1090IntPtr hItem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_CARET); 1117PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_CARET, (LPARAM)hnode); 1303IntPtr hitem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE); 1319PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE, (LPARAM)hnode); 1339public int VisibleCount => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETVISIBLECOUNT) : 0; 1599PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 1602PInvokeCore.PostMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 1606PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 1622PInvokeCore.SendMessage(toolTip, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width); 1623PInvokeCore.SendMessage(this, PInvoke.TVM_SETTOOLTIPS, (WPARAM)toolTip.Handle); 1642nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi); 1683nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi); 1692PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, handle); 1856int version = (int)PInvokeCore.SendMessage(this, PInvoke.CCM_GETVERSION); 1859PInvokeCore.SendMessage(this, PInvoke.CCM_SETVERSION, 5); 1869int style = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 1871PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style); 1876int style = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 1878PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style); 1885PInvokeCore.SendMessage(this, PInvoke.TVM_SETBKCOLOR, 0, c.ToWin32()); 1892PInvokeCore.SendMessage(this, PInvoke.TVM_SETTEXTCOLOR, 0, c.ToWin32()); 1898PInvokeCore.SendMessage(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32()); 1903PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, _imageList.Handle); 1913PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)_indent); 1918PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)ItemHeight); 1988PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)newImageList.Handle); 1998IntPtr handleOld = PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)handle); 2009IntPtr handle = PInvokeCore.SendMessage(this, PInvoke.TVM_GETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE); 2015PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE); 2059nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip); 2541if (PInvokeCore.SendMessage(this, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0) 2569_labelEdit.AssignHandle(PInvokeCore.SendMessage(this, PInvoke.TVM_GETEDITCONTROL)); 2636PInvokeCore.SendMessage(this, 2674PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE); 2785PInvokeCore.SelectObject(nmtvcd->nmcd.hdc, renderinfo.FontHandle); 2913nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip); 2919PInvokeCore.SendMessage(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds); 2944nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip); 3021nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip); 3051PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)PInvoke.GetMessagePos()); 3103PInvokeCore.PostMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE, (LPARAM)treeNode.Handle); 3116PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE); 3150case PInvokeCore.WM_WINDOWPOSCHANGING: 3151case PInvokeCore.WM_NCCALCSIZE: 3152case PInvokeCore.WM_WINDOWPOSCHANGED: 3153case PInvokeCore.WM_SIZE: 3165case PInvokeCore.WM_HSCROLL: 3174case PInvokeCore.WM_PRINT: 3193PInvokeCore.SendMessage(this, PInvoke.TVM_GETITEMW, 0, ref item1); 3201case PInvokeCore.WM_NOTIFY: 3207PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width); 3232case PInvokeCore.WM_LBUTTONDBLCLK: 3244case PInvokeCore.WM_LBUTTONDOWN: 3262_mouseDownNode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip); 3290case PInvokeCore.WM_LBUTTONUP: 3291case PInvokeCore.WM_RBUTTONUP: 3299nint hnode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi); 3341case PInvokeCore.WM_MBUTTONDBLCLK: 3346case PInvokeCore.WM_MBUTTONDOWN: 3352case PInvokeCore.WM_MOUSELEAVE: 3358case PInvokeCore.WM_RBUTTONDBLCLK: 3370case PInvokeCore.WM_RBUTTONDOWN: 3380_mouseDownNode = PInvokeCore.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhit); 3385case PInvokeCore.WM_SYSCOLORCHANGE: 3386PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent); 3389case PInvokeCore.WM_SETFOCUS: 3405case PInvokeCore.WM_CONTEXTMENU: 3435case PInvokeCore.WM_GETOBJECT:
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
178[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 942case PInvokeCore.WM_SETFOCUS: 965case PInvokeCore.WM_KILLFOCUS:
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (4)
512int dispid = PInvokeCore.DISPID_UNKNOWN; 515hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &dispid); 516if (!hr.Succeeded || dispid == PInvokeCore.DISPID_UNKNOWN) 544PInvokeCore.GetThreadLocale(),
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (4)
581int dispid = PInvokeCore.DISPID_UNKNOWN; 585hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &dispid); 586if (!hr.Succeeded || dispid == PInvokeCore.DISPID_UNKNOWN) 614PInvokeCore.GetThreadLocale(),
System\Windows\Forms\Controls\WebBrowser\HtmlToClrEventProxy.cs (3)
67*pid = PInvokeCore.DISPID_UNKNOWN; 81case PInvokeCore.DISPID_UNKNOWN: 91*pid = PInvokeCore.DISPID_UNKNOWN;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1374case PInvokeCore.WM_CONTEXTMENU:
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (2)
165if (lpMsg->message != PInvokeCore.WM_CHAR && Enum.IsDefined((Shortcut)keyCode)) 192if (dispid != PInvokeCore.DISPID_READYSTATE)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (23)
334message = PInvokeCore.WM_SYSKEYDOWN, 368case PInvokeCore.WM_ERASEBKGND: 370case PInvokeCore.WM_SETCURSOR: 371case PInvokeCore.WM_SYSCOLORCHANGE: 372case PInvokeCore.WM_LBUTTONDBLCLK: 373case PInvokeCore.WM_LBUTTONUP: 374case PInvokeCore.WM_MBUTTONDBLCLK: 375case PInvokeCore.WM_MBUTTONUP: 376case PInvokeCore.WM_RBUTTONDBLCLK: 377case PInvokeCore.WM_RBUTTONUP: 378case PInvokeCore.WM_CONTEXTMENU: 382case PInvokeCore.WM_DRAWITEM: 386case PInvokeCore.WM_COMMAND: 394case PInvokeCore.WM_HELP: 400case PInvokeCore.WM_LBUTTONDOWN: 401case PInvokeCore.WM_MBUTTONDOWN: 402case PInvokeCore.WM_RBUTTONDOWN: 403case PInvokeCore.WM_MOUSEACTIVATE: 415case PInvokeCore.WM_DESTROY: 531AmbientChanged(PInvokeCore.DISPID_AMBIENT_FONT); 541AmbientChanged(PInvokeCore.DISPID_AMBIENT_FORECOLOR); 551AmbientChanged(PInvokeCore.DISPID_AMBIENT_BACKCOLOR); 835HRESULT hr = PInvokeCore.CoCreateInstance(
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.WebBrowserBaseNativeWindow.cs (1)
29case PInvokeCore.WM_WINDOWPOSCHANGING:
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (2)
69s_logPixelsX = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 84s_logPixelsY = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (16)
69HBITMAP hbitmapTemp = PInvokeCore.CreateBitmap(8, 8, 1, 1, patternBits); 82PInvokeCore.DeleteObject(hbitmapTemp); 112PInvokeCore.SetBkMode(dc, BACKGROUND_MODE.TRANSPARENT); 116PInvokeCore.SetBkColor(dc, backColor); 131PInvokeCore.SetTextColor(dc, textColor); 160savedColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 171PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlDark)); 181PInvokeCore.SetBkColor(dc, savedColor); 189int itemHeight = (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT); 191PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)itemHeight); 255PInvokeCore.DeleteObject(_hbrushDither); 262HGDIOBJ hbrushOld = PInvokeCore.SelectObject(dc, _hbrushDither); 266COLORREF oldTextColor = PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 267COLORREF oldBackColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control)); 270PInvokeCore.SetTextColor(dc, oldTextColor); 271PInvokeCore.SetBkColor(dc, oldBackColor);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (10)
17private const int CDM_SETDEFAULTFOCUS = (int)PInvokeCore.WM_USER + 0x51; 66if (msg == (int)PInvokeCore.WM_INITDIALOG) 75else if (msg == (int)PInvokeCore.WM_SETFOCUS) 77PInvokeCore.PostMessage((HWND)hWnd, CDM_SETDEFAULTFOCUS); 97PInvokeCore.GetWindowRect(hwnd, out var r); 146return PInvokeCore.CallWindowProc((void*)_priorWindowProcedure, (HWND)hWnd, (uint)msg, (nuint)wparam, lparam); 215if (s_helpMessage == PInvokeCore.WM_NULL) 225_priorWindowProcedure = PInvokeCore.SetWindowLong( 243nint currentSubClass = PInvokeCore.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 246PInvokeCore.SetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (5)
154private protected string DialogCaption => PInvokeCore.GetWindowText(_dialogHWnd); 494if (msg != (int)PInvokeCore.WM_NOTIFY) 511int sizeNeeded = (int)PInvokeCore.SendMessage(_dialogHWnd, PInvoke.CDM_GETSPEC); 549PInvokeCore.SetWindowLong((HWND)hWnd, 0, -1); 556PInvokeCore.SetWindowLong((HWND)hWnd, 0, -1);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (5)
290PInvokeCore.CoCreateInstance( 498PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETEXPANDED, (WPARAM)(BOOL)true, instance._initialDirectory); 504PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETSELECTIONW, (WPARAM)(BOOL)true, instance.SelectedPath); 514using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH + 1]); 518PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_ENABLEOK, 0, (nint)(BOOL)isFileSystemFolder);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (4)
306case PInvokeCore.WM_COMMAND: 313PInvokeCore.SendMessage((HWND)hWnd, PInvokeCore.WM_CHOOSEFONT_GETLOGFONT, (WPARAM)0, ref logFont); 343case PInvokeCore.WM_INITDIALOG:
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
168HRESULT hr = PInvokeCore.CoCreateInstance(
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (1)
166HRESULT hr = PInvokeCore.CoCreateInstance(
System\Windows\Forms\Dialogs\MessageBox.cs (2)
491PInvokeCore.SendMessage(handle, PInvokeCore.WM_SETFOCUS);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (5)
67private const uint ContinueButtonClickHandlingMessage = PInvokeCore.WM_APP + 0x3FFF; 246PInvokeCore.GetWindowThreadProcessId(_handle, out _) != PInvokeCore.GetCurrentThreadId(); 1042if (PInvokeCore.PostMessage(hWnd, ContinueButtonClickHandlingMessage)) 1667PInvokeCore.SendMessage(
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
202PInvokeCore.DestroyIcon(handle);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (10)
121PInvokeCore.SendMessage( 131PInvokeCore.SendMessage(_tipWindow, PInvoke.TTM_SETDELAYTIME, (WPARAM)PInvoke.TTDT_INITIAL); 166PInvokeCore.SetMapMode(hdc, HDC_MAP_MODE.MM_ANISOTROPIC); 171PInvokeCore.GetViewportOrgEx(hdc, &originalOrigin); 190PInvokeCore.DrawIconEx( 395if (m.Msg == (int)PInvokeCore.WM_GETOBJECT && m.LParamInternal == PInvoke.UiaRootObjectId) 419case PInvokeCore.WM_GETOBJECT: 422case PInvokeCore.WM_NOTIFY: 430case PInvokeCore.WM_ERASEBKGND: 432case PInvokeCore.WM_PAINT:
System\Windows\Forms\Form.cs (72)
286public static Form? ActiveForm => FromHandle(PInvokeCore.GetForegroundWindow()) as Form; 314IntPtr hwnd = PInvokeCore.SendMessage(_ctlClient, PInvokeCore.WM_MDIGETACTIVE); 653[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 1595PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, cp.ExStyle); 1984[DispId(PInvokeCore.DISPID_TABSTOP)] 2184PInvokeCore.SendMessage(this, PInvokeCore.WM_SHOWWINDOW, (WPARAM)(BOOL)value); 2828PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (WPARAM)HWND); 3106PInvokeCore.GetClientRect(this, out RECT currentClient); 3133PInvokeCore.GetClientRect(this, out currentClient); 3251PInvokeCore.SendMessage(this, PInvokeCore.WM_CLOSE); 3407PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, TaskbarOwner); 3414PInvokeCore.SendMessage(TaskbarOwner, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle); 3765PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, this); 3903HWND ownerHandle = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 3909PInvokeCore.GetWindowRect(ownerHandle, out var ownerRect); 3958hWndOwner = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 4391&& PInvokeCore.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETSNAPTODEFBUTTON, ref data) 4924PInvokeCore.EnumCurrentThreadWindows(callback.Callback); 5134PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (WPARAM)HWND); 5489if (PInvokeCore.GetWindowLong(ownerHwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == HWND) 5495PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd); 5712PInvokeCore.SendMessage(captureHwnd, PInvokeCore.WM_CANCELMODE); 5743if (PInvokeCore.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == Handle) 5762PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd); 6128PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd); 6201PInvokeCore.SendMessage(_ctlClient, PInvokeCore.WM_MDISETMENU, (WPARAM)dummyMenu.Value); 6471PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL, (LPARAM)_smallIcon.Handle); 6474PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle); 6478PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL); 6479PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG); 6680if (m.Msg != (int)PInvokeCore.WM_ENDSESSION) 6759if (m.MsgInternal == PInvokeCore.WM_QUERYENDSESSION) 6781if (m.Msg != (int)PInvokeCore.WM_QUERYENDSESSION) 7135case PInvokeCore.WM_NCACTIVATE: 7138case PInvokeCore.WM_NCLBUTTONDOWN: 7139case PInvokeCore.WM_NCRBUTTONDOWN: 7140case PInvokeCore.WM_NCMBUTTONDOWN: 7141case PInvokeCore.WM_NCXBUTTONDOWN: 7144case PInvokeCore.WM_ACTIVATE: 7147case PInvokeCore.WM_MDIACTIVATE: 7150case PInvokeCore.WM_CLOSE: 7159case PInvokeCore.WM_QUERYENDSESSION: 7160case PInvokeCore.WM_ENDSESSION: 7164case PInvokeCore.WM_ENTERSIZEMOVE: 7168case PInvokeCore.WM_EXITSIZEMOVE: 7172case PInvokeCore.WM_CREATE: 7175case PInvokeCore.WM_ERASEBKGND: 7179case PInvokeCore.WM_NCDESTROY: 7182case PInvokeCore.WM_NCHITTEST: 7185case PInvokeCore.WM_SHOWWINDOW: 7188case PInvokeCore.WM_SIZE: 7191case PInvokeCore.WM_SYSCOMMAND: 7194case PInvokeCore.WM_GETMINMAXINFO: 7197case PInvokeCore.WM_WINDOWPOSCHANGED: 7203case PInvokeCore.WM_ENTERMENULOOP: 7206case PInvokeCore.WM_EXITMENULOOP: 7209case PInvokeCore.WM_CAPTURECHANGED: 7222case PInvokeCore.WM_GETDPISCALEDSIZE: 7225case PInvokeCore.WM_DPICHANGED:
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (3)
25HWND parent = (HWND)PInvokeCore.GetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 44nint oldValue = PInvokeCore.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, 0); 57PInvokeCore.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd);
System\Windows\Forms\Help\Help.cs (1)
224Span<char> buffer = stackalloc char[(int)PInvokeCore.MAX_PATH + 1];
System\Windows\Forms\Input\Cursor.cs (10)
172using ICONINFO info = PInvokeCore.GetIconInfo(this); 225return (nint)PInvokeCore.CopyCursor(this, sz.Width, sz.Height, IMAGE_FLAGS.LR_DEFAULTCOLOR); 306PInvokeCore.DrawIcon(dc, targetX, targetY, this); 322PInvokeCore.DrawIcon(dc, targetX, targetY, this); 335PInvokeCore.DrawIconEx( 379using ICONINFO info = PInvokeCore.GetIconInfo(iconHandle); 382PInvokeCore.GetObject(info.hbmColor, out BITMAP bitmap); 387PInvokeCore.GetObject(info.hbmMask, out BITMAP bitmap); 406PInvokeCore.OleCreatePictureIndirect(lpPictDesc: null, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure(); 421_handle = (HCURSOR)PInvokeCore.CopyImage(
System\Windows\Forms\Input\InputLanguage.cs (1)
63PInvokeCore.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETDEFAULTINPUTLANG, ref handle);
System\Windows\Forms\Internal\Win32WindowExtensions.cs (1)
10WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
161string windowText = PInvokeCore.GetWindowText(hwnd); 286PInvokeCore.MapWindowPoints(fromControl, toControl, ref point);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
688PInvokeCore.GetClientRect(this, out RECT clientRectangle); 2026case PInvokeCore.WM_SETFOCUS:
System\Windows\Forms\Layout\Containers\SplitContainer.cs (8)
235[DispId(PInvokeCore.DISPID_BORDERSTYLE)] 452PInvokeCore.GetWindowRect(this, out var r); 455PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT); 817[DispId(PInvokeCore.DISPID_TABSTOP)] 2403case PInvokeCore.WM_SETCURSOR: 2406case PInvokeCore.WM_SETFOCUS: 2410case PInvokeCore.WM_KILLFOCUS:
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerMessageFilter.cs (4)
19if (m.MsgInternal < PInvokeCore.WM_KEYFIRST || m.MsgInternal > PInvokeCore.WM_KEYLAST) 24if ((m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.Escape) 25|| (m.MsgInternal == PInvokeCore.WM_SYSKEYDOWN))
System\Windows\Forms\MDI\MDIClient.cs (12)
148PInvokeCore.SendMessage(this, PInvokeCore.WM_MDICASCADE); 151PInvokeCore.SendMessage(this, PInvokeCore.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_VERTICAL); 154PInvokeCore.SendMessage(this, PInvokeCore.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_HORIZONTAL); 157PInvokeCore.SendMessage(this, PInvokeCore.WM_MDIICONARRANGE); 298if (PInvokeCore.CombineRgn(rgn1, rgn1, rgn2, RGN_COMBINE_MODE.RGN_DIFF) == GDI_REGION_TYPE.RGN_ERROR) 328case PInvokeCore.WM_CREATE: 336case PInvokeCore.WM_SETFOCUS: 360case PInvokeCore.WM_KILLFOCUS:
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
80HICON hIcon = (HICON)PInvokeCore.SendMessage(GetSafeHandle(_target), PInvokeCore.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
System\Windows\Forms\NativeWindow.cs (26)
107uint id = PInvokeCore.GetWindowThreadProcessId(handle, out _); 139PInvokeCore.PostMessage(handle, PInvokeCore.WM_CLOSE); 284PInvokeCore.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_ID, id); 303_priorWindowProcHandle = (void*)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 311PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _windowProc); 312_windowProcHandle = (void*)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 318&& ((WINDOW_STYLE)(uint)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD) 319&& PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_ID) == 0) 321PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_ID, hwnd); 369if (msg == PInvokeCore.WM_NCDESTROY) 507m.ResultInternal = PInvokeCore.DefWindowProc(m.HWND, (uint)m.Msg, m.WParamInternal, m.LParamInternal); 511m.ResultInternal = PInvokeCore.CallWindowProc( 538PInvokeCore.PostMessage(this, PInvokeCore.WM_CLOSE); 617PInvokeCore.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc); 618PInvokeCore.SetClassLong(handle, GET_CLASS_LONG_INDEX.GCL_WNDPROC, DefaultWindowProc); 619PInvokeCore.PostMessage(handle, PInvokeCore.WM_CLOSE); 841void* currentWindowProc = (void*)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 849PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, (nint)_priorWindowProcHandle); 860PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc); 867PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, PreviousWindow._windowProc!); 886PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc); 898case PInvokeCore.WM_DPICHANGED_BEFOREPARENT: 903case PInvokeCore.WM_DPICHANGED_AFTERPARENT:
System\Windows\Forms\NativeWindow.WindowClass.cs (2)
47PInvokeCore.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _defaultWindProc); 134windowClass.hbrBackground = (HBRUSH)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
System\Windows\Forms\NotifyIcon.cs (16)
31private const int WM_TRAYMOUSEMESSAGE = (int)PInvokeCore.WM_USER + 1024; 406PInvokeCore.PostMessage(_window, PInvokeCore.WM_CLOSE); 734case PInvokeCore.WM_LBUTTONDBLCLK: 737case PInvokeCore.WM_LBUTTONDOWN: 740case PInvokeCore.WM_LBUTTONUP: 743case PInvokeCore.WM_MBUTTONDBLCLK: 746case PInvokeCore.WM_MBUTTONDOWN: 749case PInvokeCore.WM_MBUTTONUP: 752case PInvokeCore.WM_MOUSEMOVE: 755case PInvokeCore.WM_RBUTTONDBLCLK: 758case PInvokeCore.WM_RBUTTONDOWN: 761case PInvokeCore.WM_RBUTTONUP: 784case PInvokeCore.WM_COMMAND: 799case PInvokeCore.WM_DESTROY: 804case PInvokeCore.WM_INITMENUPOPUP:
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (2)
31PInvokeCore.PostMessage(this, PInvokeCore.WM_CLOSE);
System\Windows\Forms\OLE\DropSource.cs (2)
103_lastHwndTargetThreadId = PInvokeCore.GetWindowThreadProcessId(hwndTarget, lpdwProcessId: null); 119private bool IsDropTargetWindowInCurrentThread() => _lastHwndTargetThreadId == PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\OLE\WinFormsOleServices.cs (4)
118PInvokeCore.ReleaseStgMedium(ref medium); 151PInvokeCore.OleGetClipboard(dataObject); 154PInvokeCore.OleSetClipboard(dataObject); 157PInvokeCore.OleFlushClipboard();
System\Windows\Forms\Panels\Panel.cs (1)
96[DispId(PInvokeCore.DISPID_BORDERSTYLE)]
System\Windows\Forms\Printing\PageSetupDialog.cs (2)
345PInvokeCore.GlobalFree(dialogSettings.hDevMode); 346PInvokeCore.GlobalFree(dialogSettings.hDevNames);
System\Windows\Forms\Printing\PrintDialog.cs (5)
341PInvokeCore.GlobalFree(dialogSettings->hDevMode); 342PInvokeCore.GlobalFree(dialogSettings->hDevNames); 415HRESULT hr = PInvokeCore.PrintDlgEx(&dialogSettings); 453PInvokeCore.GlobalFree(dialogSettings.hDevMode); 458PInvokeCore.GlobalFree(dialogSettings.hDevNames);
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
285[DispId(PInvokeCore.DISPID_TABSTOP)] 478PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX), 479PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY)); 1079case PInvokeCore.WM_KEYDOWN:
System\Windows\Forms\Rendering\ControlPaint.cs (22)
185PInvokeCore.GetObject(palette, out uint entryCount); 205PInvokeCore.GetPaletteEntries(palette, entries); 219PInvokeCore.DeleteObject(palette); 222hbitmap = PInvokeCore.CreateDIBSection( 241HGDIOBJ previousBitmap = PInvokeCore.SelectObject(dc, hbitmap); 247PInvokeCore.DeleteObject(previousBitmap); 257PInvokeCore.DeleteObject(hbitmap); 320return (IntPtr)PInvokeCore.CreateBitmap(size.Width, size.Height, nPlanes: 1, nBitCount: 1, pBits); 346PInvokeCore.SetBkColor(targetDC, (COLORREF)0x00ffffff); // white 347PInvokeCore.SetTextColor(targetDC, (COLORREF)0x00000000); // black 348PInvokeCore.BitBlt(targetDC, x: 0, y: 0, size.Width, size.Height, sourceDC, x1: 0, y1: 0, (ROP_CODE)0x220326); 1827PInvokeCore.GetDesktopWindow(), 1833FrameStyle.Dashed => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value, 1834FrameStyle.Thick => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value, 1839using SelectObjectScope brushSelection = new(desktopDC, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH)); 1842PInvokeCore.SetBkColor(desktopDC, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor)); 1843PInvokeCore.Rectangle(desktopDC, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 1854PInvokeCore.GetDesktopWindow(), 1858using ObjectScope pen = new(PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor))); 1860using SelectObjectScope brushSelection = new(desktopDC, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH)); 2104PInvokeCore.GetDesktopWindow(), 2108using ObjectScope brush = new(PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(backColor)));
System\Windows\Forms\Rendering\DCMapping.cs (5)
37_savedState = PInvokeCore.SaveDC(hdc); 41bool success = PInvokeCore.GetViewportOrgEx(hdc, &viewportOrg); 79GDI_REGION_TYPE combineResult = PInvokeCore.CombineRgn( 97GDI_REGION_TYPE selectResult = PInvokeCore.SelectClipRgn(hdc, clippingRegion); 111PInvokeCore.RestoreDC(_hdc, _savedState);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (2)
54OBJ_TYPE type = (OBJ_TYPE)PInvokeCore.GetObjectType(dc); 141PInvokeCore.SelectPalette(_hdc, _oldPalette, bForceBkgd: false);
System\Windows\Forms\Rendering\FontCache.Data.cs (3)
56PInvokeCore.DeleteObject(HFONT); 111HFONT hfont = PInvokeCore.CreateFontIndirect(&logFont); 118hfont = PInvokeCore.CreateFontIndirect(&logFont);
System\Windows\Forms\Rendering\GdiCache.cs (1)
63OBJ_TYPE type = (OBJ_TYPE)PInvokeCore.GetObjectType(scope.HDC);
System\Windows\Forms\Rendering\ScreenDcCache.cs (6)
56return new ScreenDcScope(this, PInvokeCore.CreateCompatibleDC(default)); 80PInvokeCore.DeleteDC((HDC)temp); 92PInvokeCore.DeleteDC((HDC)hdc); 104PInvokeCore.DeleteObject(hrgn); 107PInvokeCore.GetViewportOrgEx(hdc, &point); 114Debug.Assert(PInvokeCore.GetWorldTransform(hdc, (XFORM*)(void*)&matrix));
System\Windows\Forms\Screen.cs (11)
74PInvokeCore.GetMonitorInfo(monitor, (MONITORINFO*)&info); 76_primary = ((info.monitorInfo.dwFlags & PInvokeCore.MONITORINFOF_PRIMARY) != 0); 82screenDC = PInvokeCore.CreateDCW(_deviceName, pwszDevice: null, pszPort: null, pdm: null); 88_bitDepth = PInvokeCore.GetDeviceCaps(screenDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL); 89_bitDepth *= PInvokeCore.GetDeviceCaps(screenDC, GET_DEVICE_CAPS_INDEX.PLANES); 93PInvokeCore.DeleteDC(screenDC); 109PInvokeCore.EnumDisplayMonitors((HMONITOR hmonitor, HDC hdc) => 205PInvokeCore.GetMonitorInfo(_hmonitor, (MONITORINFO*)&info); 251? new Screen(PInvokeCore.MonitorFromPoint(point, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST)) 259? new Screen(PInvokeCore.MonitorFromRect(rect, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST)) 277? new Screen(PInvokeCore.MonitorFromWindow((HWND)hwnd, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
System\Windows\Forms\Scrolling\ScrollableControl.cs (5)
1227PInvokeCore.SendMessage( 1229PInvokeCore.WM_HSCROLL, 1461case PInvokeCore.WM_VSCROLL: 1464case PInvokeCore.WM_HSCROLL: 1467case PInvokeCore.WM_SETTINGCHANGE:
System\Windows\Forms\Scrolling\ScrollBar.cs (6)
727case PInvokeCore.WM_ERASEBKGND: 730case PInvokeCore.WM_SIZE: 735PInvokeCore.SendMessage(this, PInvokeCore.WM_KILLFOCUS); 736PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFOCUS);
System\Windows\Forms\SendKeys\SendKeys.cs (29)
140AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ShiftKey, startNewChar, hwnd)); 147AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, startNewChar, hwnd)); 154AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.Menu, startNewChar, hwnd)); 167AddEvent(new SKEvent(PInvokeCore.WM_CHAR, character, (oemVal & 0xFFFF), hwnd)); 186AddEvent(new SKEvent(altnoctrldown ? PInvokeCore.WM_SYSKEYDOWN : PInvokeCore.WM_KEYDOWN, (uint)vk, s_startNewChar, hwnd)); 187AddEvent(new SKEvent(altnoctrldown ? PInvokeCore.WM_SYSKEYUP : PInvokeCore.WM_KEYUP, (uint)vk, s_startNewChar, hwnd)); 199AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ShiftKey, false, hwnd)); 205AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ControlKey, false, hwnd)); 211AddEvent(new SKEvent(PInvokeCore.WM_SYSKEYUP, (int)Keys.Menu, false, hwnd)); 488AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ShiftKey, s_startNewChar, hwnd)); 495AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd)); 502AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.Menu, s_startNewChar, hwnd)); 529AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ShiftKey, s_startNewChar, hwnd)); 540AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd)); 552haveKeys.HaveCtrl != 0 ? PInvokeCore.WM_KEYDOWN : PInvokeCore.WM_SYSKEYDOWN, 679if (skEvent.WM == PInvokeCore.WM_CHAR) 697if (skEvent.WM == PInvokeCore.WM_KEYUP || skEvent.WM == PInvokeCore.WM_SYSKEYUP) 765if ((skEvent.WM == PInvokeCore.WM_KEYUP) || (skEvent.WM == PInvokeCore.WM_SYSKEYUP)) 769else if ((skEvent.WM == PInvokeCore.WM_KEYDOWN) || (skEvent.WM == PInvokeCore.WM_SYSKEYDOWN)) 794AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ShiftKey, false, default)); 798AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ControlKey, false, default)); 802AddEvent(new SKEvent(PInvokeCore.WM_SYSKEYUP, (int)Keys.Menu, false, default)); 830if (skEvent.WM == PInvokeCore.WM_KEYDOWN)
System\Windows\Forms\SendKeys\SendKeys.SKWindow.cs (1)
23if (m.Msg == (int)PInvokeCore.WM_CANCELJOURNAL)
System\Windows\Forms\StringSource.cs (1)
29PInvokeCore.CoCreateInstance(
System\Windows\Forms\SystemInformation.cs (84)
33=> PInvokeCore.SystemParametersInfoBool(SPI_GETDRAGFULLWINDOWS); 43return PInvokeCore.SystemParametersInfo(ref data) 52=> PInvokeCore.SystemParametersInfoInt(SPI_GETWHEELSCROLLLINES); 62public static int VerticalScrollBarWidth => PInvokeCore.GetSystemMetrics(SM_CXVSCROLL); 70: PInvokeCore.GetSystemMetrics(SM_CXVSCROLL); 75public static int HorizontalScrollBarHeight => PInvokeCore.GetSystemMetrics(SM_CYHSCROLL); 83: PInvokeCore.GetSystemMetrics(SM_CYHSCROLL); 88public static int CaptionHeight => PInvokeCore.GetSystemMetrics(SM_CYCAPTION); 114public static int VerticalScrollBarThumbHeight => PInvokeCore.GetSystemMetrics(SM_CYVTHUMB); 119public static int HorizontalScrollBarThumbWidth => PInvokeCore.GetSystemMetrics(SM_CXHTHUMB); 149? PInvokeCore.TrySystemParametersInfoForDpi(ref data, dpi) 150: PInvokeCore.SystemParametersInfo(ref data); 171public static int MenuHeight => PInvokeCore.GetSystemMetrics(SM_CYMENU); 186PInvokeCore.SystemParametersInfo(SPI_GETWORKAREA, ref workingArea); 195public static int KanjiWindowHeight => PInvokeCore.GetSystemMetrics(SM_CYKANJIWINDOW); 201public static bool MousePresent => PInvokeCore.GetSystemMetrics(SM_MOUSEPRESENT) != 0; 206public static int VerticalScrollBarArrowHeight => PInvokeCore.GetSystemMetrics(SM_CYVSCROLL); 217public static int HorizontalScrollBarArrowWidth => PInvokeCore.GetSystemMetrics(SM_CXHSCROLL); 225: PInvokeCore.GetSystemMetrics(SM_CXHSCROLL); 230public static bool DebugOS => PInvokeCore.GetSystemMetrics(SM_DEBUG) != 0; 236public static bool MouseButtonsSwapped => PInvokeCore.GetSystemMetrics(SM_SWAPBUTTON) != 0; 279public static bool RightAlignedMenus => PInvokeCore.GetSystemMetrics(SM_MENUDROPALIGNMENT) != 0; 284public static bool PenWindows => PInvokeCore.GetSystemMetrics(SM_PENWINDOWS) != 0; 290public static bool DbcsEnabled => PInvokeCore.GetSystemMetrics(SM_DBCSENABLED) != 0; 295public static int MouseButtons => PInvokeCore.GetSystemMetrics(SM_CMOUSEBUTTONS); 300public static bool Secure => PInvokeCore.GetSystemMetrics(SM_SECURE) != 0; 320public static int ToolWindowCaptionHeight => PInvokeCore.GetSystemMetrics(SM_CYSMCAPTION); 344int compoundValue = PInvokeCore.GetSystemMetrics(SM_ARRANGE); 358int compoundValue = PInvokeCore.GetSystemMetrics(SM_ARRANGE); 383public static bool Network => (PInvokeCore.GetSystemMetrics(SM_NETWORK) & 0x00000001) != 0; 385public static bool TerminalServerSession => (PInvokeCore.GetSystemMetrics(SM_REMOTESESSION) & 0x00000001) != 0; 390public static BootMode BootMode => (BootMode)PInvokeCore.GetSystemMetrics(SM_CLEANBOOT); 403public static bool ShowSounds => PInvokeCore.GetSystemMetrics(SM_SHOWSOUNDS) != 0; 413public static bool MidEastEnabled => PInvokeCore.GetSystemMetrics(SM_MIDEASTENABLED) != 0; 421s_multiMonitorSupport = PInvokeCore.GetSystemMetrics(SM_CMONITORS) != 0; 439public static bool NativeMouseWheelSupport => PInvokeCore.GetSystemMetrics(SM_MOUSEWHEELPRESENT) != 0; 455return new(PInvokeCore.GetSystemMetrics(SM_XVIRTUALSCREEN), 456PInvokeCore.GetSystemMetrics(SM_YVIRTUALSCREEN), 457PInvokeCore.GetSystemMetrics(SM_CXVIRTUALSCREEN), 458PInvokeCore.GetSystemMetrics(SM_CYVIRTUALSCREEN)); 469public static int MonitorCount => MultiMonitorSupport ? PInvokeCore.GetSystemMetrics(SM_CMONITORS) : 1; 475=> !MultiMonitorSupport || PInvokeCore.GetSystemMetrics(SM_SAMEDISPLAYFORMAT) != 0; 529public static bool IsDropShadowEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETDROPSHADOW); 534public static bool IsFlatMenuEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETFLATMENU); 539public static bool IsFontSmoothingEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETFONTSMOOTHING); 544public static int FontSmoothingContrast => PInvokeCore.SystemParametersInfoInt(SPI_GETFONTSMOOTHINGCONTRAST); 549public static int FontSmoothingType => PInvokeCore.SystemParametersInfoInt(SPI_GETFONTSMOOTHINGTYPE); 554public static int IconHorizontalSpacing => PInvokeCore.SystemParametersInfoInt(SPI_ICONHORIZONTALSPACING); 559public static int IconVerticalSpacing => PInvokeCore.SystemParametersInfoInt(SPI_ICONVERTICALSPACING); 564public static bool IsIconTitleWrappingEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETICONTITLEWRAP); 569public static bool MenuAccessKeysUnderlined => PInvokeCore.SystemParametersInfoBool(SPI_GETKEYBOARDCUES); 576public static int KeyboardDelay => PInvokeCore.SystemParametersInfoInt(SPI_GETKEYBOARDDELAY); 582public static bool IsKeyboardPreferred => PInvokeCore.SystemParametersInfoBool(SPI_GETKEYBOARDPREF); 588public static int KeyboardSpeed => PInvokeCore.SystemParametersInfoInt(SPI_GETKEYBOARDSPEED); 595=> new(PInvokeCore.SystemParametersInfoInt(SPI_GETMOUSEHOVERWIDTH), 596PInvokeCore.SystemParametersInfoInt(SPI_GETMOUSEHOVERHEIGHT)); 602public static int MouseHoverTime => PInvokeCore.SystemParametersInfoInt(SPI_GETMOUSEHOVERTIME); 607public static int MouseSpeed => PInvokeCore.SystemParametersInfoInt(SPI_GETMOUSESPEED); 612public static bool IsSnapToDefaultEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETSNAPTODEFBUTTON); 618=> PInvokeCore.SystemParametersInfoBool(SPI_GETMENUDROPALIGNMENT) 624public static bool IsMenuFadeEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETMENUFADE); 630public static int MenuShowDelay => PInvokeCore.SystemParametersInfoInt(SPI_GETMENUSHOWDELAY); 635public static bool IsComboBoxAnimationEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETCOMBOBOXANIMATION); 640public static bool IsTitleBarGradientEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETGRADIENTCAPTIONS); 645public static bool IsHotTrackingEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETHOTTRACKING); 650public static bool IsListBoxSmoothScrollingEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETLISTBOXSMOOTHSCROLLING); 655public static bool IsMenuAnimationEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETMENUANIMATION); 660public static bool IsSelectionFadeEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETSELECTIONFADE); 665public static bool IsToolTipAnimationEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETTOOLTIPANIMATION); 670public static bool UIEffectsEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETUIEFFECTS); 675public static bool IsActiveWindowTrackingEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETACTIVEWINDOWTRACKING); 680public static int ActiveWindowTrackingDelay => PInvokeCore.SystemParametersInfoInt(SPI_GETACTIVEWNDTRKTIMEOUT); 685public static bool IsMinimizeRestoreAnimationEnabled => PInvokeCore.SystemParametersInfoBool(SPI_GETANIMATION); 690public static int BorderMultiplierFactor => PInvokeCore.SystemParametersInfoInt(SPI_GETBORDER); 700public static int CaretWidth => PInvokeCore.SystemParametersInfoInt(SPI_GETCARETWIDTH); 707public static int VerticalFocusThickness => PInvokeCore.GetSystemMetrics(SM_CYFOCUSBORDER); 712public static int HorizontalFocusThickness => PInvokeCore.GetSystemMetrics(SM_CXFOCUSBORDER); 717public static int VerticalResizeBorderThickness => PInvokeCore.GetSystemMetrics(SM_CYSIZEFRAME); 722public static int HorizontalResizeBorderThickness => PInvokeCore.GetSystemMetrics(SM_CXSIZEFRAME); 755return PInvokeCore.SystemParametersInfo(ref data) 768return PInvokeCore.SystemParametersInfo(ref data) 783return PInvokeCore.SystemParametersInfo(ref data) 815=> new(PInvokeCore.GetSystemMetrics(x), PInvokeCore.GetSystemMetrics(y));
System\Windows\Forms\Timer.cs (6)
241return PInvokeCore.GetWindowThreadProcessId(hwnd, out _) != PInvokeCore.GetCurrentThreadId(); 284PInvokeCore.PostMessage(hwnd, PInvokeCore.WM_CLOSE); 347if (m.MsgInternal == PInvokeCore.WM_TIMER) 355else if (m.MsgInternal == PInvokeCore.WM_CLOSE)
System\Windows\Forms\ToolTip\ToolTip.cs (39)
117PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)value); 183PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)_backColor); 252PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)_foreColor); 437PInvokeCore.SendMessage(this, PInvoke.TTM_SETTITLEW, (uint)_toolTipIcon, title); 441PInvokeCore.SendMessage(this, PInvoke.TTM_UPDATE); 465PInvokeCore.SendMessage(this, PInvoke.TTM_SETTITLEW, (uint)_toolTipIcon, _toolTipTitle); 469PInvokeCore.SendMessage(this, PInvoke.TTM_UPDATE); 726int style = unchecked((int)((long)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE))); 728PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style); 732PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width); 771PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)_active); 775PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)BackColor); 780PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)ForeColor); 787PInvokeCore.SendMessage(this, PInvoke.TTM_SETTITLEW, (WPARAM)(int)_toolTipIcon, title); 964return (int)PInvokeCore.SendMessage(this, PInvoke.TTM_GETDELAYTIME, (WPARAM)type); 1181PInvokeCore.SendMessage(this, PInvoke.TTM_SETDELAYTIME, (WPARAM)type, (LPARAM)time); 1311PInvokeCore.GetWindowRect(associatedControl, out var rect); 1409PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out var r); 1429PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out var r); 1447PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out var r); 1465PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out var r); 1709PInvokeCore.SendMessage(this, PInvoke.TTM_TRACKPOSITION, 0, PARAM.FromLowHigh(pointX, pointY)); 1983PInvokeCore.GetWindowRect(this, out var rectangle); 2001PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out var r); 2035PInvokeCore.GetWindowRect(this, out var rect); 2054AnnounceText(toolControl, PInvokeCore.GetWindowText(this)); 2061PInvokeCore.GetWindowRect(this, out rect); 2067PInvokeCore.SendMessage(this, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref rect); 2084PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, maxwidth); 2234PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width); 2281case (int)PInvokeCore.WM_WINDOWPOSCHANGING: 2285case (int)PInvokeCore.WM_WINDOWPOSCHANGED: 2293case (int)PInvokeCore.WM_MOUSEACTIVATE: 2297case (int)PInvokeCore.WM_MOVE: 2305case (int)PInvokeCore.WM_PRINTCLIENT: 2306goto case (int)PInvokeCore.WM_PAINT; 2308case (int)PInvokeCore.WM_PAINT: 2325font = Font.FromHfont(PInvokeCore.SendMessage(this, PInvokeCore.WM_GETFONT));
System\Windows\Forms\UserControl.cs (1)
323case PInvokeCore.WM_SETFOCUS:
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
470PInvokeCore.DeleteObject(hrgn);
System\Windows\Forms\WindowSubclassHandler.cs (4)
97_originalWindowProc = (void*)PInvokeCore.SetWindowLong( 186void* currentWindowProcedure = (void*)PInvokeCore.GetWindowLong( 206if (PInvokeCore.SetWindowLong( 231m.ResultInternal = PInvokeCore.CallWindowProc(
System.Windows.Forms.Design (300)
System\ComponentModel\Design\ByteViewer.cs (4)
402bufferSize = PInvokeCore.MultiByteToWideChar(PInvokeCore.CP_ACP, 0, (PCSTR)pDataBuff, _dataBuf.Length, null, 0); 406size = PInvokeCore.MultiByteToWideChar(PInvokeCore.CP_ACP, 0, (PCSTR)pDataBuff, bufferSize, pText, bufferSize);
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (8)
48case PInvokeCore.WM_KEYDOWN: 69PInvokeCore.SendMessage(PInvoke.GetFocus(), PInvokeCore.WM_KEYDOWN, _lastKeyDown.WParamInternal, _lastKeyDown.LParamInternal); 75case PInvokeCore.WM_CHAR: 97PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_KEYDOWN, _lastKeyDown.WParamInternal, _lastKeyDown.LParamInternal); 98PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_CHAR, m.WParamInternal, m.LParamInternal);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (6)
110hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 141PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, parent.Handle); 147PInvokeCore.SendMessage(hWndCapture, PInvokeCore.WM_CANCELMODE); 157PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, IntPtr.Zero); 170if (m.MsgInternal == PInvokeCore.WM_ACTIVATE
System\ComponentModel\Design\DesignerActionUI.cs (1)
720PInvokeCore.SetWindowLong(
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (4)
116HWND parent = (HWND)PInvokeCore.GetWindowLong( 203hWndDescendant = (HWND)PInvokeCore.GetWindowLong(hWndDescendant, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 220int style = (int)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE); 243case PInvokeCore.WM_ACTIVATE:
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
337string windowText = PInvokeCore.GetWindowText(this); 408case PInvokeCore.WM_PAINT:
System\ComponentModel\Design\ObjectSelectorEditor.cs (2)
68uint exstyle = (uint)PInvokeCore.SendMessage(hwnd, PInvoke.TVM_GETEXTENDEDSTYLE); 70PInvokeCore.SendMessage(hwnd, PInvoke.TVM_SETEXTENDEDSTYLE, (WPARAM)0, (LPARAM)exstyle);
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (2)
193case PInvokeCore.WM_GETDLGCODE: 196case PInvokeCore.WM_MOUSEMOVE:
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (10)
63case PInvokeCore.WM_INITDIALOG: 67PInvokeCore.EM_SETMARGINS, 73PInvokeCore.EM_SETMARGINS, 79PInvokeCore.EM_SETMARGINS, 85PInvokeCore.EM_SETMARGINS, 91PInvokeCore.EM_SETMARGINS, 97PInvokeCore.EM_SETMARGINS, 117case PInvokeCore.WM_COMMAND: 131PInvokeCore.PostMessage( 133PInvokeCore.WM_COMMAND,
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (11)
291case PInvokeCore.WM_PAINT: 317case PInvokeCore.WM_NCHITTEST: 328case PInvokeCore.WM_CAPTURECHANGED: 349case PInvokeCore.WM_LBUTTONDOWN: 357case PInvokeCore.WM_RBUTTONDOWN: 365case PInvokeCore.WM_MOUSEMOVE: 373case PInvokeCore.WM_LBUTTONUP: 381case PInvokeCore.WM_RBUTTONUP: 389case PInvokeCore.WM_MOUSEHOVER: 397case PInvokeCore.WM_LBUTTONDBLCLK: 405case PInvokeCore.WM_RBUTTONDBLCLK:
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (5)
74PInvokeCore.GetWindowThreadProcessId(adornerWindow, out _thisProcessID); 83PInvokeCore.GetCurrentThreadId()); 168PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid); 183if (m.Msg == (int)PInvokeCore.WM_LBUTTONDOWN) 187else if (m.Msg == (int)PInvokeCore.WM_LBUTTONDBLCLK)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
273PInvokeCore.MapWindowPoints(c.Parent, _adornerWindow, ref pt); 287PInvokeCore.MapWindowPoints((HWND)handle, _adornerWindow, ref pt);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
647PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 833PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\CommandSet.cs (2)
687PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_SETCURSOR, hwnd, (nint)PInvoke.HTCLIENT);
System\Windows\Forms\Design\ComponentTray.cs (10)
1580case PInvokeCore.WM_CANCELMODE: 1585case PInvokeCore.WM_SETCURSOR: 1588case PInvokeCore.WM_HSCROLL: 1589case PInvokeCore.WM_VSCROLL: 1596case PInvokeCore.WM_STYLECHANGED: 1600case PInvokeCore.WM_CONTEXTMENU: 1614case PInvokeCore.WM_NCHITTEST: 2509case PInvokeCore.WM_SETCURSOR: 2513case PInvokeCore.WM_CONTEXTMENU: 2529case PInvokeCore.WM_NCHITTEST:
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (3)
35if (m.MsgInternal == PInvokeCore.WM_DESTROY) 40if (m.MsgInternal == PInvokeCore.WM_PARENTNOTIFY && m.WParamInternal.LOWORD == PInvokeCore.WM_CREATE)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (2)
77if (m.Msg == (int)PInvokeCore.WM_CREATE) 80PInvokeCore.RevokeDragDrop(_handle);
System\Windows\Forms\Design\ControlDesigner.cs (94)
290PInvokeCore.MapWindowPoints(Control, parent, ref nativeOffset); 399=> m.ResultInternal = PInvokeCore.DefWindowProc(m.HWND, (uint)m.MsgInternal, m.WParamInternal, m.LParamInternal); 519PInvokeCore.RevokeDragDrop(e.Control); 895PInvokeCore.RevokeDragDrop(child); 1237PInvokeCore.RevokeDragDrop(Control); 1717if (m.MsgInternal == PInvokeCore.WM_NCHITTEST && !_inHitTest) 1738bool isContextKey = m.MsgInternal == PInvokeCore.WM_CONTEXTMENU; 1745if (m.MsgInternal == PInvokeCore.WM_CONTEXTMENU) 1757if (m.MsgInternal == PInvokeCore.WM_CONTEXTMENU) 1762if (m.MsgInternal == PInvokeCore.WM_LBUTTONUP) 1779if ((m.MsgInternal >= PInvokeCore.WM_MOUSEFIRST && m.MsgInternal <= PInvokeCore.WM_MOUSELAST) 1780|| (m.MsgInternal >= PInvokeCore.WM_NCMOUSEMOVE && m.MsgInternal <= PInvokeCore.WM_NCMBUTTONDBLCLK) 1781|| m.MsgInternal == PInvokeCore.WM_SETCURSOR) 1791if (m.MsgInternal >= PInvokeCore.WM_MOUSEFIRST && m.MsgInternal <= PInvokeCore.WM_MOUSELAST) 1794PInvokeCore.MapWindowPoints(m, (HWND)default, ref location); 1796else if (m.MsgInternal >= PInvokeCore.WM_NCMOUSEMOVE && m.MsgInternal <= PInvokeCore.WM_NCMBUTTONDBLCLK) 1806case PInvokeCore.WM_CREATE: 1818case PInvokeCore.WM_GETOBJECT: 1831case PInvokeCore.WM_MBUTTONDOWN: 1832case PInvokeCore.WM_MBUTTONUP: 1833case PInvokeCore.WM_MBUTTONDBLCLK: 1834case PInvokeCore.WM_NCMOUSEHOVER: 1835case PInvokeCore.WM_NCMOUSELEAVE: 1836case PInvokeCore.WM_MOUSEWHEEL: 1837case PInvokeCore.WM_NCMBUTTONDOWN: 1838case PInvokeCore.WM_NCMBUTTONUP: 1839case PInvokeCore.WM_NCMBUTTONDBLCLK: 1842case PInvokeCore.WM_MOUSEHOVER: 1853case PInvokeCore.WM_MOUSELEAVE: 1857case PInvokeCore.WM_NCLBUTTONDBLCLK: 1858case PInvokeCore.WM_LBUTTONDBLCLK: 1859case PInvokeCore.WM_NCRBUTTONDBLCLK: 1860case PInvokeCore.WM_RBUTTONDBLCLK: 1861button = m.MsgInternal == PInvokeCore.WM_NCRBUTTONDBLCLK || m.MsgInternal == PInvokeCore.WM_RBUTTONDBLCLK 1880case PInvokeCore.WM_NCLBUTTONDOWN: 1881case PInvokeCore.WM_LBUTTONDOWN: 1882case PInvokeCore.WM_NCRBUTTONDOWN: 1883case PInvokeCore.WM_RBUTTONDOWN: 1884button = m.MsgInternal == PInvokeCore.WM_NCRBUTTONDOWN || m.MsgInternal == PInvokeCore.WM_RBUTTONDOWN 1890PInvokeCore.SendMessage(Control, PInvokeCore.WM_SETFOCUS); 1924PInvokeCore.SendMessage( 1953case PInvokeCore.WM_NCMOUSEMOVE: 1954case PInvokeCore.WM_MOUSEMOVE: 1973PInvokeCore.SendMessage( 1996if (m.MsgInternal == PInvokeCore.WM_MOUSEMOVE) 2002case PInvokeCore.WM_NCLBUTTONUP: 2003case PInvokeCore.WM_LBUTTONUP: 2004case PInvokeCore.WM_NCRBUTTONUP: 2005case PInvokeCore.WM_RBUTTONUP: 2007button = m.MsgInternal == PInvokeCore.WM_NCRBUTTONUP || m.MsgInternal == PInvokeCore.WM_RBUTTONUP 2020PInvokeCore.SendMessage( 2039case PInvokeCore.WM_PRINTCLIENT: 2048case PInvokeCore.WM_PAINT: 2084PInvokeCore.MapWindowPoints(m.HWND, Control, ref point); 2086PInvokeCore.MapWindowPoints(m.HWND, Control, ref clip); 2113case PInvokeCore.WM_NCPAINT: 2114case PInvokeCore.WM_NCACTIVATE: 2115if (m.Msg == (int)PInvokeCore.WM_NCACTIVATE) 2144case PInvokeCore.WM_SETCURSOR: 2163case PInvokeCore.WM_SIZE: 2171case PInvokeCore.WM_CANCELMODE: 2177case PInvokeCore.WM_SETFOCUS: 2200case PInvokeCore.WM_CONTEXTMENU: 2231else if (m.MsgInternal < PInvokeCore.WM_KEYFIRST || m.MsgInternal > PInvokeCore.WM_KEYLAST) 2321(msg >= PInvokeCore.WM_MOUSEFIRST && msg <= PInvokeCore.WM_MOUSELAST) 2325PInvokeCore.WM_MOUSEHOVER 2326or PInvokeCore.WM_MOUSELEAVE 2327or PInvokeCore.WM_NCMOUSEMOVE 2328or PInvokeCore.WM_NCLBUTTONDOWN 2329or PInvokeCore.WM_NCLBUTTONUP 2330or PInvokeCore.WM_NCLBUTTONDBLCLK 2331or PInvokeCore.WM_NCRBUTTONDOWN 2332or PInvokeCore.WM_NCRBUTTONUP 2333or PInvokeCore.WM_NCRBUTTONDBLCLK 2334or PInvokeCore.WM_NCMBUTTONDOWN 2335or PInvokeCore.WM_NCMBUTTONUP 2336or PInvokeCore.WM_NCMBUTTONDBLCLK 2337or PInvokeCore.WM_NCMOUSEHOVER 2338or PInvokeCore.WM_NCMOUSELEAVE 2339or PInvokeCore.WM_NCXBUTTONDOWN 2340or PInvokeCore.WM_NCXBUTTONUP 2341or PInvokeCore.WM_NCXBUTTONDBLCLK => true, 2425PInvokeCore.RevokeDragDrop(hwndChild); 2446PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Design\DesignerFrame.cs (25)
87PInvokeCore.SendMessage(_designer, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)focus); 176case PInvokeCore.WM_MOUSEWHEEL: 181PInvokeCore.SendMessage(_designerRegion, PInvokeCore.WM_MOUSEWHEEL, m.WParamInternal, m.LParamInternal); 187case PInvokeCore.WM_KEYDOWN: 191Keys.Up => (SCROLLBAR_COMMAND.SB_LINEUP, (MessageId)PInvokeCore.WM_VSCROLL), 192Keys.Down => (SCROLLBAR_COMMAND.SB_LINEDOWN, (MessageId)PInvokeCore.WM_VSCROLL), 193Keys.PageUp => (SCROLLBAR_COMMAND.SB_PAGEUP, (MessageId)PInvokeCore.WM_VSCROLL), 194Keys.PageDown => (SCROLLBAR_COMMAND.SB_PAGEDOWN, (MessageId)PInvokeCore.WM_VSCROLL), 195Keys.Home => (SCROLLBAR_COMMAND.SB_TOP, (MessageId)PInvokeCore.WM_VSCROLL), 196Keys.End => (SCROLLBAR_COMMAND.SB_BOTTOM, (MessageId)PInvokeCore.WM_VSCROLL), 197Keys.Left => (SCROLLBAR_COMMAND.SB_LINEUP, (MessageId)PInvokeCore.WM_HSCROLL), 198Keys.Right => (SCROLLBAR_COMMAND.SB_LINEDOWN, (MessageId)PInvokeCore.WM_HSCROLL), 199_ => ((SCROLLBAR_COMMAND)0, (MessageId)PInvokeCore.WM_NULL) 202if (msg == PInvokeCore.WM_VSCROLL || msg == PInvokeCore.WM_HSCROLL) 205PInvokeCore.SendMessage(_designerRegion, msg, (WPARAM)(int)wScrollNotify); 210case PInvokeCore.WM_CONTEXTMENU: 211PInvokeCore.SendMessage(_designer!, m.MsgInternal, m.WParamInternal, m.LParamInternal); 497if (m.MsgInternal == PInvokeCore.WM_PARENTNOTIFY && m.WParamInternal.LOWORD == PInvokeCore.WM_CREATE) 521else if (m.Msg is (int)PInvokeCore.WM_VSCROLL or (int)PInvokeCore.WM_HSCROLL && BehaviorService is not null) 525else if ((m.Msg == (int)PInvokeCore.WM_MOUSEWHEEL))
System\Windows\Forms\Design\DesignerUtils.cs (21)
28PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 30PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 32PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 34PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 172PInvokeCore.DeleteObject(s_grabHandleFillBrushPrimary); 173s_grabHandleFillBrushPrimary = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 175PInvokeCore.DeleteObject(s_grabHandleFillBrush); 176s_grabHandleFillBrush = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 178PInvokeCore.DeleteObject(s_grabHandlePenPrimary); 179s_grabHandlePenPrimary = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 181PInvokeCore.DeleteObject(s_grabHandlePen); 182s_grabHandlePen = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 270PInvokeCore.Rectangle(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 293PInvokeCore.SelectObject(hDC, isPrimary ? s_grabHandleFillBrushPrimary : s_grabHandleFillBrush); 294PInvokeCore.Rectangle(hDC, bounds.Left, bounds.Top + s_lockedHandleLowerOffset, bounds.Right, bounds.Bottom); 404PInvokeCore.BitBlt( 443PInvokeCore.SendMessage( 445PInvokeCore.WM_PRINT, 822=> (uint)PInvokeCore.SendMessage(handle, PInvoke.TVM_GETEXTENDEDSTYLE); 838PInvokeCore.SendMessage(treeView, PInvoke.TVM_SETEXTENDEDSTYLE, 0, (nint)exstyle); 851PInvokeCore.SendMessage(
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
290HRESULT hr = PInvokeCore.LoadRegTypeLib(
System\Windows\Forms\Design\DocumentDesigner.cs (2)
1051PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\FormDocumentDesigner.cs (4)
400PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true); 412PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
108case (int)PInvokeCore.WM_NCHITTEST:
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
186PInvokeCore.SendMessage(listBox, PInvoke.LB_RESETCONTENT); 187PInvokeCore.SendMessage(listBox, PInvoke.LB_ADDSTRING, 0, name);
System\Windows\Forms\Design\ListViewDesigner.cs (4)
81HWND headerHwnd = (HWND)PInvokeCore.SendMessage(listView, PInvoke.LVM_GETHEADER); 84PInvokeCore.MapWindowPoints(HWND.Null, headerHwnd, ref point); 86PInvokeCore.SendMessage(headerHwnd, PInvoke.HDM_HITTEST, 0, ref _hdrhit); 135case (int)PInvokeCore.WM_NOTIFY:
System\Windows\Forms\Design\MaskDesignerDialog.cs (4)
501PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 535PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\OleDragDropHandler.cs (10)
441using SelectObjectScope brushSelection = new(dc, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH)); 444PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor)); 445PInvokeCore.Rectangle(dc, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 491while (PInvokeCore.PeekMessage(&msg, HWND.Null, PInvokeCore.WM_PAINT, PInvokeCore.WM_PAINT, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE)) 755PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 803PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\PbrsForward.cs (22)
18private const int WM_PRIVATE_POSTCHAR = (int)PInvokeCore.WM_USER + 0x1598; 72if (m.Msg is >= ((int)PInvokeCore.WM_KEYFIRST) 73and <= ((int)PInvokeCore.WM_KEYLAST) or >= ((int)PInvokeCore.WM_IME_STARTCOMPOSITION) 74and <= ((int)PInvokeCore.WM_IME_COMPOSITION)) 101if (bk.KeyChar.MsgInternal == PInvokeCore.WM_CHAR) 105PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_KEYDOWN, bk.KeyDown.WParamInternal, bk.KeyDown.LParamInternal); 108PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_CHAR, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal); 111PInvokeCore.SendMessage(hwnd, PInvokeCore.WM_KEYUP, bk.KeyUp.WParamInternal, bk.KeyUp.LParamInternal); 116PInvokeCore.SendMessage(hwnd, bk.KeyChar.MsgInternal, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal); 124case (int)PInvokeCore.WM_KEYDOWN: 128case (int)PInvokeCore.WM_IME_ENDCOMPOSITION: 129case (int)PInvokeCore.WM_KEYUP: 133case (int)PInvokeCore.WM_CHAR: 134case (int)PInvokeCore.WM_IME_STARTCOMPOSITION: 135case (int)PInvokeCore.WM_IME_COMPOSITION: 151else if (_ignoreMessages && m.Msg != (int)PInvokeCore.WM_IME_COMPOSITION) 168case (int)PInvokeCore.WM_KILLFOCUS: 179PInvokeCore.PostMessage(_target, (MessageId)WM_PRIVATE_POSTCHAR);
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
33PInvokeCore.RevokeDragDrop((HWND)control.Handle);
System\Windows\Forms\Design\ScrollableControlDesigner.cs (4)
33int hitTest = (int)PInvokeCore.SendMessage(f, PInvokeCore.WM_NCHITTEST, 0, PARAM.FromLowHigh(pt.X, pt.Y)); 52case (int)PInvokeCore.WM_HSCROLL: 53case (int)PInvokeCore.WM_VSCROLL:
System\Windows\Forms\Design\SelectionUIService.cs (3)
840case PInvokeCore.WM_LBUTTONUP: 841case PInvokeCore.WM_RBUTTONUP: 848case PInvokeCore.WM_CAPTURECHANGED:
System\Windows\Forms\Design\SplitterDesigner.cs (1)
56case PInvokeCore.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Design\TabControlDesigner.cs (4)
589case PInvokeCore.WM_NCHITTEST: 599case PInvokeCore.WM_CONTEXTMENU: 616case PInvokeCore.WM_HSCROLL: 617case PInvokeCore.WM_VSCROLL:
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
105PInvokeCore.MapWindowPoints(c.Parent, _toolStripAdornerWindow, ref pt); 281case PInvokeCore.WM_NCHITTEST:
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
1001case PInvokeCore.WM_SETFOCUS: 1002case PInvokeCore.WM_KILLFOCUS:
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
2512case PInvokeCore.WM_CONTEXTMENU: 2520case PInvokeCore.WM_LBUTTONDOWN: 2521case PInvokeCore.WM_RBUTTONDOWN:
System\Windows\Forms\Design\ToolStripTemplateNode.cs (11)
874PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 876PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 954PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 956PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 1549case PInvokeCore.WM_KILLFOCUS: 1564case PInvokeCore.WM_CONTEXTMENU: 1713case PInvokeCore.WM_GETOBJECT:
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
54PInvokeCore.SendMessage(Control, PInvoke.TVM_HITTEST, 0, ref _tvhit);
System.Windows.Forms.Primitives (39)
Interop\Richedit\Interop.CHARFORMAT2W.cs (2)
23public fixed char _szFaceName[(int)PInvokeCore.LF_FACESIZE]; 41get { fixed (char* c = _szFaceName) { return new Span<char>(c, (int)PInvokeCore.LF_FACESIZE); } }
Interop\User32\WMExtensions.cs (8)
9=> message.IsBetween(PInvokeCore.WM_MOUSEFIRST, PInvokeCore.WM_MOUSELAST); 12=> message.IsBetween(PInvokeCore.WM_MOUSEFIRST, PInvokeCore.WM_MOUSELAST); 15=> message.IsBetween(PInvokeCore.WM_KEYFIRST, PInvokeCore.WM_KEYLAST); 18=> message.IsBetween(PInvokeCore.WM_KEYFIRST, PInvokeCore.WM_KEYLAST);
System\Drawing\ImageExtensions.cs (5)
65dispatch->TryGetProperty((int)PInvokeCore.DISPID_PICT_TYPE, &variant).ThrowOnFailure(); 69dispatch->TryGetProperty((int)PInvokeCore.DISPID_PICT_HPAL, &variant).ThrowOnFailure(); 73dispatch->TryGetProperty((int)PInvokeCore.DISPID_PICT_HANDLE, &variant).ThrowOnFailure(); 76dispatch->TryGetProperty((int)PInvokeCore.DISPID_PICT_WIDTH, &variant).ThrowOnFailure(); 79dispatch->TryGetProperty((int)PInvokeCore.DISPID_PICT_HEIGHT, &variant).ThrowOnFailure();
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
76(WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE); 79(WINDOW_STYLE)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System\Windows\Forms\Automation\UiaTextRange.cs (3)
876private static int GetBackgroundColor() => (int)PInvokeCore.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW); 888int lpy = PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY); 894private static int GetForegroundColor() => (int)PInvokeCore.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOWTEXT);
System\Windows\Forms\DeviceContextExtensions.cs (2)
35using SelectObjectScope brushScope = new(hdc, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH)); 37PInvokeCore.Rectangle(hdc, left, top, right, bottom);
System\Windows\Forms\Internals\MessageDecoder.cs (1)
26if (messageId == PInvokeCore.WM_PARENTNOTIFY)
System\Windows\Forms\Internals\ScaleHelper.cs (3)
67return PInvokeCore.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX); 306PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXICON), 307PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYICON));
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
13using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH]);
Windows\Win32\PInvoke.GetSystemMetrics.cs (1)
13=> OsVersion.IsWindows10_1607OrGreater() ? GetSystemMetricsForDpi(nIndex, dpi) : PInvokeCore.GetSystemMetrics(nIndex);
Windows\Win32\PInvoke.TBM_GETPOS.cs (1)
8public const uint TBM_GETPOS = PInvokeCore.WM_USER;
Windows\Win32\System\Com\ComSafeArrayScope.cs (2)
10/// <see cref="PInvokeCore.SafeArrayCreate(VARENUM, uint, SAFEARRAYBOUND*)"/> 41_value = new(PInvokeCore.SafeArrayCreate(VARENUM.VT_UNKNOWN, 1, &saBound));
Windows\Win32\System\Com\StandardDispatch.cs (2)
151*pid = PInvokeCore.DISPID_UNKNOWN; 208if (id == PInvokeCore.DISPID_UNKNOWN)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (4)
76if (desiredId != PInvokeCore.DISPID_UNKNOWN && !IdInUse(desiredId)) 264bool foundLast = dispId == PInvokeCore.DISPID_STARTENUM; 277nextDispId = PInvokeCore.DISPID_UNKNOWN; 322int dispid = info.GetCustomAttribute<DispIdAttribute>()?.Value ?? PInvokeCore.DISPID_UNKNOWN;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47LRESULT result = PInvokeCore.SendMessage(sender, message, (WPARAM)(BOOL)state, (LPARAM)i);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
34using BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1);