Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MetadataType.Interop.cs « Interop « TypeSystem « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 10e3bbeeb18354470a6307151527564a064f794c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Internal.TypeSystem
{
    public enum PInvokeStringFormat
    {
        /// <summary>
        /// LPTSTR is interpreted as ANSI in this class.
        /// </summary>
        AnsiClass = 0x00000000,

        /// <summary>
        /// LPTSTR is interpreted as UNICODE.
        /// </summary>
        UnicodeClass = 0x00010000,

        /// <summary>
        /// LPTSTR is interpreted automatically.
        /// </summary>
        AutoClass = 0x00020000,
    }

    public partial class MetadataType
    {
        /// <summary>
        /// Gets a value indicating how strings should be handled for native interop.
        /// </summary>
        public abstract PInvokeStringFormat PInvokeStringFormat
        {
            get;
        }
    }
}