3 Replies - 1449 Views - Last Post: 12 December 2007 - 03:46 AM Rate Topic: -----

#1 ItsaMystery  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 03-September 07

"Blocking/Disallowing" applications from opening

Posted 03 December 2007 - 04:20 PM

Hi there -

My friend give me a small (yet interesting) programming project as a challenge. Essentially, he asked me to try and make a program that would disallow him to open x, y, and z applications (i.e. solitare, firefox, and winamp) before a certain time. If possible, you would be able to choose which apps to disallow and specify what time the applications would become "unlocked".

Is it possible to make a C# program that would run in the background and do this? If so, does anyone know of any tutorials to help me get started?

Thanks for your help.

- Itsa

Is This A Good Question/Topic? 0
  • +

Replies To: "Blocking/Disallowing" applications from opening

#2 ericode  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 112
  • Joined: 09-December 06

Re: "Blocking/Disallowing" applications from opening

Posted 11 December 2007 - 09:59 PM

Perhaps you could run this process in a loop with the System.Diagnostics

TASKKILL /FI "IMAGENAME eq winamp.exe"
Was This Post Helpful? 0
  • +
  • -

#3 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: "Blocking/Disallowing" applications from opening

Posted 12 December 2007 - 03:16 AM

You could place a 0xC3 byte (which stands for retn in Assembly Language) at the entrypoint location and save the original byte someplace.

This would lock the program. The second the program is opened to run, it will quit. Technically, the program still runs but quits before it can do anything. We're just modifying the executable file to make something that I'd like to call a SmartLock.

To unlock the program replace the 0xC3 byte at the entrypoint location with the original byte.
Was This Post Helpful? 0
  • +
  • -

#4 ItsaMystery  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 03-September 07

Re: "Blocking/Disallowing" applications from opening

Posted 12 December 2007 - 03:46 AM

Thanks so much both of you. :)

I will research these methods further and see what I can come up with!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1