Web Hosting, Design, & Coding forum

General discussion

Program in C++

by KishoreShenoy / February 7, 2013 1:45 AM PST

Program in C++ which allows you to access an application only if we are authorized to open the application ?

For example, Let us consider 2 users A and B . A is authorized to access the application(say Notepad)
and B is not authorized to access the application. If A double clicks on Notepad,the application should execute normally . But when B double clicks on Notepad, The application shouldnt enter the Task Manager and it shouldnt execute;Before that a pop-up should appear saying "You are not authorized to use Notepad" . Please help me in solving this problem .I shall be grateful.

Post a reply
Discussion is locked
You are posting a reply to: Program in C++
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Program in C++
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Odd area to try to write such an app.
by R. Proffitt Forum moderator / February 7, 2013 4:12 AM PST
In reply to: Program in C++

Here I would use NTFS permissions. The messages may not be what you asked for but this is a supported part of NTFS and I'm guessing here that someone didn't know that.

Collapse -
NTFS Permissions
by KishoreShenoy / February 7, 2013 11:45 AM PST

Hey thanks for you reply .
Can you please let me know how to apply NTFS permissions for a set of applications - say Notepad, Excel ,Word .How can I restrict 'execute' permission for these apps ??

Collapse -
by R. Proffitt Forum moderator / February 7, 2013 12:11 PM PST
In reply to: NTFS Permissions

But such is on the web for you to find. Anything I would write here would be the short version. In short, you set the access permissions to the apps as you see fit.

Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions


Free trip to the Grand Prix

Don't miss your chance to win a trip to the Formula 1 Grand Prix in Monaco for you and a plus-one.