public class Marshal extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.InteropServices.Marshal
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Runtime.InteropServices.Marshal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Marshal() |
Marshal(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AreComObjectsAvailableForCleanup() |
static NetObject |
BindToMoniker(java.lang.String monikerName) |
static Marshal |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Marshal, a cast assert is made to check if types are compatible. |
static void |
ChangeWrapperHandleStrength(NetObject otp,
boolean fIsWeak) |
static void |
CleanupUnusedObjectsInCurrentContext() |
static NetObject |
CreateWrapperOfType(NetObject o,
NetType t) |
static int |
FinalReleaseComObject(NetObject o) |
static Guid |
GenerateGuidForType(NetType type) |
static java.lang.String |
GenerateProgIdForType(NetType type) |
static NetObject |
GetActiveObject(java.lang.String progID) |
static NetObject |
GetComObjectData(NetObject obj,
NetObject key) |
static int |
GetComSlotForMethodInfo(MemberInfo m) |
static int |
GetEndComSlot(NetType t) |
static int |
GetExceptionCode() |
static NetException |
GetExceptionForHR(int errorCode) |
static int |
GetHRForException(NetException e) |
static int |
GetHRForLastWin32Error() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static int |
GetLastWin32Error() |
static MemberInfo |
GetMethodInfoForComSlot(NetType t,
int slot,
JCORefOut<ComMemberType> memberType) |
static int |
GetStartComSlot(NetType t) |
static Thread |
GetThreadFromFiberCookie(int cookie) |
static NetType |
GetTypeFromCLSID(Guid clsid) |
static java.lang.String |
GetTypeInfoName(ITypeInfo typeInfo) |
static java.lang.String |
GetTypeInfoName(UCOMITypeInfo pTI) |
static Guid |
GetTypeLibGuid(ITypeLib typelib) |
static Guid |
GetTypeLibGuid(UCOMITypeLib pTLB) |
static Guid |
GetTypeLibGuidForAssembly(Assembly asm) |
static int |
GetTypeLibLcid(ITypeLib typelib) |
static int |
GetTypeLibLcid(UCOMITypeLib pTLB) |
static java.lang.String |
GetTypeLibName(ITypeLib typelib) |
static java.lang.String |
GetTypeLibName(UCOMITypeLib pTLB) |
static void |
GetTypeLibVersionForAssembly(Assembly inputAssembly,
JCORefOut<java.util.concurrent.atomic.AtomicInteger> majorVersion,
JCORefOut<java.util.concurrent.atomic.AtomicInteger> minorVersion) |
static boolean |
IsComObject(NetObject o) |
static boolean |
IsTypeVisibleFromCom(NetType t) |
static int |
NumParamBytes(MethodInfo m) |
static void |
Prelink(MethodInfo m) |
static void |
PrelinkAll(NetType c) |
static byte |
ReadByte(NetObject ptr,
int ofs) |
static short |
ReadInt16(NetObject ptr,
int ofs) |
static int |
ReadInt32(NetObject ptr,
int ofs) |
static long |
ReadInt64(NetObject ptr,
int ofs) |
static int |
ReleaseComObject(NetObject o) |
static void |
ReleaseThreadCache() |
static boolean |
SetComObjectData(NetObject obj,
NetObject key,
NetObject data) |
void |
setJCOInstance(JCObject instance) |
static int |
SizeOf(NetObject structure) |
static int |
SizeOf(NetType t) |
static void |
ThrowExceptionForHR(int errorCode) |
static void |
WriteByte(JCORefOut<NetObject> ptr,
int ofs,
byte val) |
static void |
WriteInt16(JCORefOut<NetObject> ptr,
int ofs,
char val) |
static void |
WriteInt16(JCORefOut<NetObject> ptr,
int ofs,
short val) |
static void |
WriteInt32(JCORefOut<NetObject> ptr,
int ofs,
int val) |
static void |
WriteInt64(JCORefOut<NetObject> ptr,
int ofs,
long val) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Marshal()
throws java.lang.Throwable
java.lang.Throwablepublic Marshal(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static boolean AreComObjectsAvailableForCleanup()
throws java.lang.Throwable
java.lang.Throwablepublic static NetObject BindToMoniker(java.lang.String monikerName) throws java.lang.Throwable
java.lang.Throwablepublic static Marshal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Marshal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMarshal instancejava.lang.Throwable - in case of error during cast operationpublic static void ChangeWrapperHandleStrength(NetObject otp, boolean fIsWeak) throws java.lang.Throwable
java.lang.Throwablepublic static void CleanupUnusedObjectsInCurrentContext()
throws java.lang.Throwable
java.lang.Throwablepublic static NetObject CreateWrapperOfType(NetObject o, NetType t) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ObjectDisposedException, AbandonedMutexException, ArgumentOutOfRangeException, FormatException, InvalidOperationException
public static int FinalReleaseComObject(NetObject o) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static Guid GenerateGuidForType(NetType type) throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String GenerateProgIdForType(NetType type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotSupportedException
public static NetObject GetActiveObject(java.lang.String progID) throws java.lang.Throwable
java.lang.Throwablepublic static NetObject GetComObjectData(NetObject obj, NetObject key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionObjectDisposedExceptionAbandonedMutexExceptionpublic static int GetComSlotForMethodInfo(MemberInfo m) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static int GetEndComSlot(NetType t) throws java.lang.Throwable
java.lang.Throwablepublic static int GetExceptionCode()
throws java.lang.Throwable
java.lang.Throwablepublic static NetException GetExceptionForHR(int errorCode) throws java.lang.Throwable
java.lang.Throwablepublic static int GetHRForException(NetException e) throws java.lang.Throwable
java.lang.Throwablepublic static int GetHRForLastWin32Error()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static int GetLastWin32Error()
throws java.lang.Throwable
java.lang.Throwablepublic static MemberInfo GetMethodInfoForComSlot(NetType t, int slot, JCORefOut<ComMemberType> memberType) throws java.lang.Throwable
java.lang.Throwablepublic static int GetStartComSlot(NetType t) throws java.lang.Throwable
java.lang.Throwablepublic static Thread GetThreadFromFiberCookie(int cookie) throws java.lang.Throwable, ArgumentException
java.lang.ThrowableArgumentExceptionpublic static NetType GetTypeFromCLSID(Guid clsid) throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String GetTypeInfoName(ITypeInfo typeInfo) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static java.lang.String GetTypeInfoName(UCOMITypeInfo pTI) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static Guid GetTypeLibGuid(ITypeLib typelib) throws java.lang.Throwable
java.lang.Throwablepublic static Guid GetTypeLibGuid(UCOMITypeLib pTLB) throws java.lang.Throwable
java.lang.Throwablepublic static Guid GetTypeLibGuidForAssembly(Assembly asm) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static int GetTypeLibLcid(ITypeLib typelib) throws java.lang.Throwable
java.lang.Throwablepublic static int GetTypeLibLcid(UCOMITypeLib pTLB) throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String GetTypeLibName(ITypeLib typelib) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static java.lang.String GetTypeLibName(UCOMITypeLib pTLB) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static void GetTypeLibVersionForAssembly(Assembly inputAssembly, JCORefOut<java.util.concurrent.atomic.AtomicInteger> majorVersion, JCORefOut<java.util.concurrent.atomic.AtomicInteger> minorVersion) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static boolean IsComObject(NetObject o) throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsTypeVisibleFromCom(NetType t) throws java.lang.Throwable
java.lang.Throwablepublic static int NumParamBytes(MethodInfo m) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static void Prelink(MethodInfo m) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static void PrelinkAll(NetType c) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static byte ReadByte(NetObject ptr, int ofs) throws java.lang.Throwable
java.lang.Throwablepublic static short ReadInt16(NetObject ptr, int ofs) throws java.lang.Throwable
java.lang.Throwablepublic static int ReadInt32(NetObject ptr, int ofs) throws java.lang.Throwable
java.lang.Throwablepublic static long ReadInt64(NetObject ptr, int ofs) throws java.lang.Throwable
java.lang.Throwablepublic static int ReleaseComObject(NetObject o) throws java.lang.Throwable
java.lang.Throwablepublic static void ReleaseThreadCache()
throws java.lang.Throwable
java.lang.Throwablepublic static boolean SetComObjectData(NetObject obj, NetObject key, NetObject data) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, ArgumentOutOfRangeException, FormatException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static int SizeOf(NetObject structure) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static int SizeOf(NetType t) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static void ThrowExceptionForHR(int errorCode)
throws java.lang.Throwable
java.lang.Throwablepublic static void WriteByte(JCORefOut<NetObject> ptr, int ofs, byte val) throws java.lang.Throwable
java.lang.Throwablepublic static void WriteInt16(JCORefOut<NetObject> ptr, int ofs, char val) throws java.lang.Throwable
java.lang.Throwablepublic static void WriteInt16(JCORefOut<NetObject> ptr, int ofs, short val) throws java.lang.Throwable
java.lang.Throwablepublic static void WriteInt32(JCORefOut<NetObject> ptr, int ofs, int val) throws java.lang.Throwable
java.lang.Throwable