Lock a launched application?

From: Anthoni Gardner (nono_at_nono.com)
Date: 10/28/03


Date: Tue, 28 Oct 2003 00:11:39 -0000

Hello,

I am wanting to create a launch bed application for some people and one of
the specifics they have asked for is this.

1) They want to be able to only launch programs only from this application
and restrict all others and terminate them.

2) When an application is launched it needs to be locked so only 1 instance
is allowed and all others are denied.

I know you can run programs using the CreateProcess and that you can wait
until the application is finished (using WaitForSingleObject) but I am not
sure if this obtains an exclusive lock on the application exe itself and
thus preventing any more instances.

If anyone can shed some light onto this please, or point me in the right
direction I would be grateful.

Development = D7
Windows = 98 (probably), NT, 200X, XP

Regards
Anthoni



Relevant Pages

  • Re: Problem with file accessing
    ... Now the problem is once i launch and close the application and immediately ... XmlDocument dom = new XmlDocument; ... string strFileName = Application.StartupPath + ... time and launch Programs and Reports, as the Programs list is being ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Substitute/alternate for Quick Launch
    ... > Note that although the Quick Launch Bar is on the taskbar by default, ... You can drag it off the taskbar and put it ... >>> complicated to launch programs now. ... >>> similar to Quick Launch (wish to launch programs with mouse not ...
    (microsoft.public.windowsxp.general)
  • Problem with file accessing
    ... My Problem is i have an application that launches an external process on a button click. ... Now the problem is once i launch and close the application and immediately relaunch the application it gives me an exception saying that the file is in use. ... XmlDocument dom = new XmlDocument; ... InformationAlert.Show("Please wait for some time and launch Programs and Reports, as the Programs list is being refreshed.",true); ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Substitute/alternate for Quick Launch
    ... You can resize the quick launch bar to suit your needs, ... hold so many icons before filling up the taskbar. ... > Quick Launch (wish to launch programs with mouse not keyboard) and it ...
    (microsoft.public.windowsxp.general)
  • Re: Milltronics is Purchased
    ... In our "one button" poll, ... SeanMC, wanting to launch his into space. ...
    (alt.machines.cnc)