codice:
HWND getSystemTrayHwnd ()
{
	HWND hwndTray;
//310
	HWND hwndStartMenu = FindWindow ("ShellTrayWnd",NULL);
	HWND hwndChild = GetWindow (hwndStartMenu,GW_CHILD);
	int iClassName = 0;
	char szClass [255];


	do
	{
		iClassName= GetClassName (hwndChild,szClass,sizeof(szClass));
//320
		if (strstr(szClass,"TrayNotifyWnD"))
		{ 
			hwndTray = hwndChild;
			break;
		}
		else
		{
			hwndChild = GetWindow (hwndChild,GW_HWNDNEXT);
		}while (true);
//330
	}

	return hwndTray;

}
l'errore me lo da su return