com.jniwrapper.win32.com.types
Class CLSID

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.com.types.GUID
              extended bycom.jniwrapper.win32.com.types.CLSID
All Implemented Interfaces:
AlignmentAwareParameter, CompositeParameter

public class CLSID
extends GUID

This class represents a globally unique identifier for a COM class.


Field Summary
static CLSID CLSID_NULL
           
 
Fields inherited from class com.jniwrapper.win32.com.types.GUID
GUID_NULL
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
CLSID()
           
CLSID(GUID src)
           
CLSID(int d1, short d2, short d3, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8)
           
CLSID(java.lang.String clsid)
          Constructs a new CLSID instance for the passed string implementation.
 
Method Summary
 java.lang.Object clone()
           
static CLSID create(java.lang.String clsid)
          Creates a new instance for the passed string.
static CLSID createFromProgID(java.lang.String progID)
          Creates a new CLSID instance and looks for its value.
 
Methods inherited from class com.jniwrapper.win32.com.types.GUID
equals, getData1, getData2, getData3, getData4, getOleFunction, hashCode, setData1, setData2, setData3, setData4, string2GUID, toString
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLSID_NULL

public static final CLSID CLSID_NULL
Constructor Detail

CLSID

public CLSID()

CLSID

public CLSID(int d1,
             short d2,
             short d3,
             byte b1,
             byte b2,
             byte b3,
             byte b4,
             byte b5,
             byte b6,
             byte b7,
             byte b8)

CLSID

public CLSID(GUID src)

CLSID

public CLSID(java.lang.String clsid)
      throws ComException
Constructs a new CLSID instance for the passed string implementation. Uses CLSIDFromString COM SDK function.

Parameters:
clsid - string representation of CLSID.
Throws:
ComException - if the operation fails on native side.
Method Detail

createFromProgID

public static CLSID createFromProgID(java.lang.String progID)
                              throws ComException
Creates a new CLSID instance and looks for its value. CLSID value corresponds to the passed ProgID using CLSIDFromProgID COM SDK function.

Parameters:
progID - ProgID for which CLSID is requested.
Returns:
resulting CLSID.
Throws:
ComException - if the operation fails on native side.

create

public static CLSID create(java.lang.String clsid)
Creates a new instance for the passed string. Unlike the constructor with a string parameter, this method doesn't throw the exception on error and is used when exceptions must be avoided. This factory method is used by the COM integration code generation utility.

Parameters:
clsid - string representation of a required CLSID.
Returns:
a new instance or null if the operation fails.

clone

public java.lang.Object clone()
Overrides:
clone in class GUID