How do I find reference count?
-
Hi All, How do i find total number of reference count of my dll. I want to capture this reference count in inside of my dll, so that when the last reference is de-allocated I can do some event. Please help me regarding this. Regards Halid
-
Hi All, How do i find total number of reference count of my dll. I want to capture this reference count in inside of my dll, so that when the last reference is de-allocated I can do some event. Please help me regarding this. Regards Halid
Have a look in MSDN at the function
int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
where dwReason may have the values DLL_PROCESS_ATTACH or DLL_PROCESS_DETACH
A rock pile ceases to be a rock pile the moment a single man contemplates it, bearing within him the image of a Cathedral[^]. Antoine de Saint-Exupery (1900-1944)
-
Hi All, How do i find total number of reference count of my dll. I want to capture this reference count in inside of my dll, so that when the last reference is de-allocated I can do some event. Please help me regarding this. Regards Halid
DLL_PROCESS_ATTACH will help you this will get when a Dll is attached to any procesess.. (it can be consider as a new reference) Code the Dreams.