 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
meerubus Guest
|
Posted: Sat Apr 29, 2006 2:06 am Post subject: 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 |
|
| Back to top |
|
 |
Jonathan Mcdougall Guest
|
Posted: Sat Apr 29, 2006 3:06 am Post subject: Re: Program to block Windows application |
|
|
meerubus wrote:
| Quote: | 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?
| Quote: | 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-lite/how-to-post.html#faq-5.9
Jonathan |
|
| Back to top |
|
 |
benben Guest
|
Posted: Sat Apr 29, 2006 4:06 am Post subject: Re: Program to block Windows application |
|
|
meerubus wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
Jack Klein Guest
|
Posted: Sat Apr 29, 2006 4:06 am Post subject: Re: Program to block Windows application |
|
|
On 28 Apr 2006 18:24:32 -0700, "meerubus" <meerubus (AT) hotmail (DOT) com> wrote
in comp.lang.c++:
| Quote: | 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/~ajo/docs/FAQ-acllc.html |
|
| Back to top |
|
 |
John Carson Guest
|
Posted: Sat Apr 29, 2006 5:06 am Post subject: Re: Program to block Windows application |
|
|
"meerubus" <meerubus (AT) hotmail (DOT) com> wrote in message
news:1146273872.539360.35210 (AT) i39g2000cwa (DOT) googlegroups.com
| Quote: | 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 |
|
| Back to top |
|
 |
al pacino Guest
|
Posted: Sat Apr 29, 2006 6:06 am Post subject: Re: Program to block Windows application |
|
|
 |
|
| Back to top |
|
 |
GB Guest
|
Posted: Sat Apr 29, 2006 9:06 am Post subject: Re: Program to block Windows application |
|
|
meerubus wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
Tomás Guest
|
Posted: Sat Apr 29, 2006 1:06 pm Post subject: Re: Program to block Windows application |
|
|
meerubus posted:
| Quote: | 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 |
|
| Back to top |
|
 |
Martin Jørgensen Guest
|
Posted: Sat Apr 29, 2006 3:06 pm Post subject: Re: Program to block Windows application |
|
|
meerubus wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
Default User Guest
|
Posted: Sat Apr 29, 2006 4:06 pm Post subject: Re: Program to block Windows application |
|
|
al pacino wrote:
| Quote: |
|
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. |
|
| Back to top |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group
|