System.Windows.API Namespace

Classes

public class CommonDialogError
public class WindowsAPIException

Functions

public void AddClipboardFormatListener(void* windowHandle)
public void* BeginPaint(void* windowHandle, void*& paintStruct)
public void BringWindowToTop(void* windowHandle)
public Point ClientToScreen(void* windowHandle, const Point& point)
public void CloseClipboard()
public void CloseEvent(void* eventHandle)
public void CloseHandle(void* handle)
public void CreateCaret(void* windowHandle, void* bitmapHandle, int width, int height)
public void* CreateEvent()
public void* CreateWindowByClassAtom(ushort windowClass, const char* windowName, long style, long exStyle, Point location, Size size, Control* parent)
public void* CreateWindowByClassName(const char* windowClass, const char* windowName, long style, long exStyle, Point location, Size size, Control* parent)
public void DestroyCaret()
public void EmptyClipboard()
public void EndPaint(void* windowHandle, void* paintStruct)
public void FindCloseChangeNotification(void* notificationHandle)
public void* FindFirstChangeNotification(const String<char>& directoryPath)
public void FindNextChangeNotification(void* notificationHandle)
public Point GetCaretPos()
public long GetClassLong(void* windowHandle, ClassLongIndex index)
public WinRect GetClientRect(void* windowHandle)
public void* GetClipboardData(uint format)
public void GetCursorPos(int& x, int& y)
public void* GetDC(void* windowHandle)
public String<char> GetFolder(void* windowHandle, const String<char>& defaultDirectory)
public bool GetOpenFileName(void* windowHandle, const List<Pair<String<char>, String<char>>>& descriptionFilterPairs, const String<char>& initialDirectory, const String<char>& defaultFilePath, const String<char>& defaultExtension, uint flags, String<char>& currentDirectory, List<String<char>>& fileNames)
public bool GetSaveFileName(void* windowHandle, const List<Pair<String<char>, String<char>>>& descriptionFilterPairs, const String<char>& initialDirectory, const String<char>& defaultFilePath, const String<char>& defaultExtension, uint flags, String<char>& currentDirectory, String<char>& filePath)
public void GetScrollInfo(void* windowHandle, ScrollBar scrollBar, uint& nPage, int& nPos, int& nMin, int& nMax, int& nTrackPos)
public int GetSystemMetrics(int index)
public void* GetTopWindow(void* windowHandle)
public long GetWindowLong(void* windowHandle, WindowLongIndex index)
public WinRect GetWindowRect(void* windowHandle)
public String<char> GetWindowText(void* windowHandle)
public int GetWindowTextLength(void* windowHandle)
public String<char> GetWindowsAPIErrorMessage(ulong errorCode)
public void* GlobalAlloc(GlobalAllocFlags flags, ulong size)
public void GlobalFree(void* memHandle)
public void* GlobalLock(void* memHandle)
public ulong GlobalSize(void* memHandle)
public void GlobalUnlock(void* memHandle)
public void HideCaret(void* windowHandle)
public void InvalidateRect(void* windowHandle, WinRect* rect, bool eraseBackground)
public bool IsClipboardFormatAvailable(uint format)
public void KillTimer(void* windowHandle, uint timerId)
public void* LoadBitmap(const char* name)
public void* LoadCursor(const char* name)
public void* LoadIcon(const char* name)
public void* LoadImage(const char* name, uint type, int cx, int cy)
public nothrow bool MessageBeep(uint beepType)
public void MessageBeepChecked(uint beepType)
public void MoveWindow(void* windowHandle, const Point& location, const Size& size, bool repaint)
public void OpenClipboard(void* windowHandle)
public void PostMessage(void* windowHandle, uint msg, uint wparam, long lparam)
public nothrow bool PtInRect(const Point& point, const WinRect& rect)
public uint RegisterClipboardFormat(const char* formatName)
public ushort RegisterWindowClass(const char* windowClassName, uint style, int backgroundColor)
public void RemoveClipboardFormatListener(void* windowHandle)
public void ResetEvent(void* eventHandle)
public Point ScreenToClient(void* windowHandle, const Point& point)
public void ScrollWindow(void* windowHandle, int xAmount, int yAmount, const Rect* clientRect, const Rect* clipRect)
public void ScrollWindowEx(void* windowHandle, int dx, int dy, const Rect* clientRect, const Rect* clipRect, const Rect& updateRect)
public void SetCaretPos(const Point& caretPos)
public void SetClassLong(void* windowHandle, ClassLongIndex index, long newValue)
public void* SetClipboardData(uint format, void* mem)
public void SetEvent(void* eventHandle)
public void SetParentWindow(void* childWindowHandle, void* parentWindowHandle)
public int SetScrollInfo(void* windowHandle, ScrollBar scrollBar, ScrollInfoMask mask, bool redraw, uint nPage, int nPos, int nMin, int nMax)
public void SetTimer(void* windowHandle, uint timerId, uint elapseMs)
public void SetWindowLong(void* windowHandle, WindowLongIndex index, long newValue)
public void SetWindowPos(void* windowHandle, void* insertAfterWindowHandle, int x, int y, int cx, int cy, SetWindowPosFlags flags)
public void SetWindowText(void* windowHandle, const String<char>& text)
public void ShellExecute(const String<char>& filePath)
public void ShowCaret(void* windowHandle)
public void ShowScrollBar(void* windowHandle, ScrollBar scrollBar, bool show)
public void ThrowCommonDialogError(uint errorCode)
public void WaitEvent(void* eventHandle)
public int WaitForMultipleObjects(const List<void*>& handles)
public nothrow void* WindowPosHandle(WindowPos pos)

Enumerated Types

public enum ClassLongIndex
public enum GlobalAllocFlags
public enum ScrollBar
public enum ScrollInfoMask
public enum SetWindowPosFlags
public enum WindowLongIndex
public enum WindowPos

Constants

public const long ERROR_BAD_FORMAT = 3
public const long ERROR_CODE_NOT_FOUND = -1
public const long ERROR_DUPLICATE_CODE_MAPPING = -2
public const long ERROR_FILE_NOT_FOUND = 1
public const long ERROR_OUT_OF_RESOURCES = 0
public const long ERROR_PATH_NOT_FOUND = 2
public const uint OFN_ALLOWMULTISELECT = 0x00000200u
public const uint OFN_CREATEPROMPT = 0x00002000u
public const uint OFN_ENABLEHOOK = 0x00000020u
public const uint OFN_ENABLETEMPLATE = 0x00000040u
public const uint OFN_ENABLETEMPLATEHANDLE = 0x00000080u
public const uint OFN_EXPLORER = 0x00080000u
public const uint OFN_EXTENSIONDIFFERENT = 0x00000400u
public const uint OFN_FILEMUSTEXIST = 0x00001000u
public const uint OFN_HIDEREADONLY = 0x00000004u
public const uint OFN_LONGNAMES = 0x00200000u
public const uint OFN_NOCHANGEDIR = 0x00000008u
public const uint OFN_NODEREFERENCELINKS = 0x00100000u
public const uint OFN_NOLONGNAMES = 0x00040000u
public const uint OFN_NONETWORKBUTTON = 0x00020000u
public const uint OFN_NOREADONLYRETURN = 0x00008000u
public const uint OFN_NOTESTFILECREATE = 0x00010000u
public const uint OFN_NOVALIDATE = 0x00000100u
public const uint OFN_OVERWRITEPROMPT = 0x00000002u
public const uint OFN_PATHMUSTEXIST = 0x00000800u
public const uint OFN_READONLY = 0x00000001u
public const uint OFN_SHAREAWARE = 0x00004000u
public const uint OFN_SHOWHELP = 0x00000010u
public const long SE_ERR_ACCESSDENIED = 4
public const long SE_ERR_ASSOCINCOMPLETE = 5
public const long SE_ERR_DDEBUSY = 6
public const long SE_ERR_DDEFAIL = 7
public const long SE_ERR_DDETIMEOUT = 8
public const long SE_ERR_DLLNOTFOUND = 9
public const long SE_ERR_FNF = 10
public const long SE_ERR_NOASSOC = 11
public const long SE_ERR_OOM = 12
public const long SE_ERR_PNF = 13
public const long SE_ERR_SHARE = 14

Function Details

AddClipboardFormatListener Function

public void AddClipboardFormatListener(void* windowHandle)

Definition
Line 1189 of System.Windows/Api.cm


BeginPaint Function

public void* BeginPaint(void* windowHandle, void*& paintStruct)

Definition
Line 385 of System.Windows/Api.cm


BringWindowToTop Function

public void BringWindowToTop(void* windowHandle)

Definition
Line 821 of System.Windows/Api.cm


ClientToScreen Function

public Point ClientToScreen(void* windowHandle, const Point& point)

Definition
Line 310 of System.Windows/Api.cm


CloseClipboard Function

public void CloseClipboard()

Definition
Line 1146 of System.Windows/Api.cm


CloseEvent Function

public void CloseEvent(void* eventHandle)

Definition
Line 131 of System.Windows/Api.cm


CloseHandle Function

public void CloseHandle(void* handle)

Definition
Line 122 of System.Windows/Api.cm


CreateCaret Function

public void CreateCaret(void* windowHandle, void* bitmapHandle, int width, int height)

Definition
Line 1043 of System.Windows/Api.cm


CreateEvent Function

public void* CreateEvent()

Definition
Line 85 of System.Windows/Api.cm


CreateWindowByClassAtom Function

public void* CreateWindowByClassAtom(ushort windowClass, const char* windowName, long style, long exStyle, Point location, Size size, Control* parent)

Definition
Line 243 of System.Windows/Api.cm


CreateWindowByClassName Function

public void* CreateWindowByClassName(const char* windowClass, const char* windowName, long style, long exStyle, Point location, Size size, Control* parent)

Definition
Line 261 of System.Windows/Api.cm


DestroyCaret Function

public void DestroyCaret()

Definition
Line 1052 of System.Windows/Api.cm


EmptyClipboard Function

public void EmptyClipboard()

Definition
Line 1155 of System.Windows/Api.cm


EndPaint Function

public void EndPaint(void* windowHandle, void* paintStruct)

Definition
Line 395 of System.Windows/Api.cm


FindCloseChangeNotification Function

public void FindCloseChangeNotification(void* notificationHandle)

Definition
Line 76 of System.Windows/Api.cm


FindFirstChangeNotification Function

public void* FindFirstChangeNotification(const String<char>& directoryPath)

Definition
Line 57 of System.Windows/Api.cm


FindNextChangeNotification Function

public void FindNextChangeNotification(void* notificationHandle)

Definition
Line 67 of System.Windows/Api.cm


GetCaretPos Function

public Point GetCaretPos()

Definition
Line 1079 of System.Windows/Api.cm


GetClassLong Function

public long GetClassLong(void* windowHandle, ClassLongIndex index)

Definition
Line 882 of System.Windows/Api.cm


GetClientRect Function

public WinRect GetClientRect(void* windowHandle)

Definition
Line 288 of System.Windows/Api.cm


GetClipboardData Function

public void* GetClipboardData(uint format)

Definition
Line 1174 of System.Windows/Api.cm


GetCursorPos Function

public void GetCursorPos(int& x, int& y)

Definition
Line 1268 of System.Windows/Api.cm


GetDC Function

public void* GetDC(void* windowHandle)

Definition
Line 423 of System.Windows/Api.cm


GetFolder Function

public String<char> GetFolder(void* windowHandle, const String<char>& defaultDirectory)

Definition
Line 1275 of System.Windows/Api.cm


GetOpenFileName Function

public bool GetOpenFileName(void* windowHandle, const List<Pair<String<char>, String<char>>>& descriptionFilterPairs, const String<char>& initialDirectory, const String<char>& defaultFilePath, const String<char>& defaultExtension, uint flags, String<char>& currentDirectory, List<String<char>>& fileNames)

Definition
Line 630 of System.Windows/Api.cm


GetSaveFileName Function

public bool GetSaveFileName(void* windowHandle, const List<Pair<String<char>, String<char>>>& descriptionFilterPairs, const String<char>& initialDirectory, const String<char>& defaultFilePath, const String<char>& defaultExtension, uint flags, String<char>& currentDirectory, String<char>& filePath)

Definition
Line 707 of System.Windows/Api.cm


GetScrollInfo Function

public void GetScrollInfo(void* windowHandle, ScrollBar scrollBar, uint& nPage, int& nPos, int& nMin, int& nMax, int& nTrackPos)

Definition
Line 1012 of System.Windows/Api.cm


GetSystemMetrics Function

public int GetSystemMetrics(int index)

Definition
Line 806 of System.Windows/Api.cm


GetTopWindow Function

public void* GetTopWindow(void* windowHandle)

Definition
Line 816 of System.Windows/Api.cm


GetWindowLong Function

public long GetWindowLong(void* windowHandle, WindowLongIndex index)

Definition
Line 919 of System.Windows/Api.cm


GetWindowRect Function

public WinRect GetWindowRect(void* windowHandle)

Definition
Line 299 of System.Windows/Api.cm


GetWindowText Function

public String<char> GetWindowText(void* windowHandle)

Definition
Line 360 of System.Windows/Api.cm


GetWindowTextLength Function

public int GetWindowTextLength(void* windowHandle)

Definition
Line 346 of System.Windows/Api.cm


GetWindowsAPIErrorMessage Function

public String<char> GetWindowsAPIErrorMessage(ulong errorCode)

Definition
Line 30 of System.Windows/Api.cm


GlobalAlloc Function

public void* GlobalAlloc(GlobalAllocFlags flags, ulong size)

Definition
Line 1216 of System.Windows/Api.cm


GlobalFree Function

public void GlobalFree(void* memHandle)

Definition
Line 1249 of System.Windows/Api.cm


GlobalLock Function

public void* GlobalLock(void* memHandle)

Definition
Line 1226 of System.Windows/Api.cm


GlobalSize Function

public ulong GlobalSize(void* memHandle)

Definition
Line 1258 of System.Windows/Api.cm


GlobalUnlock Function

public void GlobalUnlock(void* memHandle)

Definition
Line 1236 of System.Windows/Api.cm


HideCaret Function

public void HideCaret(void* windowHandle)

Definition
Line 1070 of System.Windows/Api.cm


InvalidateRect Function

public void InvalidateRect(void* windowHandle, WinRect* rect, bool eraseBackground)

Definition
Line 400 of System.Windows/Api.cm


IsClipboardFormatAvailable Function

public bool IsClipboardFormatAvailable(uint format)

Definition
Line 1184 of System.Windows/Api.cm


KillTimer Function

public void KillTimer(void* windowHandle, uint timerId)

Definition
Line 1108 of System.Windows/Api.cm


LoadBitmap Function

public void* LoadBitmap(const char* name)

Definition
Line 796 of System.Windows/Api.cm


LoadCursor Function

public void* LoadCursor(const char* name)

Definition
Line 776 of System.Windows/Api.cm


LoadIcon Function

public void* LoadIcon(const char* name)

Definition
Line 786 of System.Windows/Api.cm


LoadImage Function

public void* LoadImage(const char* name, uint type, int cx, int cy)

Definition
Line 766 of System.Windows/Api.cm


MessageBeep Function

public nothrow bool MessageBeep(uint beepType)

Definition
Line 409 of System.Windows/Api.cm


MessageBeepChecked Function

public void MessageBeepChecked(uint beepType)

Definition
Line 414 of System.Windows/Api.cm


MoveWindow Function

public void MoveWindow(void* windowHandle, const Point& location, const Size& size, bool repaint)

Definition
Line 279 of System.Windows/Api.cm


OpenClipboard Function

public void OpenClipboard(void* windowHandle)

Definition
Line 1127 of System.Windows/Api.cm


PostMessage Function

public void PostMessage(void* windowHandle, uint msg, uint wparam, long lparam)

Definition
Line 428 of System.Windows/Api.cm


PtInRect Function

public nothrow bool PtInRect(const Point& point, const WinRect& rect)

Definition
Line 332 of System.Windows/Api.cm


RegisterClipboardFormat Function

public uint RegisterClipboardFormat(const char* formatName)

Definition
Line 1117 of System.Windows/Api.cm


RegisterWindowClass Function

public ushort RegisterWindowClass(const char* windowClassName, uint style, int backgroundColor)

Definition
Line 233 of System.Windows/Api.cm


RemoveClipboardFormatListener Function

public void RemoveClipboardFormatListener(void* windowHandle)

Definition
Line 1198 of System.Windows/Api.cm


ResetEvent Function

public void ResetEvent(void* eventHandle)

Definition
Line 104 of System.Windows/Api.cm


ScreenToClient Function

public Point ScreenToClient(void* windowHandle, const Point& point)

Definition
Line 321 of System.Windows/Api.cm


ScrollWindow Function

public void ScrollWindow(void* windowHandle, int xAmount, int yAmount, const Rect* clientRect, const Rect* clipRect)

Definition
Line 938 of System.Windows/Api.cm


ScrollWindowEx Function

public void ScrollWindowEx(void* windowHandle, int dx, int dy, const Rect* clientRect, const Rect* clipRect, const Rect& updateRect)

Definition
Line 969 of System.Windows/Api.cm


SetCaretPos Function

public void SetCaretPos(const Point& caretPos)

Definition
Line 1090 of System.Windows/Api.cm


SetClassLong Function

public void SetClassLong(void* windowHandle, ClassLongIndex index, long newValue)

Definition
Line 896 of System.Windows/Api.cm


SetClipboardData Function

public void* SetClipboardData(uint format, void* mem)

Definition
Line 1164 of System.Windows/Api.cm


SetEvent Function

public void SetEvent(void* eventHandle)

Definition
Line 95 of System.Windows/Api.cm


SetParentWindow Function

public void SetParentWindow(void* childWindowHandle, void* parentWindowHandle)

Definition
Line 376 of System.Windows/Api.cm


SetScrollInfo Function

public int SetScrollInfo(void* windowHandle, ScrollBar scrollBar, ScrollInfoMask mask, bool redraw, uint nPage, int nPos, int nMin, int nMax)

Definition
Line 1029 of System.Windows/Api.cm


SetTimer Function

public void SetTimer(void* windowHandle, uint timerId, uint elapseMs)

Definition
Line 1099 of System.Windows/Api.cm


SetWindowLong Function

public void SetWindowLong(void* windowHandle, WindowLongIndex index, long newValue)

Definition
Line 929 of System.Windows/Api.cm


SetWindowPos Function

public void SetWindowPos(void* windowHandle, void* insertAfterWindowHandle, int x, int y, int cx, int cy, SetWindowPosFlags flags)

Definition
Line 859 of System.Windows/Api.cm


SetWindowText Function

public void SetWindowText(void* windowHandle, const String<char>& text)

Definition
Line 337 of System.Windows/Api.cm


ShellExecute Function

public void ShellExecute(const String<char>& filePath)

Definition
Line 149 of System.Windows/Api.cm


ShowCaret Function

public void ShowCaret(void* windowHandle)

Definition
Line 1061 of System.Windows/Api.cm


ShowScrollBar Function

public void ShowScrollBar(void* windowHandle, ScrollBar scrollBar, bool show)

Definition
Line 1034 of System.Windows/Api.cm


ThrowCommonDialogError Function

public void ThrowCommonDialogError(uint errorCode)

Definition
Line 437 of System.Windows/Api.cm


WaitEvent Function

public void WaitEvent(void* eventHandle)

Definition
Line 113 of System.Windows/Api.cm


WaitForMultipleObjects Function

public int WaitForMultipleObjects(const List<void*>& handles)

Definition
Line 136 of System.Windows/Api.cm


WindowPosHandle Function

public nothrow void* WindowPosHandle(WindowPos pos)

Definition
Line 835 of System.Windows/Api.cm