---
title: Window List Option Constants
framework: coregraphics
role: collectionGroup
role_heading: API Collection
path: coregraphics/window-list-option-constants
---

# Window List Option Constants

Specifies which windows in the current user session to include in a generated list.

## Overview

Overview The optionIncludingWindow and excludeDesktopElements constants may be combined with the other constants by adding (or ORing) them together and passing the resulting value to the appropriate function. These constants let you retrieve windows in the current user session only. You cannot use them to retrieve windows from other active user sessions running on the system.

## Topics

### Constants

- [optionAll](coregraphics/cgwindowlistoption/optionall.md)
- [optionOnScreenOnly](coregraphics/cgwindowlistoption/optiononscreenonly.md)
- [optionOnScreenAboveWindow](coregraphics/cgwindowlistoption/optiononscreenabovewindow.md)
- [optionOnScreenBelowWindow](coregraphics/cgwindowlistoption/optiononscreenbelowwindow.md)
- [optionIncludingWindow](coregraphics/cgwindowlistoption/optionincludingwindow.md)
- [excludeDesktopElements](coregraphics/cgwindowlistoption/excludedesktopelements.md)

## See Also

### Constants

- [Window Sharing Constants](coregraphics/window-sharing-constants.md)
- [Backing Store Types](coregraphics/backing-store-types.md)
- [Window Image Types](coregraphics/window-image-types.md)
- [CGWindowID Encoding Type](coregraphics/cgwindowid-encoding-type.md)
- [Null Window](coregraphics/null-window.md)
- [Window Sharing Encoding Type](coregraphics/window-sharing-encoding-type.md)
- [Window Backing Encoding Type](coregraphics/window-backing-encoding-type.md)
- [Required Window List Keys](coregraphics/required-window-list-keys.md)
- [Optional Window List Keys](coregraphics/optional-window-list-keys.md)
