# Function Reference

# _WinAPI_WindowFromDC

Retrieves a handle to the window associated with the specified display device context (DC)

#include <WinAPIGdi.au3>
_WinAPI_WindowFromDC ( $hDC )

## Parameters

$hDC | Handle to the device context from which a handle to the associated window is to be retrieved.

## Return Value

Success: | Handle to the window associated with the specified DC. If no window is associated with the specified DC, the return value is 0.
Failure: | 0.

## See Also

Search WindowFromDC in MSDN Library.