com.jniwrapper.win32
Class HResult

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.ac
          extended bycom.jniwrapper.Int32
              extended bycom.jniwrapper.win32.HResult
All Implemented Interfaces:
com.jniwrapper.IntegerParameter

public class HResult
extends com.jniwrapper.Int32

The HResult class represents the HRESULT data type and is used to describe errors.


Field Summary
static int CLASS_E_CLASSNOTAVAILABLE
          ClassFactory cannot supply requested class.
static int CLASS_E_NOAGGREGATION
          Class does not support aggregation (or class object is remote).
static int CLASS_E_NOTLICENSED
          Class is not licensed for use.
static int CO_E_ALREADYINITIALIZED
          COM library has already been called.
static int CO_E_APPDIDNTREG
          Application was launched, but it did not register a class factory.
static int CO_E_APPNOTFOUND
          Application not found.
static int CO_E_APPSINGLEUSE
          Application cannot be run more than once.
static int CO_E_CANTDETERMINECLASS
          Class of object cannot be determined.
static int CO_E_CLASSSTRING
          Invalid class string.
static int CO_E_DLLNOTFOUND
          DLL for class not found.
static int CO_E_ERRORINAPP
          Some error in application.
static int CO_E_ERRORINDLL
          Error in the DLL.
static int CO_E_IIDSTRING
          Invalid interface string
static int CO_E_NOTINITIALIZED
          COM library has not been called.
static int CO_E_OBJISREG
          Object is already registered.
static int CO_E_OBJNOTCONNECTED
          Object is not connected to server.
static int CO_E_OBJNOTREG
          Object is not registered.
static int CO_E_RELEASED
          Object has been released.
static int CO_E_WRONGOSFORAPP
          Wrong operating system or operating system version for application.
static int CONNECT_E_ADVISELIMIT
          This implementation's limit for advisory connections has been reached
static int CONNECT_E_CANNOTCONNECT
          Connection attempt failed
static int CONNECT_E_FIRST
          The lowest allowed value for connection error codes.
static int CONNECT_E_NOCONNECTION
          There is no connection
static int CONNECT_E_OVERRIDDEN
          Must use a derived interface to connect
static int DISP_E_ARRAYISLOCKED
          Memory is locked.
static int DISP_E_BADCALLEE
          Invalid callee.
static int DISP_E_BADINDEX
          Invalid index.
static int DISP_E_BADPARAMCOUNT
          Invalid number of parameters.
static int DISP_E_BADVARTYPE
          Bad variable type.
static int DISP_E_DIVBYZERO
          Division by zero.
static int DISP_E_EXCEPTION
          Exception occurred.
static int DISP_E_MEMBERNOTFOUND
          Member not found.
static int DISP_E_NONAMEDARGS
          No named arguments.
static int DISP_E_NOTACOLLECTION
          Does not support a collection.
static int DISP_E_OVERFLOW
          Out of present range.
static int DISP_E_PARAMNOTFOUND
          Parameter not found.
static int DISP_E_PARAMNOTOPTIONAL
          Parameter not optional.
static int DISP_E_TYPEMISMATCH
          Type mismatch.
static int DISP_E_UNKNOWNINTERFACE
          Unknown interface.
static int DISP_E_UNKNOWNLCID
          Unknown language.
static int DISP_E_UNKNOWNNAME
          Unknown name.
static int E_ABORT
          Operation aborted
static int E_ACCESSDENIED
          General access denied error
static int E_FAIL
          The operation could not be performed.
static int E_HANDLE
          Handle that is not valid
static int E_INVALIDARG
          One of the arguments passed in was invalid.
static int E_NOINTERFACE
          The object searched for was not found.
static int E_NOTIMPL
          Not implemented.
static int E_OUTOFMEMORY
          A memory allocation attempt failed.
static int E_POINTER
          Pointer that is not valid
static int E_UNEXPECTED
          The target was not accessible, or the engine was not in a state where the function or method could be processed.
static int INET_E_AUTHENTICATION_REQUIRED
          Authentication is needed to access the object.
static int INET_E_CANNOT_CONNECT
          The attempt to connect to the Internet has failed.
static int INET_E_CANNOT_INSTANTIATE_OBJECT
          Creation of the object of the class associated with a specified CLSID failed
static int INET_E_CANNOT_LOAD_DATA
          The object could not be loaded.
static int INET_E_CANNOT_LOCK_REQUEST
          The requested resource could not be locked.
static int INET_E_CANNOT_REPLACE_SFP_FILE
          Cannot replace a file that is protected by System File Protection (SFP).
static int INET_E_CODE_DOWNLOAD_DECLINED
          The component download was declined by the user.
static int INET_E_CONNECTION_TIMEOUT
          The Internet connection has timed out.
static int INET_E_DATA_NOT_AVAILABLE
          An Internet connection was established, but the data cannot be retrieved.
static int INET_E_DEFAULT_ACTION
          Use the default security manager for this action.
static int INET_E_DOWNLOAD_FAILURE
          The download has failed (the connection was interrupted).
static int INET_E_ERROR_FIRST
          The lowest allowed value for an URL moniker error code.
static int INET_E_ERROR_LAST
          The highest allowed value for an URL moniker error code.
static int INET_E_INVALID_REQUEST
          The request was invalid.
static int INET_E_INVALID_URL
          The URL could not be parsed.
static int INET_E_NO_SESSION
          No Internet session was established.
static int INET_E_NO_VALID_MEDIA
          The object is not in one of the acceptable MIME types.
static int INET_E_OBJECT_NOT_FOUND
          The object was not found.
static int INET_E_QUERYOPTION_UNKNOWN
          The requested option is unknown.
static int INET_E_REDIRECT_FAILED
          Microsoft Win32 Internet (WinInet) cannot redirect.
static int INET_E_REDIRECT_TO_DIR
          The request is being redirected to a directory.
static int INET_E_REDIRECTING
          The request is being redirected.
static int INET_E_RESOURCE_NOT_FOUND
          The server or proxy was not found.
static int INET_E_RESULT_DISPATCHED
          The binding has already been completed and the result has been dispatched, so your abort call has been canceled.
static int INET_E_SECURITY_PROBLEM
          The URI contains syntax that attempts to bypass security.
static int INET_E_UNKNOWN_PROTOCOL
          The protocol is not known and no pluggable protocols have been entered that match.
static int INET_E_USE_DEFAULT_PROTOCOLHANDLER
          Use the default protocol handler.
static int INET_E_USE_DEFAULT_SETTING
          Use the default settings.
static int INET_E_USE_EXTEND_BINDING
          Reissue request with extended binding.
static int OLE_E_ADVF
          Invalid advise flags.
static int OLE_E_ADVISENOTSUPPORTED
          This implementation does not take advises.
static int OLE_E_BLANK
          Uninitialized object.
static int OLE_E_CANT_BINDTOSOURCE
          Not able to bind to the source.
static int OLE_E_CANT_GETMONIKER
          Not able to get the moniker of the object.
static int OLE_E_CANTCONVERT
          Not able to convert object.
static int OLE_E_CLASSDIFF
          Linked object's source class has changed.
static int OLE_E_ENUM_NOMORE
          Cannot enumerate any more because the associated data is missing.
static int OLE_E_FIRST
          The lowest allowed value for an OLE error code.
static int OLE_E_INVALIDHWND
          Invalid window handle.
static int OLE_E_INVALIDRECT
          Invalid rectangle.
static int OLE_E_LAST
          The highest allowed value for an OLE error code.
static int OLE_E_NOCACHE
          There is no cache to operate on.
static int OLE_E_NOCONNECTION
          There is no connection for this connection ID.
static int OLE_E_NOSTORAGE
          Not able to perform the operation because object is not given storage yet.
static int OLE_E_NOT_INPLACEACTIVE
          Object is not in any of the inplace active states.
static int OLE_E_NOTRUNNING
          Need to run the object to perform this operation.
static int OLE_E_OLEVERB
          Invalid OLEVERB structure.
static int OLE_E_PROMPTSAVECANCELLED
          User canceled out of the Save dialog box.
static int OLE_E_STATIC
          Object is static, operation not allowed.
static int OLE_E_WRONGCOMPOBJ
          compobj.dll is too old for the ole2.dll initialized.
static int OLE_S_FIRST
          The lowest allowed value for an OLE status code.
static int OLE_S_LAST
          The highest allowed value for an OLE status code.
static int OLECMDERR_E_FIRST
          The lowest allowed value for an OLE command error code.
static int OLECMDERR_E_NOTSUPPORTED
          Command parameter is not recognized as a valid command
static int OLECMDERR_E_UNKNOWNGROUP
          Command group parameter is non-NULL but does not specify a recognized command group
static int PERPROP_E_NOPAGEAVAILABLE
          COM object does not have an appropriate connection point for the specified IID
static int REGDB_E_CLASSNOTREG
          Class not registered.
static int REGDB_E_IIDNOTREG
          Interface not registered.
static int RPC_E_CALL_REJECTED
          Call was rejected by callee.
static int RPC_E_DISCONNECTED
          The object invoked has disconnected from its clients.
static int RPC_E_SERVERCALL_RETRYLATER
          The message filter indicated that the application is busy.
static int S_FALSE
          Completed without error, but only partial results were obtained.
static int S_OK
          Successful completion.
static int SELFREG_E_CLASS
          The server was unable to complete the registration of all the object classes.
static int SELFREG_E_TYPELIB
          The server was unable to complete the registration of all the type libraries used by its classes.
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
HResult()
          Creates the instance of the HResult
HResult(int value)
          Creates instance of the HResult with the specified value
HResult(com.jniwrapper.IntegerParameter value)
          Creates instance of the HResult with the specified value
HResult(short severity, short facility, boolean isError)
          Creates instance of the HResult with the specified value
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
static java.lang.String decodeHResult(int hResult)
          Returns name (if found) and description of the error that corresponds to the specified code
 short getFacility()
          Returns facility code
 short getSCode()
          Returns facility's status code
 boolean isError()
          Specifies whether this is error or not
 
Methods inherited from class com.jniwrapper.Int32
getLength, getValue, read, setValue, write
 
Methods inherited from class com.jniwrapper.ac
equals, getDebugInfo, hashCode, toLong, toString
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, acceptIOPerformer, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

S_OK

public static final int S_OK
Successful completion.

See Also:
Constant Field Values

S_FALSE

public static final int S_FALSE
Completed without error, but only partial results were obtained. If a buffer is not large enough to hold the information that is returned to it, the returned information is often truncated to fit into the buffer and S_FALSE is returned from the method.

See Also:
Constant Field Values

E_NOTIMPL

public static final int E_NOTIMPL
Not implemented.

See Also:
Constant Field Values

E_OUTOFMEMORY

public static final int E_OUTOFMEMORY
A memory allocation attempt failed.

See Also:
Constant Field Values

E_INVALIDARG

public static final int E_INVALIDARG
One of the arguments passed in was invalid.

See Also:
Constant Field Values

E_NOINTERFACE

public static final int E_NOINTERFACE
The object searched for was not found.

See Also:
Constant Field Values

E_POINTER

public static final int E_POINTER
Pointer that is not valid

See Also:
Constant Field Values

E_HANDLE

public static final int E_HANDLE
Handle that is not valid

See Also:
Constant Field Values

E_ABORT

public static final int E_ABORT
Operation aborted

See Also:
Constant Field Values

E_FAIL

public static final int E_FAIL
The operation could not be performed.

See Also:
Constant Field Values

E_UNEXPECTED

public static final int E_UNEXPECTED
The target was not accessible, or the engine was not in a state where the function or method could be processed.

See Also:
Constant Field Values

E_ACCESSDENIED

public static final int E_ACCESSDENIED
General access denied error

See Also:
Constant Field Values

CLASS_E_NOAGGREGATION

public static final int CLASS_E_NOAGGREGATION
Class does not support aggregation (or class object is remote).

See Also:
Constant Field Values

CLASS_E_CLASSNOTAVAILABLE

public static final int CLASS_E_CLASSNOTAVAILABLE
ClassFactory cannot supply requested class.

See Also:
Constant Field Values

CLASS_E_NOTLICENSED

public static final int CLASS_E_NOTLICENSED
Class is not licensed for use.

See Also:
Constant Field Values

CONNECT_E_FIRST

public static final int CONNECT_E_FIRST
The lowest allowed value for connection error codes.

See Also:
Constant Field Values

CONNECT_E_NOCONNECTION

public static final int CONNECT_E_NOCONNECTION
There is no connection

See Also:
Constant Field Values

CONNECT_E_ADVISELIMIT

public static final int CONNECT_E_ADVISELIMIT
This implementation's limit for advisory connections has been reached

See Also:
Constant Field Values

CONNECT_E_CANNOTCONNECT

public static final int CONNECT_E_CANNOTCONNECT
Connection attempt failed

See Also:
Constant Field Values

CONNECT_E_OVERRIDDEN

public static final int CONNECT_E_OVERRIDDEN
Must use a derived interface to connect

See Also:
Constant Field Values

SELFREG_E_TYPELIB

public static final int SELFREG_E_TYPELIB
The server was unable to complete the registration of all the type libraries used by its classes.

See Also:
Constant Field Values

SELFREG_E_CLASS

public static final int SELFREG_E_CLASS
The server was unable to complete the registration of all the object classes.

See Also:
Constant Field Values

PERPROP_E_NOPAGEAVAILABLE

public static final int PERPROP_E_NOPAGEAVAILABLE
COM object does not have an appropriate connection point for the specified IID

See Also:
Constant Field Values

INET_E_INVALID_URL

public static final int INET_E_INVALID_URL
The URL could not be parsed.

See Also:
Constant Field Values

INET_E_NO_SESSION

public static final int INET_E_NO_SESSION
No Internet session was established.

See Also:
Constant Field Values

INET_E_CANNOT_CONNECT

public static final int INET_E_CANNOT_CONNECT
The attempt to connect to the Internet has failed.

See Also:
Constant Field Values

INET_E_RESOURCE_NOT_FOUND

public static final int INET_E_RESOURCE_NOT_FOUND
The server or proxy was not found.

See Also:
Constant Field Values

INET_E_OBJECT_NOT_FOUND

public static final int INET_E_OBJECT_NOT_FOUND
The object was not found.

See Also:
Constant Field Values

INET_E_DATA_NOT_AVAILABLE

public static final int INET_E_DATA_NOT_AVAILABLE
An Internet connection was established, but the data cannot be retrieved.

See Also:
Constant Field Values

INET_E_DOWNLOAD_FAILURE

public static final int INET_E_DOWNLOAD_FAILURE
The download has failed (the connection was interrupted).

See Also:
Constant Field Values

INET_E_AUTHENTICATION_REQUIRED

public static final int INET_E_AUTHENTICATION_REQUIRED
Authentication is needed to access the object.

See Also:
Constant Field Values

INET_E_NO_VALID_MEDIA

public static final int INET_E_NO_VALID_MEDIA
The object is not in one of the acceptable MIME types.

See Also:
Constant Field Values

INET_E_CONNECTION_TIMEOUT

public static final int INET_E_CONNECTION_TIMEOUT
The Internet connection has timed out.

See Also:
Constant Field Values

INET_E_INVALID_REQUEST

public static final int INET_E_INVALID_REQUEST
The request was invalid.

See Also:
Constant Field Values

INET_E_UNKNOWN_PROTOCOL

public static final int INET_E_UNKNOWN_PROTOCOL
The protocol is not known and no pluggable protocols have been entered that match.

See Also:
Constant Field Values

INET_E_SECURITY_PROBLEM

public static final int INET_E_SECURITY_PROBLEM
The URI contains syntax that attempts to bypass security.

See Also:
Constant Field Values

INET_E_CANNOT_LOAD_DATA

public static final int INET_E_CANNOT_LOAD_DATA
The object could not be loaded.

See Also:
Constant Field Values

INET_E_CANNOT_INSTANTIATE_OBJECT

public static final int INET_E_CANNOT_INSTANTIATE_OBJECT
Creation of the object of the class associated with a specified CLSID failed

See Also:
Constant Field Values

INET_E_USE_DEFAULT_PROTOCOLHANDLER

public static final int INET_E_USE_DEFAULT_PROTOCOLHANDLER
Use the default protocol handler.

See Also:
Constant Field Values

INET_E_DEFAULT_ACTION

public static final int INET_E_DEFAULT_ACTION
Use the default security manager for this action. A custom security manager should only process input that is both valid and specific to itself and return INET_E_DEFAULT_ACTION for all other methods or URL actions.

See Also:
Constant Field Values

INET_E_USE_DEFAULT_SETTING

public static final int INET_E_USE_DEFAULT_SETTING
Use the default settings.

See Also:
Constant Field Values

INET_E_QUERYOPTION_UNKNOWN

public static final int INET_E_QUERYOPTION_UNKNOWN
The requested option is unknown.

See Also:
Constant Field Values

INET_E_REDIRECTING

public static final int INET_E_REDIRECTING
The request is being redirected.

See Also:
Constant Field Values

INET_E_REDIRECT_FAILED

public static final int INET_E_REDIRECT_FAILED
Microsoft Win32 Internet (WinInet) cannot redirect. This error code might also be returned by a custom protocol handler.

See Also:
Constant Field Values

INET_E_REDIRECT_TO_DIR

public static final int INET_E_REDIRECT_TO_DIR
The request is being redirected to a directory.

See Also:
Constant Field Values

INET_E_CANNOT_LOCK_REQUEST

public static final int INET_E_CANNOT_LOCK_REQUEST
The requested resource could not be locked.

See Also:
Constant Field Values

INET_E_USE_EXTEND_BINDING

public static final int INET_E_USE_EXTEND_BINDING
Reissue request with extended binding.

See Also:
Constant Field Values

INET_E_ERROR_FIRST

public static final int INET_E_ERROR_FIRST
The lowest allowed value for an URL moniker error code.

See Also:
Constant Field Values

INET_E_ERROR_LAST

public static final int INET_E_ERROR_LAST
The highest allowed value for an URL moniker error code.

See Also:
Constant Field Values

INET_E_CODE_DOWNLOAD_DECLINED

public static final int INET_E_CODE_DOWNLOAD_DECLINED
The component download was declined by the user.

See Also:
Constant Field Values

INET_E_RESULT_DISPATCHED

public static final int INET_E_RESULT_DISPATCHED
The binding has already been completed and the result has been dispatched, so your abort call has been canceled.

See Also:
Constant Field Values

INET_E_CANNOT_REPLACE_SFP_FILE

public static final int INET_E_CANNOT_REPLACE_SFP_FILE
Cannot replace a file that is protected by System File Protection (SFP).

See Also:
Constant Field Values

DISP_E_UNKNOWNINTERFACE

public static final int DISP_E_UNKNOWNINTERFACE
Unknown interface.

See Also:
Constant Field Values

DISP_E_MEMBERNOTFOUND

public static final int DISP_E_MEMBERNOTFOUND
Member not found.

See Also:
Constant Field Values

DISP_E_PARAMNOTFOUND

public static final int DISP_E_PARAMNOTFOUND
Parameter not found.

See Also:
Constant Field Values

DISP_E_TYPEMISMATCH

public static final int DISP_E_TYPEMISMATCH
Type mismatch.

See Also:
Constant Field Values

DISP_E_UNKNOWNNAME

public static final int DISP_E_UNKNOWNNAME
Unknown name.

See Also:
Constant Field Values

DISP_E_NONAMEDARGS

public static final int DISP_E_NONAMEDARGS
No named arguments.

See Also:
Constant Field Values

DISP_E_BADVARTYPE

public static final int DISP_E_BADVARTYPE
Bad variable type.

See Also:
Constant Field Values

DISP_E_EXCEPTION

public static final int DISP_E_EXCEPTION
Exception occurred.

See Also:
Constant Field Values

DISP_E_OVERFLOW

public static final int DISP_E_OVERFLOW
Out of present range.

See Also:
Constant Field Values

DISP_E_BADINDEX

public static final int DISP_E_BADINDEX
Invalid index.

See Also:
Constant Field Values

DISP_E_UNKNOWNLCID

public static final int DISP_E_UNKNOWNLCID
Unknown language.

See Also:
Constant Field Values

DISP_E_ARRAYISLOCKED

public static final int DISP_E_ARRAYISLOCKED
Memory is locked.

See Also:
Constant Field Values

DISP_E_BADPARAMCOUNT

public static final int DISP_E_BADPARAMCOUNT
Invalid number of parameters.

See Also:
Constant Field Values

DISP_E_PARAMNOTOPTIONAL

public static final int DISP_E_PARAMNOTOPTIONAL
Parameter not optional.

See Also:
Constant Field Values

DISP_E_BADCALLEE

public static final int DISP_E_BADCALLEE
Invalid callee.

See Also:
Constant Field Values

DISP_E_NOTACOLLECTION

public static final int DISP_E_NOTACOLLECTION
Does not support a collection.

See Also:
Constant Field Values

DISP_E_DIVBYZERO

public static final int DISP_E_DIVBYZERO
Division by zero.

See Also:
Constant Field Values

CO_E_NOTINITIALIZED

public static final int CO_E_NOTINITIALIZED
COM library has not been called.

See Also:
Constant Field Values

CO_E_ALREADYINITIALIZED

public static final int CO_E_ALREADYINITIALIZED
COM library has already been called.

See Also:
Constant Field Values

CO_E_CANTDETERMINECLASS

public static final int CO_E_CANTDETERMINECLASS
Class of object cannot be determined.

See Also:
Constant Field Values

CO_E_CLASSSTRING

public static final int CO_E_CLASSSTRING
Invalid class string.

See Also:
Constant Field Values

CO_E_IIDSTRING

public static final int CO_E_IIDSTRING
Invalid interface string

See Also:
Constant Field Values

CO_E_APPNOTFOUND

public static final int CO_E_APPNOTFOUND
Application not found.

See Also:
Constant Field Values

CO_E_APPSINGLEUSE

public static final int CO_E_APPSINGLEUSE
Application cannot be run more than once.

See Also:
Constant Field Values

CO_E_ERRORINAPP

public static final int CO_E_ERRORINAPP
Some error in application.

See Also:
Constant Field Values

CO_E_DLLNOTFOUND

public static final int CO_E_DLLNOTFOUND
DLL for class not found.

See Also:
Constant Field Values

CO_E_ERRORINDLL

public static final int CO_E_ERRORINDLL
Error in the DLL.

See Also:
Constant Field Values

CO_E_WRONGOSFORAPP

public static final int CO_E_WRONGOSFORAPP
Wrong operating system or operating system version for application.

See Also:
Constant Field Values

CO_E_OBJNOTREG

public static final int CO_E_OBJNOTREG
Object is not registered.

See Also:
Constant Field Values

CO_E_OBJISREG

public static final int CO_E_OBJISREG
Object is already registered.

See Also:
Constant Field Values

CO_E_OBJNOTCONNECTED

public static final int CO_E_OBJNOTCONNECTED
Object is not connected to server.

See Also:
Constant Field Values

CO_E_APPDIDNTREG

public static final int CO_E_APPDIDNTREG
Application was launched, but it did not register a class factory.

See Also:
Constant Field Values

CO_E_RELEASED

public static final int CO_E_RELEASED
Object has been released.

See Also:
Constant Field Values

RPC_E_DISCONNECTED

public static final int RPC_E_DISCONNECTED
The object invoked has disconnected from its clients.

See Also:
Constant Field Values

RPC_E_SERVERCALL_RETRYLATER

public static final int RPC_E_SERVERCALL_RETRYLATER
The message filter indicated that the application is busy.

See Also:
Constant Field Values

RPC_E_CALL_REJECTED

public static final int RPC_E_CALL_REJECTED
Call was rejected by callee.

See Also:
Constant Field Values

OLE_E_FIRST

public static final int OLE_E_FIRST
The lowest allowed value for an OLE error code.

See Also:
Constant Field Values

OLE_E_LAST

public static final int OLE_E_LAST
The highest allowed value for an OLE error code.

See Also:
Constant Field Values

OLE_S_FIRST

public static final int OLE_S_FIRST
The lowest allowed value for an OLE status code.

See Also:
Constant Field Values

OLE_S_LAST

public static final int OLE_S_LAST
The highest allowed value for an OLE status code.

See Also:
Constant Field Values

OLE_E_OLEVERB

public static final int OLE_E_OLEVERB
Invalid OLEVERB structure.

See Also:
Constant Field Values

OLE_E_ADVF

public static final int OLE_E_ADVF
Invalid advise flags.

See Also:
Constant Field Values

OLE_E_ENUM_NOMORE

public static final int OLE_E_ENUM_NOMORE
Cannot enumerate any more because the associated data is missing.

See Also:
Constant Field Values

OLE_E_ADVISENOTSUPPORTED

public static final int OLE_E_ADVISENOTSUPPORTED
This implementation does not take advises.

See Also:
Constant Field Values

OLE_E_NOCONNECTION

public static final int OLE_E_NOCONNECTION
There is no connection for this connection ID.

See Also:
Constant Field Values

OLE_E_NOTRUNNING

public static final int OLE_E_NOTRUNNING
Need to run the object to perform this operation.

See Also:
Constant Field Values

OLE_E_NOCACHE

public static final int OLE_E_NOCACHE
There is no cache to operate on.

See Also:
Constant Field Values

OLE_E_BLANK

public static final int OLE_E_BLANK
Uninitialized object.

See Also:
Constant Field Values

OLE_E_CLASSDIFF

public static final int OLE_E_CLASSDIFF
Linked object's source class has changed.

See Also:
Constant Field Values

OLE_E_CANT_GETMONIKER

public static final int OLE_E_CANT_GETMONIKER
Not able to get the moniker of the object.

See Also:
Constant Field Values

OLE_E_CANT_BINDTOSOURCE

public static final int OLE_E_CANT_BINDTOSOURCE
Not able to bind to the source.

See Also:
Constant Field Values

OLE_E_STATIC

public static final int OLE_E_STATIC
Object is static, operation not allowed.

See Also:
Constant Field Values

OLE_E_PROMPTSAVECANCELLED

public static final int OLE_E_PROMPTSAVECANCELLED
User canceled out of the Save dialog box.

See Also:
Constant Field Values

OLE_E_INVALIDRECT

public static final int OLE_E_INVALIDRECT
Invalid rectangle.

See Also:
Constant Field Values

OLE_E_WRONGCOMPOBJ

public static final int OLE_E_WRONGCOMPOBJ
compobj.dll is too old for the ole2.dll initialized.

See Also:
Constant Field Values

OLE_E_INVALIDHWND

public static final int OLE_E_INVALIDHWND
Invalid window handle.

See Also:
Constant Field Values

OLE_E_NOT_INPLACEACTIVE

public static final int OLE_E_NOT_INPLACEACTIVE
Object is not in any of the inplace active states.

See Also:
Constant Field Values

OLE_E_CANTCONVERT

public static final int OLE_E_CANTCONVERT
Not able to convert object.

See Also:
Constant Field Values

OLE_E_NOSTORAGE

public static final int OLE_E_NOSTORAGE
Not able to perform the operation because object is not given storage yet.

See Also:
Constant Field Values

REGDB_E_CLASSNOTREG

public static final int REGDB_E_CLASSNOTREG
Class not registered.

See Also:
Constant Field Values

REGDB_E_IIDNOTREG

public static final int REGDB_E_IIDNOTREG
Interface not registered.

See Also:
Constant Field Values

OLECMDERR_E_FIRST

public static final int OLECMDERR_E_FIRST
The lowest allowed value for an OLE command error code.

See Also:
Constant Field Values

OLECMDERR_E_NOTSUPPORTED

public static final int OLECMDERR_E_NOTSUPPORTED
Command parameter is not recognized as a valid command

See Also:
Constant Field Values

OLECMDERR_E_UNKNOWNGROUP

public static final int OLECMDERR_E_UNKNOWNGROUP
Command group parameter is non-NULL but does not specify a recognized command group

See Also:
Constant Field Values
Constructor Detail

HResult

public HResult()
Creates the instance of the HResult


HResult

public HResult(int value)
Creates instance of the HResult with the specified value

Parameters:
value - Error or state code

HResult

public HResult(com.jniwrapper.IntegerParameter value)
Creates instance of the HResult with the specified value

Parameters:
value - Error or state code

HResult

public HResult(short severity,
               short facility,
               boolean isError)
Creates instance of the HResult with the specified value

Parameters:
severity - The facility's status code. A code describing the error or warning.
facility - The facility code. Specifies the software component that defines this error code.
isError - TRUE if success and FALSE IF failure.
Method Detail

getSCode

public short getSCode()
Returns facility's status code

Returns:
Facility's status code

getFacility

public short getFacility()
Returns facility code

Returns:
The facility code

isError

public boolean isError()
Specifies whether this is error or not

Returns:
TRUE if this is error cod and FALSE if not

clone

public java.lang.Object clone()
Creates and returns a copy of this object.

Returns:
The copy of this instance

decodeHResult

public static java.lang.String decodeHResult(int hResult)
Returns name (if found) and description of the error that corresponds to the specified code

Parameters:
hResult - HResult code
Returns:
String that contains name (if found) and description of the error that corresponds to the specified code in format "[description] ([name])"