ウィンドウで特定の ProgressBar (msctls_progress32) の値を見つけようとしていますが、
次のウィンドウが見つかりました。
[DllImport("User32.dll")]
public static extern IntPtr FindWindow(string strClassName, string strWindowName);
しかし、次のように ProgressBar のポインターを取得できません。
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);
次に、値を取得したいポインタを取得したら:
public const int PBM_GETPOS = 0x0408;
[DllImport("User32.dll")]
public static extern Int32 SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
問題は、ウィンドウに複数の進行状況バーがあり、ポインターが必要な進行状況バーが複数の #32770 (ダイアログ) 内にあることです。