.NET
アクティブなウィンドウのタイトルを取得する例を考えよう。 クラス内に以下の宣言を追加する: [DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll")] private static extern int GetWindowText(IntPt…
アクティブなウィンドウのタイトルを取得する例を考えよう。 クラス内に以下の宣言を追加する: [DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll")] private static extern int GetWindowText(IntPt…