[DllImport("user32.dll")] public static extern
int GetWindowModuleFileName(IntPtr hWnd, System.Text.StringBuilder title,
int size);
and to call it:
System.Text.StringBuilder title = new System.Text.StringBuilder(256);
HK.WIN32API.User32.GetWindowModuleFileName(hwnd, title, 256);
Unfortunately title is an empty string all the time, besides I do this for a
window handle of my own app.
Any idea why?
Best regards,
Holger
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.