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 = 35
Indicates the ANSI character string that is a length-prefixed single byte. You can use this member on the String data type.
AsAny = 40
Indicates 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 = 19
Indicates the Unicode character string type that is a length-prefixed double byte.
Boolean = 2
Indicates the 4 byte boolean value type where 0 represents false, and any non-zero value represents true.
ByValStr = 34
Indicates 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 = 15
Indicates the currency type
CustomMarshaller = 44
Indicates a custom marshaller type, indicated by a string.
Date = 18
Indicates the date value type. This type is deprecated.
Decimal = 17
Indicates the decimal value type. This type is deprecated.
Error = 45
Indicates 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 = 30
Indicates the ByValArray or FixedArray value type.
FixedSysString = 23
Indicates the value is a fixed length string using the system character encoding. This type is deprecated.
FunctionPointer = 38
Indicates the C-style function pointer value type.
HString = 47
Indicates a Windows Runtime string.
I1 = 3
Indicates the signed byte value type.
I2 = 5
Indicates the signed 16 bit integer value type.
I4 = 7
Indicates the signed 32 bit integer value type.
I8 = 9
Indicates the signed 64 bit integer value type.
IDispatch = 26
Indicates the COM IDispatch pointer value type.
IInspectable = 46
Indicates a Windows Runtime interface pointer.
IUnknown = 25
Indicates the COM IUnknown pointer value type.
Interface = 28
Indicates the Windows Runtime interface pointer type.
LPArray = 42
Indicates a pointer to the first element of a C-style array.
LPStr = 20
Indicates the value is a pointer to an array of 8 bit characters.
LPStruct = 43
Indicates 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 = 22
Indicates the value is a pointer to an array of TCHAR.
LPUTF8Str = 48
Indicates a pointer to a UTF-8 encoded string.
LPWStr = 21
Indicates the value is a pointer to an array of 16 bit characters.
Max = 80
Indicates
NestedStruct = 33
Indicates the nested struct value type. This type is deprecated and Struct is recommended instead.
ObjectRef = 24
Indicates the value is an object reference. This type is deprecated.
Ptr = 16
Indicates the raw pointer type. This type is deprecated.
R4 = 11
Indicates the 32 bit floating point value type.
R8 = 12
Indicates the 64 bit floating point value type.
SafeArray = 29
Indicates the SafeArray value type, which is a self-describing array that carries the type, rank, and bounds of the associated array data.
Struct = 27
Indicates the VARIANT type, which is used to marshal managed formatted classes and value types.
SysChar = 13
Indicates the system character type. This type is deprecated.
SysInt = 31
Indicates the signed system integer type.
SysUInt = 32
Indicates the unsigned system integer type.
TBStr = 36
Indicates the length-prefixed, platform-dependent char string type, which is ANSI on Windows 98, Unicode on Windows NT.
U1 = 4
Indicates the unsigned byte value type.
U2 = 6
Indicates the unsigned 16 bit integer value type.
U4 = 8
Indicates the unsigned 32 bit integer value type.
U8 = 10
Indicates the unsigned 64 bit integer value type.
Variant = 14
Indicates the variant type. This type is deprecated.
VariantBool = 37
Indicates the 2 byte VARIANT_BOOL type, where 0 represents false and -1 represents true.
Void = 1
Indicates the void native type. This type is deprecated.