When a thread calls CoInitialize(NULL) or CoInitializeEx(NULL,COINIT_APARTMENTTHREADED), it creates a new STA apartment. The creating thread is said to be in the apartment. When the thread later instantiates a COM […]

PE file format

Unlike science, technique is easy to be followed, cracked, hacked, copied, plagiarized, stolen, even surpassed by others so it need some barriers. Why are there so many evil words associated […]

I hear the DllMain function is called when the process loads the needed dll at the start time, so I write the following code to verify this: //mydll.cpp #include <windows.h> […]

What is a const function? Const functions are defined like int fun() const But only a member function can be const, i.e., there is no concept of const function outside […]