cancel
Showing results for 
Search instead for 
Did you mean: 

Check any background process is running.

Former Member
0 Kudos
318

Dear Team,

As you know as a powerbuilder classic developer we can check the user inactivity using idle event, we can also check the database connectivity using DBHandle. Can any body help me how do i check any background process / processes are running in application (which is developed in powerbuilder) like text file generation (without database connectivity) or any procedure (Oracle) call which is running in the database server but no user activity in application end. Means any background process running in powerbuilder end or database end without user activity. If you provide me the sample code it will help me lot.

Thanks

Avishek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to call the Windows API function CreateToolhelp32Snapshot. I have an example in the demo for Topwiz Software - PBNIServ.

Former Member
0 Kudos

Thanx Smith, In our environment we can't use any third party executable s but we can use Windows API. So we need some code example / suggestion to build our own logic using PB classic code using such API's. Please help.

Thanks

Avishek

Former Member
0 Kudos

You don't have to use the exe. Use the PB code that comes with it as an example of the API functions.