I wrote a MMC application using ATL c++.
In the MMC left scope, the items have a image that will represent the item's state(Started or stopped).
And i have a thread to update the MMC left scope item's image according to the item's state.
The code that update item image like the following:(the following code will be executed in the thread function)
while( application is running ){...//get the item's state and then define a SCOPEDATAITEM and put image id to it.
SCOPEDATAITEM sdi = { SDI_IMAGE | SDI_OPENIMAGE, NULL, lClosedImage, lOpenImage, 0, 0, 0, 0, lID };
//update the item's imagem_pIConsole->SetItem(&sdi) //m_pIConsole is a CComPtr...}
Run my MMC application, i can see the item's image could swithover according to its state.
But when i look at my MMC application's memory usage in Task Mangaer ...
Go to the complete details ...