Table of Contents

Class OSUtils

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Represents native Win32 API methods.

public class OSUtils
Inheritance
OSUtils

Fields

BorderFlags_Adjust
BorderFlags_Flat
BorderFlags_Mono
BorderFlags_Soft
GCS_RESULTSTR
IMC_GETCOMPOSITIONWINDOW
IMN_SETCOMPOSITIONWINDOW
IMN_SETOPENSTATUS
Message_CAPTURECHANGED
Message_CanUndo
Message_Char
Message_Clear
Message_CloseDropped
Message_ContextMenu
Message_Copy
Message_Cut
Message_ERASEBKGND
Message_HScroll
Message_IME_COMPOSITION
Message_IME_CONTROL
Message_IME_NOTIFY
Message_IME_STARTCOMPOSITION
Message_InitDialog
Message_KeyDown
Message_KeyUp
Message_LB_AddString
Message_LB_DeleteString
Message_LB_GetCount
Message_LB_GetCurSel
Message_LB_InsertString
Message_LB_ResetContent
Message_LB_SetCount
Message_LB_SetCurSel
Message_LButtonDown
Message_LButtonUp
Message_MouseMove
Message_MouseWheel
Message_NCActivate
Message_NCCalcsize
Message_NCPaint
Message_Paste
Message_SetCursor
Message_SysKeyDown
Message_THEMECHANGED
Message_Undo
Message_VScroll
Message_WM_USER
WindowStyle_Border
WindowStyle_ClientEdge

Methods

AdjustNonClientAreaSize(Message, Padding)
Beep(int, int)

Generates simple tones on the speaker.

CallNextHook(IntPtr, int, IntPtr, IntPtr)

Passes the hook information to the next hook procedure in the current hook chain. A hook procedure can call this function either before or after processing the hook information.

CreateCaret(IntPtr, int, int)

Creates a new shape for the system caret and assigns ownership of the caret to the specified window.

DeleteObject(IntPtr)

The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.

DestroyCaret()

Destroys the caret's current shape, frees the caret from the window, and removes the caret from the screen.

DisableCloseButton(IntPtr)
EnumChildWindows(IntPtr, EnumChildProc, IntPtr)

The EnumChildWindows function enumerates the child windows that belong to the specified parent window by passing the handle of each child window, in turn, to an application-defined callback function. EnumChildWindows continues until the last child window is enumerated or the callback function returns false.

ExcludeClipRect(IntPtr, int, int, int, int)

The ExcludeClipRect function creates a new clipping region that consists of the existing clipping region minus the specified rectangle.

GetCharFromKey(int, ref char)
GetClassName(IntPtr)

The GetClassName function retrieves the name of the class to which the specified window belongs.

GetControlAtScreenPoint(Point)

Returns control under a specified screen point.

GetDoubleClickTime()

Retrieves the current double-click time for the mouse.

GetForegroundWindow()
GetMouseHookHandle(IntPtr, out Point)

Get structure associated with mouse hook.

GetScreenCaps()

Retrieves size in pixels per logical inch of entire screen.

GetScrollPos(IntPtr, bool, bool)

Retrieves the current position of the scroll box (thumb) in the specified scroll bar.

GetScrollSize(bool)

Retrieves dimension of the arrow bitmap of a scroll bar, in pixels.

GetScrollSize(IntPtr, bool, bool)

Retrieves the page size of the scroll box (thumb) in the specified scroll bar.

GetScrollType(int)

Converts given code to the type of scroll event action.

GetText(IntPtr)

Retrieves text that corresponds to a window.

GetWindowDC(IntPtr)

Retrieves the device context (DC) for the entire window.

HiWord(IntPtr)

Retrieves the high-order word from the given value.

HideMinimizeAndMaximizeButtons(IntPtr)
ImeComposition(IntPtr)

Retrieves information about the composition.

ImmSetCompositionFont(IntPtr, Font)

Sets the logical font to use to display characters in the composition window.

ImmSetCompositionWindow(IntPtr, Point)

Sets the position of the composition window.

InitCommonControls()

Registers and initializes the common control window classes.

InitializeFlatSB(IntPtr)

Initializes flat scroll bars for a particular window.

InvalidateNonClientArea(IntPtr)
IsFontMonospace(string, FontStyle, int)

Determines if font family represents mono-space font;

IsMouseMsg(int)

Indicates whether specified message is mouse message.

LoWord(IntPtr)

Retrieves the low-order word from the specified value.

MessageBeep()

Plays default waveform sound.

PostMessage(IntPtr, int, IntPtr, IntPtr)

Places a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.

ReleaseDC(IntPtr, IntPtr)

Releases a device context (DC), freeing it for use by other applications.

ReleaseHook(IntPtr)

Removes a hook procedure installed in a hook chain.

RemoveIcon(IntPtr)
RemoveListBoxVerticalScroll(IntPtr)

Removes vertical scrollbar style from the listbox.

ScrollWindow(IntPtr, int, int, Rectangle)

Scrolls the contents of the specified window's client area.

SendMessage(IntPtr, int, IntPtr, IntPtr)

The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

SetCaretPos(int, int)

Moves the caret to the specified coordinates.

SetCursor(IntPtr)

The SetCursor function establishes the cursor shape.

SetForegroundWindow(IntPtr)
SetMouseHook(HookHandler)

Installs hook procedure that monitors mouse messages into a hook chain.

SetScrollBar(IntPtr, bool, int, int, bool)

Sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).

SetScrollPos(IntPtr, bool, int, bool)

Sets the position of the scroll box (thumb) in the specified scroll bar.

SetText(IntPtr, string)

Sets the text of a window.

SetWndProcHook(HookHandler)

Installs hook procedure that monitors messages before the system sends them to the destination window procedure into a hook chain.

ShowCaret(IntPtr)

Makes the caret visible on the screen at the caret's current position.

ShowWindowTopMost(IntPtr, int, int, int, int)

Places the window above all non-topmost windows.

Sleep(int)

Suspends the execution of the current thread for a specified interval.

UninitializeFlatSB(IntPtr)

Uninitializes flat scroll bars for a particular window.

UpdateCompositionWindow(IntPtr, Point, IntPtr)

Updates position information for a composition window.

UpdateListBoxVirtualStyle(int)

Updates listbox style to provide a virtual mode.

UpdateNonClientArea(IntPtr)