📄 idog2.h
字号:
// Forward declaration
typedef struct IDog IDog;
// Vtable structure
typedef struct
{
// IUnknown methods
HRESULT (*QueryInterface )(IDog *this,
REFIID riid,
void **ppvObject);
ULONG (*AddRef )(IDog *this);
ULONG (*Release )(IDog *this);
// IDog methods
HRESULT (*Bark)(void);
HRESULT (*Scratch)(void);
HRESULT (*Sleep)(void);
HRESULT (*Eat)(void);
BOOL (*IsHungry)(void);
} IDogVtable;
// The actual IDog interface structure
typedef struct
{
struct IDogVtable *lpVtable;
} IDog;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -