Function:
FindWindow (lpClassName, lpWindowName)

Description:
Retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.

Parameters:
lpClassName: The name of the window class of the window to find.
lpWindowName: The name of the title bar text of the window to find.

Returns:
If successful, the function returns a handle to the window that was found. If no matching window could be found, or if an error occured, the function returns zero.

Example:
Click on the calc icon to view a sample of the FindWindow function.