获取任务栏句柄

HWND GetTaskmanWindow()
{
	typedef HWND (WINAPI* PROCGETTASKMANWND)();
	HMODULE hUser32 = GetModuleHandle("user32");

	PROCGETTASKMANWND GetTaskManWindow = (PROCGETTASKMANWND)GetProcAddress(hUser32, "GetTaskmanWindow");
	return HWND(GetTaskManWindow());
}

你可能感兴趣的:(获取任务栏句柄)