The Win32 application programming interface (API) includes functions and messages that allow applications to log off the current user or shut down the system.