###Function###
WinGetProcess

###Description###
Retrieves the Process ID (PID) associated with a window.

###Syntax###
WinGetProcess ( "title" [, "text"] )


###Parameters###
@@ParamTable@@
title
	The title of the window to read. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	[optional] The text of the window to read.
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns a numeric Process ID (PID).
Failure:	Returns -1.
@@End@@


###Remarks###
None.

###Related###
ProcessWait, ProcessWaitClose, ProcessList


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