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.
Bob

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 -
Sorry.
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.
Bob

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech for the school year

Smart tech for smart students

Forget the pencils and notebooks. Gear up your students with these portable and powerful note-taking machines.