Hi!
I just figured out from looking at source code on the 'net that I can use:
ShowWindow(hwnd, SW_HIDE);
SetWindowLongPtr(hwnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
ShowWindow(hwnd, SW_SHOW);
...
Type: Posts; User: tin
Hi!
I just figured out from looking at source code on the 'net that I can use:
ShowWindow(hwnd, SW_HIDE);
SetWindowLongPtr(hwnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
ShowWindow(hwnd, SW_SHOW);
...
Hi!
I've got a problem with using SetWindowLongPtr. I tried using this code, but it doesn't seem to work:
LONG toolWindowExStyle = WS_EX_TOOLWINDOW;
ShowWindow(hwnd, SW_HIDE);
...
Hi!
I've posted earlier about reading and writing to bitmap image files and I've been able to successfully work with the 32x32 bitmap files that I was interested in.
Now, I want to deal with...
Hi!
Thanks for the help. That suggestion by Salem really worked for me, and Bubba's explanation of the shearing too.
I now having a working program that can write a perfectly good 8-bit Bitmap...
I've written up a bit of code based on the BMP file format and it seems to work, except that the image appears to be sheared. I can't seem to figure it out... the 8-bit image of 32x32 shouldn't...
Hi all!
I'm writing an application using Win32 APIs and have created an edit box on the window like so:
hwnd_1=CreateWindowEx(WS_EX_CLIENTEDGE, ca_className_edit, "editMe", WS_CHILD|WS_VISIBLE,...
You may want to capture from the protocol stack instead of directly from the port. You'll need a newer compiler though.
Since your subject says packet interception, I'm assuming you want a 3rd host to get the packets and reply. You can use the pcap library to capture the packets in promiscuous mode. The library...
Hi!
I've got a TCP packet off the network and have put it into the tcphdr struct, which is defined as follows in netinet/tcp.h.
struct tcphdr
{
u_int16_t source;
u_int16_t dest;
When you sniff for packets, you get all kinds TCP, UDP, ICMP and others. Perhaps you want to capture the TCP packets that you're sending. You can use ethereal for that if you don't want to write...
Hi!
A simple quick question here....
In the following template function, whats the purpose of the '&' in the argument of the BridgeIt function? I tried running it without the '&' and got the...
Hi!
When writing C++ programs with classes, I get an error with gcc, but g++ and c++ run fine.
[byt83@CPQNiT Task3]$ ls
task1.cpp task2.cpp task3.cpp
[byt83@CPQNiT Task3]$ gcc -lm -o task2...