###User Defined Function###
_WinAPI_GetDlgCtrlID

###Description###
Returns the identifier of the specified control

###Syntax###
#include <WinAPI.au3>
_WinAPI_GetDlgCtrlID ( $hWnd )


###Parameters###
@@ParamTable@@
$hWnd
	Handle to the control
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Identifier of the control
Failure:	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
GetDlgCtrlID accepts child window handles as well as handles of controls in dialog boxes. An application sets
the identifier for a child window when it creates the window by assigning the identifier value to the hmenu
parameter when calling the CreateWindow or CreateWindowEx function. Although GetDlgCtrlID may return a value
if $hWnd identifies a top-level window, top-level windows cannot have identifiers and such a return value is
never valid.


###Related###


###See Also###
@@MsdnLink@@ GetDlgCtrlID


###Example###
@@IncludeExample@@
