mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Extended the running instance MessageBox with the paths of the instances. Made to get a better fix for #3526579
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1847 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
6811094a29
commit
e5cf074386
5 changed files with 72 additions and 52 deletions
|
@ -92,10 +92,10 @@ EndSelection:<<<<<<<4
|
|||
try {
|
||||
IntPtr hWnd = User32.GetClipboardOwner();
|
||||
if (hWnd != IntPtr.Zero) {
|
||||
uint pid = 0;
|
||||
uint tid = User32.GetWindowThreadProcessId( hWnd, out pid );
|
||||
IntPtr pid = IntPtr.Zero;
|
||||
IntPtr tid = User32.GetWindowThreadProcessId( hWnd, out pid);
|
||||
Process me = Process.GetCurrentProcess();
|
||||
Process ownerProcess = Process.GetProcessById( (int)pid );
|
||||
Process ownerProcess = Process.GetProcessById( pid.ToInt32() );
|
||||
// Exclude myself
|
||||
if (ownerProcess != null && me.Id != ownerProcess.Id) {
|
||||
// Get Process Name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue