Search notes:

Windows.h

Windows.h is the main header file for Windows applications written in C or C++.

Excluding WinAPI function declarations and associated structures

WIN32_LEAN_AND_MEAN

One might define the preprocessor macro WIN32_LEAN_AND_MEAN before including windows.h in order to exclude declarations of WinAPI functions pertaining to
  • Cryptography
  • DDE
  • RPC
  • Shell
  • Windows Sockets

NOxyz

Additionally, NOxyz can be defined to exclude the xyz-API:
Macro If defined, it excludes: Will be defined if RC_INVOKED is defned
NOGDICAPMASKS CC_*, LC_*, PC_*, CP_*, TC_*, RC_
NOCRYPT
NOVIRTUALKEYCODES VK_*
NOWINMESSAGES WM_*, EM_*, LB_*, CB_*
NOWINSTYLES WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
NOSYSMETRICS SM_*
NOMENUS MF_*
NOICONS IDI_*
NOKEYSTATES MK_*
NOSYSCOMMANDS SC_*
NORASTEROPS Binary and Tertiary raster ops
NOSHOWWINDOW SW_*
OEMRESOURCE OEM Resource values
NOATOM Atom Manager routines
NOCLIPBOARD Clipboard routines
NOCOLOR Screen colors
NOCTLMGR Control and Dialog routines
NODRAWTEXT DrawText() and DT_*
NOGDI All GDI defines and routines
NOKERNEL All KERNEL defines and routines
NOUSER All USER defines and routines
NONLS All NLS defines and routines
NOMB MB_* and MessageBox()
NOMEMMGR GMEM_*, LMEM_*, GHND, LHND, associated routines
NOMETAFILE typedef METAFILEPICT
NOMINMAX Macros min(a,b) and max(a,b)
NOMSG typedef MSG and associated routines
NOOPENFILE OpenFile(), OemToAnsi, AnsiToOem, and OF_*
NOSCROLL SB_* and scrolling routines
NOSERVICE All Service Controller routines, SERVICE_ equates, etc.
NOSOUND Sound driver routines
NOTEXTMETRIC typedef TEXTMETRIC and associated routines
NOWH SetWindowsHook and WH_*
NOWINOFFSETS GWL_*, GCL_*, associated routines
NOCOMM COMM driver routines (serial communication API)
NOKANJI Kanji support stuff.
NOHELP Help engine interface.
NOPROFILER Profiler interface.
NODEFERWINDOWPOS DeferWindowPos routines
NOMCX Modem Configuration Extensions

See also

When including <windows.h>, the macro _AMD64_ might become defined.
WinAPI data types and constants

Index