comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Monitoring HTTP / HTTPS request         


Author: Zarir.Karbhari
Date: Feb 13, 2008 22:54

Hello

I want to make a Visual C++ / Win 32 programme that will monitor all
http/https request made by Internet Explorer.

Hence when a URL is visited by IE, my application should be able to
trap that event and keep track on the visited URL information.

Where do I start ? Which API do I use. ?

Thank you in advance.

Regards

Karbhari
2 Comments
  Reg: Method execution time         


Author: cs1975
Date: Feb 13, 2008 16:35

Hi All,

I wanted to calculate the time take for execution of method based on
CPU Instruction execution Speed.

Is it possible to estimate total time to be taken for the following
code, before executing the code?
are there are APIs provided for this purpose?

void Run()
{
int i = 100;

while(i)
{
printf(" cnt %%d\n",i);
--;
}
}

thanks in advance,
Chandrasekhar
11 Comments
  Inter-process communication using GlobalAlloc         


Author: scs0
Date: Feb 13, 2008 12:37

Can someone post a WORKING example of using GlobalAlloc to pass a
string from one application to another? I swear I've read 10
different threads on these newsgroups where the question on performing
interprocess communication is answered with "Oh use GlobalAlloc". In
all of the actual detailed examples I've seen (which are rare) the
code doesn't work.

Can someone explain why this refuses to work?
FYI: I've tried so many combinations of flags in "GlobalAlloc" that I
can't count it. Below is my latest choice in flag which someone on
these forums said to do and is wrong:

// APP 1:

HGLOBAL hGlobal = GlobalAlloc(GMEM_SHARE | GMEM_MOVEABLE, MAX_PATH *
sizeof(wchar_t));
if (hGlobal)
{
LPVOID pMemory = GlobalLock(hGlobal);
wcscpy(reinterpret_cast(pMemory), L"Watson, can you hear
me?");
GlobalUnlock(hGlobal);
Show full article (1.46Kb)
2 Comments
  WinInet relay         


Author: Piranha
Date: Feb 13, 2008 00:35

I´m using WinInet to connect client applications to a server, which is
no real server but some simple php scripts on my homepage.
That works just fine, but causes a huge server load due high refresh
rates.

My question is now, if 2 clients connect to the server, is there a way
to connect the clients directly with one another?
Without the server, the clients can´t see each other, because most of
them are firewalled, so the server in between is needed to make the
connection and since it is no real connection but only a php script,
the clients keep reconnecting and refreshing their data, meaning the
server has to store all data and relay it to other clients upon their
next login.

The idea is, once a client has connected, the server might be able to
relay not the data, but the connection itself, so the clients could
exchange their data directly, I just have no clue if that´s possible
and if yes, how that might work.

Basically I need a miniature version of P2P network, but I don´t even
know where to start looking to figure out a solution.
Can someone help me getting started?
no comments