Hi all:
I have a question about the COM interface. Is the interface at the same fixed-order as:
1. QueryInterface()
2.AddRef()
3. Release()
?
(Means every interface in a COM object should have the QueryInterface() at the first, AddRef() second and the Release() at the third? Thanks
IUnknown::AddRef = *((LPBYTE)coclassptr->vptr)+4
IUnknown::Release = *((LPBYTE)coclassptr->vptr)+8if you change the order,you will corrupt the internal scheme.