Class ComInterface
A COM interface is a mostly opaque object-oriented data structures. It can only be accessed and manipulated through functions.
At the start of the data structure, there is a pointer to an array of function pointers, often called "vtable" after the similar C++ construct. Thees function pointers are the function to access and manipulate the COM object instance.
This class defines the method/function signatures, the COM interface ID and the implemented super interface type.
-
Field Summary
Fields inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, name, namespace, nativeName, typeDefIndex -
Constructor Summary
ConstructorsConstructorDescriptionComInterface(String name, Namespace namespace, int typeDefIndex, UUID iid) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetIid()Gets the COM interface ID (IID).Gets the implemented super interface.methods()Gets the methods that make up the interface of this COM interface.Returns the types directly references by this type.voidsetImplementedInterfaces(List<ComInterface> implementedInterfaces) Sets the implemented COM interfaces.voidsetMethods(List<Method> methods) Sets the methods that make up the interface of this COM interface.Methods inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, isAnonymous, name, namespace, nativeName, replaceTypes, setDocumentationUrl, setName, typeDefIndex
-
Constructor Details
-
ComInterface
-
-
Method Details
-
getIid
-
implementedInterface
Gets the implemented super interface.All COM interfaces implement the
IUnknowninterface, either directly or indirectly by implementing a super COM interface that does. The only exception isIUnknownitself.- Returns:
- the super interface, or
nullif no super interface is implemented.
-
setImplementedInterfaces
Sets the implemented COM interfaces.Even though this method accepts a list, it assumes that at most one interface is implemented.
- Parameters:
implementedInterfaces- list of COM interface types.
-
methods
-
setMethods
-
referencedTypes
Description copied from class:TypeReturns the types directly references by this type.- Overrides:
referencedTypesin classType- Returns:
- Stream of types
-