<div dir="ltr">> <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:16px"> Yes, it is an automatically generated file, a COM wrapper based on the IDL description. It does make navigating the source code a bit harder.</span><div><font color="#000000" face="Times New Roman"><span style="font-size:16px">Ok thanks for clearing this out.</span></font></div><div><font color="#000000" face="Times New Roman"><span style="font-size:16px"><br></span></font></div><div><font color="#000000" face="Times New Roman"><span style="font-size:16px">I managed  to find the place where the memory is actually handled - DisplaySourceBitmap::initSourceBitmap() in DisplaySourceBitmapImpl.cpp. It seems that in case the VRAM is not used my assumption is true and the IDisplaySourceBitmap frees the allocated memory in its dtor so as long as I keep a reference I'm safe. But in case VRAM is used, what happens if a </span></font><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:16px">IDisplaySourceBitmap instance is still alive when the resolution changes - does the contained pointer simply become invalid?</span><font color="#000000" face="Times New Roman"><br></font><div class="gmail_extra"><br><div class="gmail_quote"><br></div></div></div></div>