F
Frank Uray
Hi all
I need to get informations about the current active window.
For example:
When the user is in explorer, I need to get the currently
selected path/file, or when the user is in word, I need to know
the path of the opened document.
I have tried to using
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern int GetForegroundWindow();
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern int GetWindowText(int hWnd, StringBuilder text, int
count);
But these functions dont have enough informations.
Thanks for any help.
Best regards
Frank Uray
I need to get informations about the current active window.
For example:
When the user is in explorer, I need to get the currently
selected path/file, or when the user is in word, I need to know
the path of the opened document.
I have tried to using
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern int GetForegroundWindow();
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern int GetWindowText(int hWnd, StringBuilder text, int
count);
But these functions dont have enough informations.
Thanks for any help.
Best regards
Frank Uray