Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReading the file that create from "Print to file" option Pin
Max++6-Feb-11 16:09
Max++6-Feb-11 16:09 
AnswerRe: Reading the file that create from "Print to file" option Pin
Andrew Brock6-Feb-11 18:38
Andrew Brock6-Feb-11 18:38 
Questionhello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
leech4ever6-Feb-11 13:49
leech4ever6-Feb-11 13:49 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
«_Superman_»6-Feb-11 15:13
professional«_Superman_»6-Feb-11 15:13 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
Andrew Brock6-Feb-11 15:23
Andrew Brock6-Feb-11 15:23 
QuestionHow to make a book provision for multiple authors Pin
Horace Cheng6-Feb-11 11:49
Horace Cheng6-Feb-11 11:49 
AnswerRe: How to make a book provision for multiple authors Pin
Maximilien6-Feb-11 17:11
Maximilien6-Feb-11 17:11 
AnswerRe: How to make a book provision for multiple authors Pin
Richard MacCutchan6-Feb-11 22:08
mveRichard MacCutchan6-Feb-11 22:08 
QuestionBluetooth socket programming Pin
Pranit Kothari6-Feb-11 7:05
Pranit Kothari6-Feb-11 7:05 
AnswerRe: Bluetooth socket programming Pin
Cool_Dev6-Feb-11 18:12
Cool_Dev6-Feb-11 18:12 
GeneralRe: Bluetooth socket programming Pin
Pranit Kothari6-Feb-11 18:29
Pranit Kothari6-Feb-11 18:29 
AnswerRe: Bluetooth socket programming Pin
Andrew Brock6-Feb-11 18:43
Andrew Brock6-Feb-11 18:43 
RantRe: Bluetooth socket programming Pin
Pranit Kothari6-Feb-11 18:49
Pranit Kothari6-Feb-11 18:49 
AnswerRe: Bluetooth socket programming Pin
8140320-Apr-11 1:40
8140320-Apr-11 1:40 
QuestionHow to block URL Pin
Pranit Kothari6-Feb-11 6:57
Pranit Kothari6-Feb-11 6:57 
AnswerRe: How to block URL Pin
csrss6-Feb-11 8:24
csrss6-Feb-11 8:24 
QuestionRe: How to block URL Pin
Pranit Kothari6-Feb-11 17:13
Pranit Kothari6-Feb-11 17:13 
csrss wrote:
There are couple of things i can think off.
1. put sites url to a ini file for example then use API for working with inifiles (write / read profilestring)
2. get a list from ini file and resolve each site's ip
3. put then these ips into C:\Windows\System32\drivers\etc\hosts file and redirect to localhost for example
4. write a driver to disable write permissions on that file (you need to hook ntwritefile and some more)
5. that still will not block apps, which use custom resolver (anyways, most of apps use gethostbyname).
Or, maybe, detect network threads, then inject own thread into them and block access to a site on that level.


Hi,
I have added following line @ hosts file
66.220.146.11 www.facebook.com

but still facebook is running.
AnswerRe: How to block URL Pin
David Crow7-Feb-11 3:31
David Crow7-Feb-11 3:31 
AnswerRe: How to block URL Pin
Rolf Kristensen6-Feb-11 9:11
Rolf Kristensen6-Feb-11 9:11 
GeneralRe: How to block URL Pin
Pranit Kothari6-Feb-11 17:15
Pranit Kothari6-Feb-11 17:15 
GeneralRe: How to block URL Pin
Rolf Kristensen6-Feb-11 20:11
Rolf Kristensen6-Feb-11 20:11 
GeneralRe: How to block URL Pin
Emilio Garavaglia6-Feb-11 20:14
Emilio Garavaglia6-Feb-11 20:14 
QuestionAccessing physical memory under Windows XP Pin
normanS5-Feb-11 21:40
normanS5-Feb-11 21:40 
QuestionGetDlgItemText in an derived CComboBox Pin
mesajflaviu5-Feb-11 9:53
mesajflaviu5-Feb-11 9:53 
AnswerRe: GetDlgItemText in an derived CComboBox Pin
Hans Dietrich5-Feb-11 10:01
mentorHans Dietrich5-Feb-11 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.