Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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.
011011010110000101100011011010000110100101101110
0110010101110011

QuestionRe: How to block URL Pin
Pranit Kothari6-Feb-11 17:13
Pranit Kothari6-Feb-11 17:13 
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 
GeneralRe: GetDlgItemText in an derived CComboBox Pin
mesajflaviu6-Feb-11 19:16
mesajflaviu6-Feb-11 19:16 
QuestionVisual C++ 2008 opinions? Pin
bob169725-Feb-11 8:08
bob169725-Feb-11 8:08 
AnswerRe: Visual C++ 2008 opinions? Pin
Hans Dietrich5-Feb-11 9:56
mentorHans Dietrich5-Feb-11 9:56 
GeneralRe: Visual C++ 2008 opinions? Pin
bob169725-Feb-11 15:39
bob169725-Feb-11 15:39 
AnswerRe: Visual C++ 2008 opinions? Pin
Rolf Kristensen5-Feb-11 10:46
Rolf Kristensen5-Feb-11 10:46 
GeneralRe: Visual C++ 2008 opinions? Pin
jschroedl5-Feb-11 12:33
jschroedl5-Feb-11 12:33 
AnswerRe: Visual C++ 2008 opinions? Pin
Albert Holguin5-Feb-11 14:44
professionalAlbert Holguin5-Feb-11 14:44 
GeneralRe: Visual C++ 2008 opinions? Pin
bob169725-Feb-11 15:47
bob169725-Feb-11 15:47 

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.