com.jniwrapper.win32.com
Interface IUnknown

All Superinterfaces:
AutoDeleteParameter
All Known Subinterfaces:
IAdviseSink, IBindCtx, IClassFactory, IClassFactory2, IConnectionPoint, IConnectionPointContainer, IContinueCallback, ICreateErrorInfo, IDataObject, IDispatch, IDispatchEx, IDocHostUIHandler, IDocHostUIHandler2, IDropSource, IDropTarget, IEnumConnectionPoints, IEnumConnections, IEnumFormatEtc, IEnumMoniker, IEnumOleDocumentViews, IEnumOleVerb, IEnumStatData, IEnumStatStg, IEnumString, IEnumUnknown, IErrorInfo, IInPlacePrintPreview, ILockBytes, IMalloc, IMessageFilter, IMoniker, IObjectSafety, IObjectWithSite, IOleCache, IOleClientSite, IOleCommandTarget, IOleContainer, IOleControl, IOleControlSite, IOleDocument, IOleDocumentSite, IOleDocumentView, IOleInPlaceActiveObject, IOleInPlaceFrame, IOleInPlaceObject, IOleInPlaceSite, IOleInPlaceSiteEx, IOleInPlaceUIWindow, IOleLink, IOleObject, IOleWindow, IParseDisplayName, IPersist, IPersistFile, IPersistStorage, IPersistStream, IPersistStreamInit, IPreviewCallback, IPrint, IPropertyNotifySink, IProvideClassInfo, IRecordInfo, IRootStorage, IRunningObjectTable, ISequentialStream, IServiceProvider, IStorage, IStream, ISupportErrorInfo, ITypeComp, ITypeInfo, ITypeLib, IViewObject, IViewObject2
All Known Implementing Classes:
AbstractOleControl, IAdviseSinkImpl, IBindCtxImpl, IClassFactory2Impl, IClassFactoryImpl, IClassFactoryServer, IConnectionPointContainerImpl, IConnectionPointImpl, IContinueCallbackImpl, ICreateErrorInfoImpl, IDataObjectImpl, IDispatchExImpl, IDispatchImpl, IDispatchServer, IDocHostUIHandler2Impl, IDocHostUIHandlerImpl, IDropSourceImpl, IDropTargetImpl, IEnumConnectionPointsImpl, IEnumConnectionsImpl, IEnumFormatEtcImpl, IEnumMonikerImpl, IEnumOleDocumentViewsImpl, IEnumOleVerbImpl, IEnumStatDataImpl, IEnumStatStgImpl, IEnumStringImpl, IEnumUnknownImpl, IErrorInfoImpl, IInPlacePrintPreviewImpl, ILockBytesImpl, IMallocImpl, IMessageFilterImpl, IMonikerImpl, IObjectSafetyImpl, IObjectWithSiteImpl, IOleCacheImpl, IOleClientSiteImpl, IOleCommandTargetImpl, IOleContainerImpl, IOleControlImpl, IOleControlSiteImpl, IOleDocumentImpl, IOleDocumentSiteImpl, IOleDocumentViewImpl, IOleInPlaceActiveObjectImpl, IOleInPlaceFrameImpl, IOleInPlaceObjectImpl, IOleInPlaceSiteExImpl, IOleInPlaceSiteImpl, IOleInPlaceUIWindowImpl, IOleLinkImpl, IOleObjectImpl, IOleWindowImpl, IParseDisplayNameImpl, IPersistFileImpl, IPersistImpl, IPersistStorageImpl, IPersistStreamImpl, IPersistStreamInitImpl, IPreviewCallbackImpl, IPrintImpl, IPropertyNotifySinkImpl, IProvideClassInfoImpl, IRecordInfoImpl, IRootStorageImpl, IRunningObjectTableImpl, ISequentialStreamImpl, IServiceProviderImpl, IStorageImpl, IStreamImpl, ISupportErrorInfoImpl, ITypeCompImpl, ITypeInfoImpl, ITypeLibImpl, IUnknownImpl, IUnknownServer, IViewObject2Impl, IViewObjectImpl, OleClientSiteImpl, StructureInfo

public interface IUnknown
extends AutoDeleteParameter

The IUnknown interface allows to get other interfaces of an object using the queryInterface method and to manage the existence of the object using the addRef and release methods.

See Also:
Microsoft COM SDK documentation

Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Method Summary
 ULongInt addRef()
          Increments the reference count for an interface on an object.
 boolean isNull()
           
 void queryInterface(IID iid, IUnknown requiredInterface)
          Retrieves pointers to the supported interfaces on an object.
 ULongInt release()
          Decrements the reference count for an interface on an object.
 void setNull()
           
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Method Detail

isNull

public boolean isNull()

setNull

public void setNull()

queryInterface

public void queryInterface(IID iid,
                           IUnknown requiredInterface)
                    throws ComException
Retrieves pointers to the supported interfaces on an object.

Parameters:
iid - [in]
requiredInterface - [out]
Throws:
ComException - if the interface is not supported

addRef

public ULongInt addRef()
Increments the reference count for an interface on an object.

Returns:
new reference count. This value is intended to be used only for test purposes.

release

public ULongInt release()
Decrements the reference count for an interface on an object.

Returns:
new reference count. This value is intended to be used only for test purposes.