|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Ole32
Ole32.dll Interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary |
---|
StdCallLibrary.StdCallCallback |
Nested classes/interfaces inherited from interface com.sun.jna.Library |
---|
Library.Handler |
Field Summary | |
---|---|
static int |
COINIT_APARTMENTTHREADED
|
static int |
COINIT_DISABLE_OLE1DDE
|
static int |
COINIT_MULTITHREADED
|
static int |
COINIT_SPEED_OVER_MEMORY
|
static Ole32 |
INSTANCE
The instance. |
Fields inherited from interface com.sun.jna.win32.StdCallLibrary |
---|
FUNCTION_MAPPER, STDCALL_CONVENTION |
Fields inherited from interface com.sun.jna.Library |
---|
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER |
Method Summary | |
---|---|
WinNT.HRESULT |
CLSIDFromProgID(String lpszProgID,
Guid.CLSID lpclsid)
Looks up a CLSID in the registry, given a ProgID. |
WinNT.HRESULT |
CLSIDFromString(WString lpsz,
Guid.CLSID pclsid)
Converts a string generated by the StringFromCLSID function back into the original CLSID. |
WinNT.HRESULT |
CoCreateGuid(Guid.GUID.ByReference pguid)
Deprecated. use CoCreateGuid(Guid.GUID) . |
WinNT.HRESULT |
CoCreateGuid(Guid.GUID pguid)
Creates a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers. |
WinNT.HRESULT |
CoCreateInstance(Guid.GUID rclsid,
Pointer pUnkOuter,
int dwClsContext,
Guid.GUID riid,
PointerByReference ppv)
Creates a single uninitialized object of the class associated with a specified CLSID. |
WinNT.HRESULT |
CoInitialize(WinDef.LPVOID pvReserved)
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). |
WinNT.HRESULT |
CoInitializeEx(Pointer reserved,
int dwCoInit)
Initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required. |
void |
CoUninitialize()
Closes the COM library on the current thread, unloads all DLLs loaded by the thread, frees any other resources that the thread maintains, and forces all RPC connections on the thread to close. |
WinNT.HRESULT |
IIDFromString(String lpsz,
Guid.GUID lpiid)
Converts a string generated by the StringFromIID function back into the original interface identifier (IID). |
int |
StringFromGUID2(Guid.GUID rguid,
char[] lpsz,
int cchMax)
Converts a globally unique identifier (GUID) into a string of printable characters. |
Field Detail |
---|
static final Ole32 INSTANCE
static final int COINIT_APARTMENTTHREADED
static final int COINIT_MULTITHREADED
static final int COINIT_DISABLE_OLE1DDE
static final int COINIT_SPEED_OVER_MEMORY
Method Detail |
---|
WinNT.HRESULT CoCreateGuid(Guid.GUID pguid)
pguid
- A pointer to the requested GUID.
WinNT.HRESULT CoCreateGuid(Guid.GUID.ByReference pguid)
CoCreateGuid(Guid.GUID)
.
int StringFromGUID2(Guid.GUID rguid, char[] lpsz, int cchMax)
rguid
- The GUID to be converted.lpsz
- A pointer to a caller-allocated string variable to receive the
resulting string.cchMax
- The number of characters available in the lpsz buffer.
WinNT.HRESULT IIDFromString(String lpsz, Guid.GUID lpiid)
lpsz
- A pointer to the string representation of the IID.lpiid
- A pointer to the requested IID on return.
WinNT.HRESULT CoInitialize(WinDef.LPVOID pvReserved)
pvReserved
- the pv reserved
WinNT.HRESULT CoInitializeEx(Pointer reserved, int dwCoInit)
reserved
- This parameter is reserved and must be NULL.dwCoInit
- The concurrency model and initialization options for the
thread. Values for this parameter are taken from the COINIT
enumeration. Any combination of values from COINIT can be
used, except that the COINIT_APARTMENTTHREADED
and
COINIT_MULTITHREADED
flags cannot both be set. The
default (and only sane choice) is
COINIT_MULTITHREADED
.
void CoUninitialize()
WinNT.HRESULT CoCreateInstance(Guid.GUID rclsid, Pointer pUnkOuter, int dwClsContext, Guid.GUID riid, PointerByReference ppv)
rclsid
- The CLSID associated with the data and code that will be used
to create the object.pUnkOuter
- If NULL, indicates that the object is not being created as
part of an aggregate. If non-NULL, pointer to the aggregate
object's IUnknown interface (the controlling IUnknown).dwClsContext
- Context in which the code that manages the newly created
object will run. The values are taken from the enumeration
CLSCTX defined in WTypes.riid
- A reference to the identifier of the interface to be used to
communicate with the object.ppv
- Address of pointer variable that receives the interface
pointer requested in riid. Upon successful return, *ppv
contains the requested interface pointer. Upon failure, *ppv
contains NULL.
WinNT.HRESULT CLSIDFromProgID(String lpszProgID, Guid.CLSID lpclsid)
lpszProgID
- [in] A pointer to the ProgID whose CLSID is requested.lpclsid
- [out] Receives a pointer to the retrieved CLSID on return.
WinNT.HRESULT CLSIDFromString(WString lpsz, Guid.CLSID pclsid)
lpsz
- [in] The string representation of the CLSID.pclsid
- [out] A pointer to the CLSID.
|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |