Enum NativeType
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Provides members describing native types used for marshalling managed types to unmanaged types and vice versa.
public enum NativeType : byte
Fields
AnsiBStr = 35Indicates the ANSI character string that is a length-prefixed single byte. You can use this member on the String data type.
AsAny = 40Indicates the dynamic type that determines the type of an object at run time and marshals the object as that type. This member is valid for platform invoke methods only.
BStr = 19Indicates the Unicode character string type that is a length-prefixed double byte.
Boolean = 2Indicates the 4 byte boolean value type where 0 represents false, and any non-zero value represents true.
ByValStr = 34Indicates the value tyep that enables Visual Basic to change a string in unmanaged code and have the results reflected in managed code. This value is only supported for platform invoke.
Currency = 15Indicates the currency type
CustomMarshaller = 44Indicates a custom marshaller type, indicated by a string.
Date = 18Indicates the date value type. This type is deprecated.
Decimal = 17Indicates the decimal value type. This type is deprecated.
Error = 45Indicates the native type that is associated with an I4 or an U4 and that causes the parameter to be exported as an HRESULT in the exported type library.
FixedArray = 30Indicates the ByValArray or FixedArray value type.
FixedSysString = 23Indicates the value is a fixed length string using the system character encoding. This type is deprecated.
FunctionPointer = 38Indicates the C-style function pointer value type.
HString = 47Indicates a Windows Runtime string.
I1 = 3Indicates the signed byte value type.
I2 = 5Indicates the signed 16 bit integer value type.
I4 = 7Indicates the signed 32 bit integer value type.
I8 = 9Indicates the signed 64 bit integer value type.
IDispatch = 26Indicates the COM IDispatch pointer value type.
IInspectable = 46Indicates a Windows Runtime interface pointer.
IUnknown = 25Indicates the COM IUnknown pointer value type.
Interface = 28Indicates the Windows Runtime interface pointer type.
LPArray = 42Indicates a pointer to the first element of a C-style array.
LPStr = 20Indicates the value is a pointer to an array of 8 bit characters.
LPStruct = 43Indicates a pointer to a C-style structure that you use to marshal managed formatted classes. This member is valid for platform invoke methods only.
LPTStr = 22Indicates the value is a pointer to an array of TCHAR.
LPUTF8Str = 48Indicates a pointer to a UTF-8 encoded string.
LPWStr = 21Indicates the value is a pointer to an array of 16 bit characters.
Max = 80Indicates
NestedStruct = 33Indicates the nested struct value type. This type is deprecated and Struct is recommended instead.
ObjectRef = 24Indicates the value is an object reference. This type is deprecated.
Ptr = 16Indicates the raw pointer type. This type is deprecated.
R4 = 11Indicates the 32 bit floating point value type.
R8 = 12Indicates the 64 bit floating point value type.
SafeArray = 29Indicates the SafeArray value type, which is a self-describing array that carries the type, rank, and bounds of the associated array data.
Struct = 27Indicates the VARIANT type, which is used to marshal managed formatted classes and value types.
SysChar = 13Indicates the system character type. This type is deprecated.
SysInt = 31Indicates the signed system integer type.
SysUInt = 32Indicates the unsigned system integer type.
TBStr = 36Indicates the length-prefixed, platform-dependent char string type, which is ANSI on Windows 98, Unicode on Windows NT.
U1 = 4Indicates the unsigned byte value type.
U2 = 6Indicates the unsigned 16 bit integer value type.
U4 = 8Indicates the unsigned 32 bit integer value type.
U8 = 10Indicates the unsigned 64 bit integer value type.
Variant = 14Indicates the variant type. This type is deprecated.
VariantBool = 37Indicates the 2 byte VARIANT_BOOL type, where 0 represents false and -1 represents true.
Void = 1Indicates the void native type. This type is deprecated.