473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Program to block Windows application

Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?

Thanks a million.
meerubus

Apr 29 '06 #1
9 2992
meerubus wrote:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
What's wrong with that?
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?


Dunno, perhaps if you asked at the right place you would get some
answers.

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jonathan

Apr 29 '06 #2
meerubus wrote:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?

Thanks a million.
meerubus


This is OFF-TOPIC but may I hint you to look at group policy.

Ben
Apr 29 '06 #3
On 28 Apr 2006 18:24:32 -0700, "meerubus" <me******@hotmail.com> wrote
in comp.lang.c++:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?

Thanks a million.
meerubus


Two possibilities:

1. Uninstall the program.

2. Reformat and install Linux.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Apr 29 '06 #4
"meerubus" <me******@hotmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com
Hi,
Could someone advise how to go about writing a (simple?) C++ program
to block a windows exe file from running? For example, my child
likes to run halo.exe & the pgm can run even in a non-administrator
account. Can I write a C++ program to block it from running? In
addition, if the pgm filename is changed (eg. halo.exe to xxx.exe),
can the block still work?

Thanks a million.
meerubus

This is severely off-topic since:

1. It probably doesn't require programming.

2. It is Windows specific, whereas this group deals with standard C++ and
not with the details of particular operating systems.

Ask in a group concerned with your particular operating system from a user
point of view, e.g.,

microsoft.public.win2000.general
or
microsoft.public.windowsxp.general
--
John Carson
Apr 29 '06 #5
:-D

Apr 29 '06 #6
GB
meerubus wrote:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?

Thanks a million.
meerubus


This is not the sort of thing you need to use C++ for. You just need to
set the permissions on the exe file appropriately (deny execute
permission on the file to the account your child uses). For details, ask
in a Windows group.

Gregg
Apr 29 '06 #7
meerubus posted:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?

Thanks a million.
meerubus

A lot of Windows programs check if they're already running by checking if a
certain mutex has already been created. Find out the name of the mutex,
create that mutex, and when the executable file is run, it will think it's
already running and just shut down.
-Tomás
Apr 29 '06 #8
meerubus wrote:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.


You just rename the executable. If he's clever he'll know how to either
fix this (he knows the correct file-name or he'll google for it) or
he'll reinstall the program.

Best regards / Med venlig hilsen
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
Apr 29 '06 #9
al pacino wrote:
:-D


This is not IM. Please review the information below.

Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
Apr 29 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian Roberts | last post by:
I have a command line Python program that sometimes takes a bit (several minutes) to run. I want to provide an optional method for an impatient user (me!) to check the status of the program. The...
1
by: Tony Johansson | last post by:
Hello experts! As this program is now it's works perfectly when running as a application or as an Applet. Now to my question if I just change this row "public class Converter extends Applet "...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
7
by: Lucas | last post by:
Hi, I have an ASP.Net application written with VS.Net 2002 (Net FWK 1.0). This Web Application uses Exception Management Application Block to log Events to Windows Event Log. We registered the...
4
by: Sam Learner | last post by:
Hi Everyone, I'd like to create my own Internet Popup windows Stopping program. Is there any code I could you to monitor when IE or Netscape opens a Windows from a clicked Link? how about managed...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
1
by: bg_ie | last post by:
Hi, I have my own UserSettings class that I wish to include within my windows application. To include it at the moment, I do something like this - namespace WindowsApplication1 { static...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.