I am using a window handle from a user32 dll -
[DllImport("user32.dll")]
private static extern
bool SetForegroundWindow(IntPtr hWnd);
Some where in my code I write below piece of code to bring the UI to foreground.
IntPtr hWnd = _processes[n].MainWindowHandle;
SetForegroundWindow(hWnd);
now, I see IntPtr is a pointer here. Do I need to write something to dealocate the memory?
Thanks a lot in advance.