[]
        
(Showing Draft Content)

C1.Util.Win.Win32

Win32 Class

Inheritance
Win32
Namespace: C1.Util.Win
Assembly: C1.Win.4.8.dll
Syntax
public static class Win32

Fields

Name Description
CCHILDREN_TITLEBAR
GDI_ERROR
HWND_TOPMOST
INVALID_HANDLE_VALUE
MONITOR_DEFAULTTONEAREST
MONITOR_DEFAULTTONULL
MONITOR_DEFAULTTOPRIMARY

Methods

Name Description
AddFontMemResourceEx(byte[], int, IntPtr, ref int)
AddFontMemResourceEx(IntPtr, int, IntPtr, ref int)
AddFontResource(string)
AnimateWindow(IntPtr, int, uint)
Arc(IntPtr, int, int, int, int, int, int, int, int)
ArcTo(IntPtr, int, int, int, int, int, int, int, int)
AssocQueryString(int, int, string, string, StringBuilder, ref uint)

Gets file-association string from the registry.

BeginPanningFeedback(IntPtr)
BeginPath(IntPtr)
BitBlt(IntPtr, int, int, int, int, IntPtr, int, int, uint)
CallWindowProc(IntPtr, IntPtr, int, IntPtr, IntPtr)
CallWindowProc(IntPtr, IntPtr, uint, IntPtr, IntPtr)
ClientToScreen(IntPtr, ref POINT)
CloseFigure(IntPtr)
ClosePrinter(IntPtr)
CloseThemeData(IntPtr)
ColorToWin32(Color)
CombineRgn(IntPtr, IntPtr, IntPtr, int)
CopyEnhMetaFile(IntPtr, string)
CreateCompatibleBitmap(IntPtr, int, int)
CreateCompatibleDC(IntPtr)
CreateDIBSection(IntPtr, ref BITMAPINFO, uint, IntPtr, IntPtr, uint)
CreateFont(int, int, int, int, int, int, int, int, int, int, int, int, int, string)
CreateFontIndirect(LOGFONT)
CreateFontIndirect(ref LOGFONT_UNMANAGED)
CreateIC(string, IntPtr, IntPtr, IntPtr)
CreateIC(string, string, IntPtr, IntPtr)
CreateILockBytesOnHGlobal(IntPtr, bool, ref IntPtr)
CreateMenu()
CreatePen(int, int, int)
CreateRectRgn(int, int, int, int)
CreateRectRgnIndirect(ref RECT)
CreateRectRgnIndirect2(RECT)
CreateRoundRectRgn(int, int, int, int, int, int)
CreateSolidBrush(Color)
CreateSolidBrush(int)
CreateStreamOnHGlobal(IntPtr, bool, ref IntPtr)
CreateWindowEx(uint, string, string, uint, int, int, int, int, IntPtr, IntPtr, IntPtr, IntPtr)
DPtoLP(IntPtr, ref POINTL, int)
DefWindowProc(IntPtr, int, IntPtr, IntPtr)
DeleteDC(IntPtr)
DeleteEnhMetaFile(IntPtr)
DeleteMetaFile(IntPtr)
DeleteObject(IntPtr)
DestroyMenu(IntPtr)
DestroyWindow(IntPtr)
DeviceCapabilities(string, string, int, IntPtr, IntPtr)
DisableProcessWindowsGhosting()
DocumentProperties(IntPtr, IntPtr, string, IntPtr, IntPtr, int)
DragAcceptFiles(IntPtr, bool)
DrawBorder3D(Graphics, Rectangle, Border3DStyle)
DrawEdge(IntPtr, ref RECT, uint, uint)
DrawFocusRect(IntPtr, ref RECT)
DrawFrameControl(IntPtr, ref RECT, uint, uint)
DrawMenuBar(IntPtr)
DrawReversibleLine(Control, Point, Point)
DrawText(IntPtr, string, int, ref RECT, uint)
DrawThemeBackground(IntPtr, IntPtr, int, int, ref RECT, IntPtr)
DrawThemeParentBackground(IntPtr, IntPtr, ref RECT)
DrawThemeText(IntPtr, IntPtr, int, int, string, int, int, int, ref RECT)
DrawThemeTextEx(IntPtr, IntPtr, int, int, string, int, int, ref RECT, ref DTTOPTS)
DwmDefWindowProc(IntPtr, int, IntPtr, IntPtr)
DwmExtendFrameIntoClientArea(IntPtr, ref MARGINS)
DwmGetWindowAttribute(IntPtr, int, ref RECT, int)
DwmIsCompositionEnabled()
DwmIsCompositionEnabled(out bool)
Ellipse(IntPtr, int, int, int, int)
EnableMenuItem(IntPtr, uint, uint)
EndPanningFeedback(IntPtr, bool)
EndPath(IntPtr)
EnumChildWindows(Control, EnumWindowProc, IntPtr)
EnumEnhMetaFile(IntPtr, IntPtr, EnumMetaFileProc, IntPtr, ref RECT)
EnumFontFamiliesEx(IntPtr, LOGFONT, EnumFontExDelegate, IntPtr, uint)
EnumFontFamiliesEx(IntPtr, LOGFONT, EnumFontExDelegate2, IntPtr, uint)
EnumFontFamiliesEx(IntPtr, ref LOGFONT_UNMANAGED, EnumFontExDelegate, IntPtr, uint)
EnumFontFamiliesEx(IntPtr, IntPtr, EnumFontExDelegate, IntPtr, uint)
EnumPrinters(int, string, int, IntPtr, int, out int, out int)
ExcludeClipRect(IntPtr, int, int, int, int)
ExtCreatePen(int, int, ref LOGBRUSH, int, int[])
ExtCreatePen(int, int, ref LOGBRUSH, int, IntPtr)
ExtSelectClipRgn(IntPtr, IntPtr, int)
ExtTextOut(IntPtr, int, int, uint, RECT*, string, int, int*)
ExtTextOut(IntPtr, int, int, uint, ref RECT, string, int, IntPtr)
FillRect(IntPtr, ref RECT, IntPtr)
FillRect(IntPtr, Rectangle, IntPtr)
FillRgn(IntPtr, IntPtr, IntPtr)
FindAtom(string)
FindClose(IntPtr)
FindFirstFile(string, WIN32_FIND_DATA)
FindNextFile(IntPtr, WIN32_FIND_DATA)
FixFPU()
FormatRange(IntPtr, ref FORMATRANGE)
FrameChanged(IntPtr)
FrameRect(IntPtr, ref RECT, IntPtr)
FrameRgn(IntPtr, IntPtr, IntPtr, int, int)
FreeLibrary(IntPtr)
GET_KEYSTATE_WPARAM(IntPtr)

Retrieves the state of certain virtual keys from the specified WPARAM value.

GET_WHEEL_DELTA_WPARAM(IntPtr)

Retrieves the wheel-delta value from the specified WPARAM value.

GET_X_LPARAM(IntPtr)

Retrieves the signed x-coordinate from the given value. This function handles the message parameters of window and is a replacement for LOWORD because LOWORD must return the unsigned value. See in MSDN which function used to process the message.

GET_Y_LPARAM(IntPtr)

Retrieves the signed y-coordinate from the given value. This function handles the message parameters of window and is a replacement for HIWORD because HIWORD must return the unsigned value. See in MSDN which function used to process the message.

GdiComment(IntPtr, uint, byte[])
GdiComment(IntPtr, uint, IntPtr)
GetActiveWindow()
GetAncestor(IntPtr, uint)
GetBkColor(IntPtr)
GetBkMode(IntPtr)
GetBorder3DInnerRect(Rectangle, Border3DStyle)
GetCapsLock()
GetCaretBlinkTime()
GetCaretPos(out Point)
GetCharABCWidths(IntPtr, uint, uint)
GetCharABCWidths(IntPtr, uint, uint, ABC[])
GetCharWidth32(IntPtr, int, int, int[])
GetClassLong(IntPtr, int)
GetClientRect(IntPtr, ref RECT)
GetClipRgn(IntPtr, IntPtr)
GetComboBoxInfo(IntPtr, ref COMBOBOXINFO)
GetCurrentObject(IntPtr, uint)
GetCurrentProcess()
GetCurrentProcessId()
GetDC(IntPtr)
GetDCEx(IntPtr, IntPtr, uint)
GetDPIDependentRectangle(Rectangle, Control)
GetDefaultPrinter()
GetDefaultPrinter(StringBuilder, ref int)
GetDesktopWindow()
GetDeviceCaps(IntPtr, int)
GetDpiForMonitor(IntPtr, MONITOR_DPI_TYPE, ref int, ref int)
GetEnhMetaFileBits(IntPtr, uint, byte[])
GetEnhMetaFileBits(IntPtr, uint, IntPtr)
GetFocus()
GetFocusedControl()
GetFontData(IntPtr, int, int, byte[], int)
GetFontUnicodeRanges(IntPtr, IntPtr)
GetForegroundWindow()
GetGlyphIndices(IntPtr, string, int, IntPtr, uint)
GetGlyphIndices(IntPtr, string, int, ushort[], uint)
GetGlyphOutline(IntPtr, char, uint, ref GLYPHMETRICS, int, IntPtr, IntPtr)
GetGuiResources(IntPtr, int)
GetKeyState(int)
GetKeyboardLayout(IntPtr)
GetLastError()
GetLocaleInfo(uint, uint)

This function avoids BUG with API GetLocaleInfo function under Win9X

GetLocaleInfo(uint, uint, string, int)
GetLocaleInfoEx(string, uint, StringBuilder, int)
GetLocaleInfoUnsafe(uint, uint, char*, int)
GetMenu(IntPtr)
GetMenuString(IntPtr, uint, StringBuilder, int, uint)
GetMetaFileBitsEx(IntPtr, uint, byte[])
GetMetaFileBitsEx(IntPtr, uint, IntPtr)
GetMetafileData(Metafile)
GetMonitorInfo(IntPtr, ref MONITORINFOEX)
GetObject(IntPtr, int, LOGFONT)
GetObject(IntPtr, int, ref LOGFONT_UNMANAGED)
GetObject(IntPtr, int, IntPtr)
GetObjectType(IntPtr)
GetOutlineTextMetrics(IntPtr, ref OUTLINETEXTMETRIC)
GetOutlineTextMetrics(IntPtr, int, OUTLINETEXTMETRIC*)
GetOutlineTextMetrics(IntPtr, uint, ref OUTLINETEXTMETRIC)
GetParent(IntPtr)
GetPrinter(IntPtr, int, IntPtr, int, ref int)
GetScreenScalingFactor(Control)
GetScrollPos(IntPtr, uint)
GetScrollPositionMinimumMaximum(IntPtr, uint)
GetScrollRange(IntPtr, uint)
GetScrollVisible(IntPtr, uint)
GetStockObject(int)
GetSysColor(int)
GetSystemMenu(IntPtr, bool)
GetSystemMetrics(int)
GetSystemMetricsForDpi(int, uint)
GetTextAlign(IntPtr)
GetTextCharacterExtra(IntPtr)
GetTextColor(IntPtr)
GetTextExtentExPoint(IntPtr, string, int, int, int*, int*, ref Size)
GetTextExtentExPoint(IntPtr, string, int, int, out int, int[], out Size)
GetTextExtentExPointWidths(IntPtr, string)
GetTextExtentPoint32(IntPtr, string, int, ref Size)
GetTextFace(IntPtr)
GetTextFace(IntPtr, int, IntPtr)
GetTextFace(IntPtr, int, StringBuilder)
GetTextMetrics(IntPtr)
GetTextMetrics(IntPtr, ref TEXTMETRIC)
GetTextMetricsW(IntPtr, ref TEXTMETRICW)
GetThemeBackgroundRegion(IntPtr, IntPtr, int, int, ref RECT, out IntPtr)
GetThreadUILanguage()
GetTrackPos(IntPtr, uint)
GetViewportOrgEx(IntPtr, ref POINT)
GetWindow(IntPtr, uint)
GetWindowDC(IntPtr)
GetWindowInfo(IntPtr, ref WINDOWINFO)
GetWindowLong(IntPtr, int)
GetWindowRect(IntPtr, ref RECT)
GetWindowTheme(IntPtr)
GetWindowThreadProcessId(IntPtr, ref int)
GlobalFree(IntPtr)
GlobalLock(IntPtr)
GlobalUnlock(IntPtr)
HIWORD(int)
HIWORD(IntPtr)
HIWORDU(IntPtr)

Retrieves the high-order word from the specified value. This function handles the message parameters of window. See in MSDN which function used to process the message.

HideCaret(IntPtr)
ImmGetContext(IntPtr)
ImmGetOpenStatus(IntPtr)
IntPtrFromPoint(Point)
IntersectClipRect(IntPtr, int, int, int, int)
InvertRect(IntPtr, ref RECT)
InvertRgn(IntPtr, IntPtr)
IsAppThemed()
IsChild(IntPtr, IntPtr)
IsTabKeyPressed()
IsThemeActive()
IsThemeBackgroundPartiallyTransparent(IntPtr, int, int)
IsValidURL(IntPtr, string, uint)
IsWin11()
IsWindow(IntPtr)
IsWindowVisible(IntPtr)
LCMapString(int, int, ref string, int, ref string, int)
LCMapStringA(int, int, byte[], int, byte[], int)
LOWORD(int)
LOWORD(IntPtr)
LOWORDU(IntPtr)

Retrieves the low-order word from the specified value. This function handles the message parameters of window. See in MSDN which function used to process the message.

LPtoDP(IntPtr, POINT[], int)
Line(IntPtr, Point, Point)
LineTo(IntPtr, int, int)
LoadBitmap(IntPtr, IntPtr)
LoadLibrary(string)
LockWindowUpdate(IntPtr)
LogicalToPhysicalPoint(IntPtr, ref POINT)
MAKELANGID(uint, uint)
MAKELCID(uint, uint)
MapVirtualKey(int, int)
MessageBeep(int)
MonitorFromWindow(IntPtr, uint)
MoveTo(IntPtr, int, int)
MoveToEx(IntPtr, int, int, ref POINT)
MoveWindow(IntPtr, int, int, int, int, bool)
MsgWaitForMultipleObjects(int, IntPtr, short, int, int)
OpenPrinter(string, ref IntPtr, IntPtr)
OpenThemeData(IntPtr, string)
PTCloseProvider(IntPtr)
PTConvertDevModeToPrintTicket(IntPtr, int, IntPtr, int, IntPtr)
PTOpenProvider(string, int, ref IntPtr)
PathToRegion(IntPtr)
PlayEnhMetaFile(IntPtr, IntPtr, ref RECT)
PlayEnhMetaFileRecord(IntPtr, IntPtr, IntPtr, int)
Polygon(IntPtr, POINT[], int)
PostMessage(IntPtr, int, int, Point)
PostMessage(IntPtr, int, IntPtr, IntPtr)
PostMessage(IntPtr, uint, IntPtr, IntPtr)
PostMessageW(Control, int, int)
PtInRegion(IntPtr, int, int)
ReadMetafileFromMemory(byte[])
Rectangle(IntPtr, int, int, int, int)
RedrawWindow(IntPtr, ref RECT)
RedrawWindow(IntPtr, ref RECT, IntPtr, uint)
RedrawWindow(IntPtr, IntPtr, IntPtr, uint)
RedrawWindowNonClientArea(IntPtr)
ReleaseCapture()
ReleaseDC(IntPtr, IntPtr)
RemoveFontMemResourceEx(IntPtr)
RemoveFontResource(string)
RestoreDC(IntPtr, int)
RtlGetVersion(ref OSVERSIONINFOEX)
SaveDC(IntPtr)
ScalingFactorWithDPI(Control, out float, out float)
ScreenScalingFactor(Rectangle, out float, out float)
ScreenScalingFactor(Control, out float, out float)
ScreenToClient(IntPtr, ref POINT)
ScrollWindow(IntPtr, ref RECT, int, int)
ScrollWindowEx(IntPtr, int, int, ref RECT, ref RECT, IntPtr, ref RECT, int)
ScrollWindowEx(IntPtr, int, int, ref RECT, ref RECT, IntPtr, IntPtr, uint)
SelectClipRgn(IntPtr, IntPtr)
SelectObject(IntPtr, IntPtr)
SendKeyAsInput(char)
SendMessage(IntPtr, int, int, ref POINT)
SendMessage(IntPtr, int, int, int)
SendMessage(IntPtr, int, IntPtr, ref RECT)
SendMessage(IntPtr, int, IntPtr, IntPtr)
SendMessage(IntPtr, int, IntPtr, string)
SendMessage(IntPtr, uint, IntPtr, EDITSTREAM)
SendMessage(IntPtr, uint, IntPtr, EDITSTREAM64)
SendMessage(IntPtr, uint, IntPtr, ref LVITEM)
SendMessage(IntPtr, uint, IntPtr, IntPtr)
SendMessageFormatRange(IntPtr, uint, IntPtr, ref FORMATRANGE)
SendMessageRect(IntPtr, int, IntPtr, ref RECT)
SendMessageSetCharFormat(IntPtr, uint, uint, ref CHARFORMAT)
SendMessageSetCharFormat2(IntPtr, uint, uint, ref CHARFORMAT2)
SendMessageSetParaFormat(IntPtr, uint, uint, ref PARAFORMAT)
SendMessageSetParaFormat2(IntPtr, uint, uint, ref PARAFORMAT2)
SetBkColor(IntPtr, int)
SetBkMode(IntPtr, int)
SetCapture(IntPtr)
SetClipboardViewer(IntPtr)
SetEnhMetaFileBits(uint, byte[])
SetFocus(IntPtr)
SetForegroundWindow(IntPtr)
SetLayeredWindowAttributes(IntPtr, int, byte, int)
SetMenu(IntPtr, IntPtr)
SetMetaFileBitsEx(uint, byte[])
SetParent(IntPtr, IntPtr)
SetROP2(IntPtr, int)
SetScrollPos(IntPtr, uint, int)
SetStretchBltMode(IntPtr, int)
SetTextAlign(IntPtr, uint)
SetTextCharacterExtra(IntPtr, int)
SetTextColor(IntPtr, int)
SetThreadUILanguage(short)
SetWindowLong(IntPtr, int, WindowProc)
SetWindowLong(IntPtr, int, int)
SetWindowLong(IntPtr, int, IntPtr)
SetWindowLongPtr(IntPtr, int, IntPtr)
SetWindowLongPtr64(IntPtr, int, IntPtr)
SetWindowPos(IntPtr, int, int, int, int, int, uint)
SetWindowPos(IntPtr, IntPtr, int, int, int, int, uint)
SetWindowRgn(IntPtr, IntPtr, bool)
SetWindowText(IntPtr, string)
ShellExecute(IntPtr, string, string, string, string, int)
ShowCaret(IntPtr)
ShowWindow(IntPtr, int)
StgCreateDocfileOnILockBytes(IntPtr, uint, uint, ref IntPtr)
StretchBlt(IntPtr, int, int, int, int, IntPtr, int, int, int, int, uint)
StretchDIBits(IntPtr, int, int, int, int, int, int, int, int, IntPtr, IntPtr, uint, int)
StrokePath(IntPtr)
SystemParametersInfo(int, int, ref ANIMATIONINFO, int)
SystemParametersInfo(int, int, ref MINIMIZEDMETRICS, int)
SystemParametersInfo(int, int, int, int)
SystemParametersInfo(uint, uint, ref NONCLIENTMETRICS, uint)
TextOut(IntPtr, int, int, string, int)
ToUnicodeEx(uint, uint, byte[], StringBuilder, int, uint, IntPtr)
TrackMouseEvent(ref TRACKMOUSEEVENT)
TrackPopupMenu(IntPtr, uint, int, int, int, IntPtr, IntPtr)
UpdateLayeredWindow(IntPtr, IntPtr, ref POINT, ref SIZE, IntPtr, ref POINT, int, ref BLENDFUNCTION, int)
UpdatePanningFeedback(IntPtr, int, int, bool)
UpdateScrollSize(IntPtr, uint, int, int, bool)
ValidateRect(IntPtr, IntPtr)
WindowFromPoint(POINT)
WindowFromPoint(Point)