Win32 API Constants Reference
Window Messaging Constants
WM_NULL
0x0000
Notifies an application of a null message.
WM_CREATE
0x0001
Notifies an application of the creation of a window.
WM_DESTROY
0x0002
Notifies an application of the destruction of a window.
WM_MOVE
0x0003
Notifies an application of a change in the position of a window.
WM_SIZE
0x0005
Notifies an application of a change in the size of a window.
WM_ACTIVATEAPP
0x0018
Notifies an application that a specified window is being deactivated or activated.
WM_PAINT
0x000F
Notifies an application that a part or all of a window has been invalidated and needs to be redrawn.
Window Style Constants
WS_OVERLAPPED
0x00000000L
Creates an overlapped window.
WS_POPUP
0x80000000L
Creates a popup window.
WS_CHILD
0x40000000L
Creates a child window.
WS_MINIMIZEBOX
0x00020000L
Includes a minimize button.
WS_MAXIMIZEBOX
0x00010000L
Includes a maximize button.
WS_CAPTION
0x00800000L
Includes a window caption (title bar).
WS_THICKFRAME
0x00400000L
Includes a thick, resizable frame.
File Attribute Constants
FILE_ATTRIBUTE_READONLY
0x00000001
The file is read-only.
FILE_ATTRIBUTE_HIDDEN
0x00000002
The file is hidden.
FILE_ATTRIBUTE_SYSTEM
0x00000004
The file is a system file.
FILE_ATTRIBUTE_DIRECTORY
0x00000010
The file is a directory.
FILE_ATTRIBUTE_ARCHIVE
0x00000020
The file is an archive file.
Error Code Constants
ERROR_SUCCESS
0
The operation completed successfully.
ERROR_INVALID_FUNCTION
1
Incorrect function.
ERROR_FILE_NOT_FOUND
2
The system cannot find the file specified.
ERROR_ACCESS_DENIED
5
Access is denied.
ERROR_INVALID_HANDLE
6
The handle is invalid.