|
I guess I should have specified, yes I do mean network bandwidth, and its only for processes that do in fact use the network (of course not all do).
Thank you.
|
|
|
|
|
I don't know of any way that ties the two together. That would make the OSI model less effective if the physical layer knew about the application layer (i.e., the process that is sending/receiving data).
If you are interested in just how many bytes/packets are sent through the physical layer, you might want to look at the Performance Monitoring API. Of particular interest are the Network Interface and IP objects.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hello All,
Our project needs to customize the scrollbar of a CListCtrl. We have implemented this by removing the non client area of CListCtrl and painting our own scrollbars using bitmaps. We have taken this approach since from Win XP onwards the system just thows the original scrollbars whenever it sees a non-client area.
Now regarding this whenever we are dragging the thumb, the whole area including the area covered by arrow marks (for either horizontal or vertical) are scrolling. This is resulting in the arrow marks going away. Getting the focus either through change of application or generating the SB_PAGEDOWN etc message, is restoring them. How can we stop this effect. This is happening even after we making sure that we draw the arrows in every drag operation.
Ideally while dragging the thumb, the portion occupied by the left/right up/down arrows should not scroll. I can understand that this is happening due to nc area not being present. But is there a way to stop this effect
Again while resizing the header control, the effect is not coming right during the time when horizontal scroll bar goes from a visible to no HSCROLL stage.
How can we stop such effects, in cases when we dont have the original window scroll bars behind in CListCtrl, similar to our implementation.
Thanks
Rajdeep
|
|
|
|
|
I have an app with 2 threads that run in background.
Now I want to communicate between these threads.
I know PostMessage would help ME.
But I want to send a message from thread1 to therad 2 Pls help me with code snippet.
Regards
YKUTTANUR
Chintu
|
|
|
|
|
if they are really threads , you could use global datas ;
if they in fact processes , use pipes or messages...
TOXCCT >>> GEII power
|
|
|
|
|
ykutanoor wrote:
I know PostMessage would help ME.
But I want to send a message from thread1 to therad 2 Pls help me with code snippet.
are you looking for PostThreadMessage(...)
God is Real, unless declared Integer.
|
|
|
|
|
1. Put this code in both the thread code that is required for the Examining a Message Queue that is associated with a particaular thread.
BOOL fDone;
MSG msg;
// Begin the operation and continue until it is complete
fDone = FALSE;
while (!fDone)
{
fDone = DoLengthyOperation(); // application-defined function
// Remove any messages that may be in the queue. If the
// queue contains any mouse or keyboard
// messages, end the operation.
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
switch(msg.message)
{
case WM_USER1:
case WM_USER2:
//
// Perform any required cleanup.
//
fDone = TRUE;
}
}
}
2. Use the PostThreadMessage(....) API for posting the messages between threads.
Jitendra
|
|
|
|
|
1.
I wanna make a user not to select a cell in DataGrid.
A user's clicking a cell makes that the whole row is selected(highlighted).
2.
How to set the alignment of column header captions in DataGrid
How can I do these?
|
|
|
|
|
why SetLayeredWindowAttribute does not work for child windows , as i want transparency effect for common controls.It looks WS_EX_LAYERED is not supported by child windows.so can anybody tell me a way to do this.
Unmanaged in a .NET world
|
|
|
|
|
I used WideCharToMultiByte to convert it, but got some "????" -_____-
|
|
|
|
|
I dont think it can be done, as the korean script will not fit in 256 char.
God is Real, unless declared Integer.
|
|
|
|
|
I dont think it can be done, as the korean script will not fit in 256 char.
Hhhhhhhhhhh..............;P
u moron
if u don't know the answer don't fcuk around
Chetna BABY
|
|
|
|
|
Every now n then we have morons like you roiting around, i guess this time its you.
God is Real, unless declared Integer.
|
|
|
|
|
ANSI: 죄 (0xC1 0xCB)
UNICODE: 죄(0xC4 0xC8)
I need a way to convert them, help me plz...
|
|
|
|
|
|
Thank u verrrrrrrrrrrrry much!!!!!
It's ok now!!!
btw: The code-page is 949 ^-^
|
|
|
|
|
|
Thx, It's ok now
|
|
|
|
|
Hi
Anyone know how to determine if a file is opened as Read or Write through any of the APIs...
I need to know as currently i using 2 flags to determine from the class.
Any help will be appreciated.
Thankyou
|
|
|
|
|
I am not sure, but you may have a try on GetFileInformationByHandle(...).
Maxwell Chen
|
|
|
|
|
IceBerG71 wrote:
Anyone know how to determine if a file is opened as Read or Write through any of the APIs...
Do you really need that level of granularity? It's usually sufficient to know whether the file is opened exclusively or not.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hello,
I'm new to windows programming. I am trying to create an application (using win32 API) that locks the windows desktop (but i don't want to go the screen saver route). Can anyone give me any ideas how t ogo about this and probably pointers to where i can find more information. I have searched through the archieves witout much luck.
Thanks
Newbie
|
|
|
|
|
MSDN Library -- Platform SDK -- Security -- GINA.
Maxwell Chen
|
|
|
|
|
hi all,
i have a new project which sends email as:
file address.txt includes tens of email address, such as abc@yahoo.com
file message.txt includes info of email
in my app, once user clicks a button, the message will send to all clients in address.txt
read file is no problem, i don't know functions used for sending email
(do i need to install special software to support those functions?)
thx for any comments and samples
includeh10
|
|
|
|
|