initial commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
namespace System.Runtime.InteropServices;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
internal sealed class LibraryImportAttribute : Attribute
|
||||
{
|
||||
public string LibraryName { get; }
|
||||
|
||||
public string EntryPoint { get; set; }
|
||||
|
||||
public StringMarshalling StringMarshalling { get; set; }
|
||||
|
||||
public Type StringMarshallingCustomType { get; set; }
|
||||
|
||||
public bool SetLastError { get; set; }
|
||||
|
||||
public LibraryImportAttribute(string libraryName)
|
||||
{
|
||||
LibraryName = libraryName;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace System.Runtime.InteropServices;
|
||||
|
||||
internal enum StringMarshalling
|
||||
{
|
||||
Custom,
|
||||
Utf8,
|
||||
Utf16
|
||||
}
|
||||
Reference in New Issue
Block a user