Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Closing a .NET Application from PB 12.6

$
0
0

Good Day!

 

Our current release, which is in development, is the first we are deploying as 64 bit. Our application opens a C#.NET application and, until we tried 64 bit, we could close any open instances of the .NET application when our PB application closed.

 

What we do is find the handle(s) via FindWindowW and then issue Send( handle, 16, 0 0 ). This works fine in a 32 bit deployment as well as in the PB IDE (being 32 bit). The 64 bit EXE does not work, though.

 

I read another discussion here about using CreateMutex to get a handle in 64 bit. I tried it and it does get me the handle, but I am at a loss as how to close the external .NET application. I tried Send( handle, 16, 0 0) but that just returns 0 and leaves the application open.

 

I even tried issuing TASKKILL with the appropriate arguments. It worked fine in the PB IDE, but not the 64 bit EXE.

 

Basically, I just need a way for my 64 bit deployment (PB 12.6) to close other applications. Google has not produced anything that works for me, so far.

 

Thanks!

Tom


Viewing all articles
Browse latest Browse all 2881

Trending Articles