API Reference - Functions

CreateWindowExA

Win32 API Function
HWND CreateWindowExA( DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam );

Creates an overlapped, top-level window. A child window, a tooltip window, a pop-up window, a top-most window, or a transformer window. To specify a class style, registered class, or extended style, use the CreateWindowEx function.

Header:
winuser.h
Library:
user32.lib
DLL:
user32.dll

GetMessageA

Win32 API Function
BOOL GetMessageA( LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax );

Retrieves messages from the calling thread's message queue.

Header:
winuser.h
Library:
user32.lib
DLL:
user32.dll

SetWindowTextA

Win32 API Function
BOOL SetWindowTextA( HWND hWnd, LPCSTR lpString );

Changes the text of the specified window's title bar (if it has one) or the text of a control. If the given window is a control, the value of the dwStyle member must be one of the following window styles: BS_DEFPUSHBUTTON, BS_PUSHBUTTON, BS_CHECKBOX, BS_USERBUTTON, BM_GETCHECK, BM_SETCHECK, BM_GETSTATE, BM_SETSTATE, BM_SETSTYLE.

Header:
winuser.h
Library:
user32.lib
DLL:
user32.dll

MessageBoxA

Win32 API Function
int MessageBoxA( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType );

Creates, displays, and operates a message box, which is a dialog box that presents a specified message to the user, potentially with an icon and a set of buttons, and waits for the user to respond to the icon and buttons.

Header:
winuser.h
Library:
user32.lib
DLL:
user32.dll

Sleep

Kernel32 API Function
VOID Sleep( DWORD dwMilliseconds );

Suspends the current thread for a specified interval.

Header:
windows.h
Library:
kernel32.lib
DLL:
kernel32.dll