When thinking about what's in physical memory don't think in terms of the module (dll) as a whole, think in terms of its pages.
Only those pages that have been read will have been loaded from disk into memory.
Only those pages that have been written to (e.g. data page or code page with fix-ups) will have been copied in memory.
At any given point in time a non-copied page could be freed, and loaded again later from the disk when required.
At any given point in time a copied page could be freed from memory and put in the pagefile.
Even after your last app, that uses a given dll, exits pages of the dll may still be using physical memory in the page cache until they expire.
So, the simple answer, the one i originally gave, is usefull for thinking about what happens in general, because thinking about what happens in detail isn't much use.
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
I am working on a borderless window frame.
Can anyone tell me how can i detect the left and right mouse click on the application taskbar button so that i can minimize,maximize the window and can show the command menu????
Well i investers don't want the default windows look on the main window,so i removed the border and created my own,where i am showing minimize,maximize and close button and handling all the mouse click events in these buttons. But when i click on taskbar button it doesn't minimize the apllication.
Sorry Only_jack....I again tried using these style and it worked.
But now my window dosen't resize ??????
In my window i was handling all four side resizing and moving by testing NcHitTest.
moving is working but resizing is not at all working!!! I don't get any clue about this.
How do i use DrawText in animate window. With the help of animate window i'm popping up my dialog box. And in WM_PAINT i'm using DrawText to put some text on Bitmap. DrawText works fine when i don't use animatewindow. But it didn't work when using animatewindow.