Class OSUtils
Represents native Win32 API methods.
public class OSUtils
- Inheritance
-
OSUtils
Fields
Methods
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.