In procedure and function calls, either a GUID or an interface identifier can serve as a value or constant parameter
of type TGUID. For example,
given the declaration
function Supports(Unknown: IInterface; const IID: TGUID): Boolean;
Supports can be
called in either of two ways
if Supports(Allocator, IMalloc) then ...
or
if Supports(Allocator, IID_IMalloc) then ...
Dostları ilə paylaş: