Lines Matching defs:vtable
54 // Convenient definition of a VTABLE
55 typedef PROC* Vtable;
57 // Returns a pointer to the VTable of a COM interface.
59 inline Vtable GetIFVTable(void* unknown) {
60 return reinterpret_cast<Vtable>(*reinterpret_cast<void**>(unknown));
70 Vtable vtable = GetIFVTable(unknown);
71 DCHECK(vtable);
81 // If this DCHECK fires it means that we are using the same VTable
85 "same VTable information, or patching the same interface on "
90 PROC original_fn = vtable[it->index_];
117 if (!::VirtualProtect(&vtable[it->index_], sizeof(PROC),
126 original_fn = vtable[it->index_];
129 reinterpret_cast<void**>(&vtable[it->index_]), stub->code(),
132 if (!::VirtualProtect(&vtable[it->index_], sizeof(PROC), protect,
142 DLOG(ERROR) << "Failed to patch VTable.";
207 // See if we've already patched this vtable before.