|
An ObjectEntry structure. Each class needs N+1 ObjectEntry structures in sequence to support N interfaces.
APPENDIX D
GLOBAL VARIABLES
g_ObjectCount
g_ObjectCount DWORD
Contains the count of all objects currently held by the dll.
g_hModule
g_hModule DWORD
A handle to the DLL. The value is the base address of the DLL. The HINSTANCE of a DLL is the same as the HMODULE, so g_hModule can be used in subsequent calls to the GetModuleFileName function and other functions that require a module handle.
g_hHeap
g_hHeap DWORD
Contains the handle to the process heap returned by GetProcessHeap in DllMain.
APPENDIX E MACRO FUNCTIONS
DeclareGuid
DeclareGuid MACRO gName, IID
Macro data function to define a guid from a textequate.
Parameters
GName
Textequate. Name to use for the GUID.
Will also define "p" & gName with a reference to gName.
reg
Optional parameter. Textequate. Text representation of the guid value. May be left blank if sgName is defined elsewhere in the project.
DeclareVARIANT
DeclareVARIANT MACRO varName, VarType, VarValue
Macro data function to define a variant data structure.
Parameters
Дата добавления: 2014-12-18; просмотров: 35 | Поможем написать вашу работу | Нарушение авторских прав |