cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting if Outlook 2013 is Running (PB12.5 Classic)

Former Member
0 Kudos

I thought this would be easy but cant' get it to work.  I tried using findwindow and createmutex (Unicode) and neither seems to find outlook when its running.  Anyone have a solution/example?

Thanks

Dave V.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David;

  FWIW: Have a look at my MS-Windows system explorer application. It locates any visual or non-visual application, services, gadgets, processes, etc. You should be able to adapt its walking through the MS-Windows control blocks to detect the running Outlook task.

FYI: Click here.

HTH

Regards ... Chris

Former Member
0 Kudos

Unfortunately I can't downloaded it from the site.  Security here picks it up and prevents the download.

Former Member
0 Kudos

Bummer ... its only SourceForge - I wonder why they are blocking that site?

Hopefully, you can grab it from another ISP account.  

Former Member
0 Kudos

Chris, I did find this code on this site and seems to work fine.  Is this similar to what you have?

Dave V.

--------------------------------------------------------------

/*  Determines whether the program is running or not.  */

OleObject locator,service,props

String ls_query = 'select name , description from Win32_Process where name = ".exe"'

int num, ret, i

SetPointer(HourGlass!)

locator = CREATE OleObject

ret = locator.ConnectToNewObject("WbemScripting.SWbemLocator");

service = locator.ConnectServer();

props = service.ExecQuery(ls_query);

num = props.count()

IF num > 0 THEN   

return true

ELSE    

return false

END IF

Former Member
0 Kudos

Hi David;

No, I am using the MS-Windows SDK functions ...

  GetDesktopWindow ()

  GetWindow ()

  GetClassName ()

However, if that code works for you as well ... thanks great! 

Regards ... Chris

former_member190719
Active Contributor
0 Kudos
Bummer ... its only SourceForge - I wonder why they are blocking that site?

Check out the following, it describes the problem - including the packaging of malware in popular downloads:

Homeless in Vancouver: Why the SourceForge website is dead to me | Georgia Straight Vancouver's News...

Perhaps they new owner (when their is one) will straighten things out:

DHI Group plans to sell off Slashdot and Sourceforge | Ars Technica

Former Member
0 Kudos

Hi Bruce;

  Thanks for the information on SF. I did not know that. 

Regards ... Chris

Former Member
0 Kudos

Thanks Bruce for the update... definitely did not know about that and will avoid the site from now on.

Dave V.

Former Member
0 Kudos

FWIW:

   Its strange though that SF is not blocked by the Canadian Government's firewalls & security policies. There security guys are pretty good here at blocking websites that can introduce harmful code. Many of the Federal Government's open source applications are downloaded from SF. So I am pretty confident that SF imposes no more current threat than GitHib or even CodePlex (where the PFC is located). I think the key when downloading anything from these sites, is that the developer pay due diligence to knowing what they are accepting.

former_member190719
Active Contributor
0 Kudos

A few more:

     Downloading from SourceForge? Official links deliver fakes also

     SourceForge commits reputational suicide | InfoWorld

     It's time to go away, Sourceforge - TechRepublic

Apparently if you use Chrome - or if you override the header your browser sends to make SF think you're using Chrome - it won't try to send you adware.  Otherwise beware.

The only problem I've been involved with that is still there is PowerPrinter.  Any other PowerBuilder projects I'm involved in are on CodePlex (e.g., PFC and PBNISMTP).  I would have used GitHub, but there wasn't a Git plugin like PushOK available at the time.

Former Member
0 Kudos

Hi Bruce;

  Thanks again for the extra information. I will definitely look into some of the SF alternatives.

David;

  Can you access either CodePlex or GitHub?

Regards ... Chris

Former Member
0 Kudos

Yes I can, just not sure if I will be allowed to download.

Dave V.

Former Member
0 Kudos

To download or not to download ... that is the question!  

Answers (0)