рефераты конспекты курсовые дипломные лекции шпоры

Реферат Курсовая Конспект

IUnknown ENDS

IUnknown ENDS - раздел Образование, Accessing COM Objects from Assembly   That's It, Just 12 Bytes Long. It Holds 3 Dword Pointers To T...

 

That's it, just 12 bytes long. It holds 3 DWORD pointers to the procedures that actually implement the methods. It is the infamous "vtable" you may have heard of. The pointers are defined as such so we can have MASM do some type checking for us when compiling our calls. Since the vtable holds the addresses of functions, or pointers, these pointers are typedefed in our interface definition as such:


QueryInterface_Pointer typedef ptr QueryInterface_Proto

– Конец работы –

Эта тема принадлежит разделу:

Accessing COM Objects from Assembly

IUnknown methods IUnknown QueryInterface QueryInterface Pointer IUnknown AddRef AddRef Pointer IUnknown Release Release Pointer... AddRef Pointer typedef ptr AddRef Proto Release Pointer typedef ptr...

Если Вам нужно дополнительный материал на эту тему, или Вы не нашли то, что искали, рекомендуем воспользоваться поиском по нашей базе работ: IUnknown ENDS

Что будем делать с полученным материалом:

Если этот материал оказался полезным ля Вас, Вы можете сохранить его на свою страничку в социальных сетях:

Все темы данного раздела:

Accessing COM Objects from Assembly
  Ernest Murphy ernie@surfree.com   Revised Dec 26 2000 for inclusion as part of MASM32 Revised July 10 2000 for the new form of coinvoke. &nb

AddRef_Pointer typedef PROTO :DWORD Release_Pointer typedef PROTO :DWORD
  In keeping with the MASM32 practice of "loose" type checking, function parameters are just defined as DWORDs. Lots of work to set things up, but it does keeps lots of erro

ADDR IID_SomeOtherInterface, ADDR ppv_new
  I hope you find this as wonderfully simple as I do.   Note we must pass in the pointer we used, this lets the interface know which object (literally &quo

ADDR ppnew
  Note that now the name decoration is done for us by the macro.   The only 'gotcha' (well, the most obvious) is that no parameters to a COM call should be pass

Хотите получать на электронную почту самые свежие новости?
Education Insider Sample
Подпишитесь на Нашу рассылку
Наша политика приватности обеспечивает 100% безопасность и анонимность Ваших E-Mail
Реклама
Соответствующий теме материал
  • Похожее
  • Популярное
  • Облако тегов
  • Здесь
  • Временно
  • Пусто
Теги