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

Interop.WinRT.cs « Interop « src « System.Private.CoreLib « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0823dcffc126dca18cbecf6018741adf28a2f61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Runtime.InteropServices;

internal partial class Interop
{
    internal partial class WinRT
    {
        private const string CORE_WINRT = "api-ms-win-core-winrt-l1-1-0.dll";

        internal const uint RO_INIT_SINGLETHREADED = 0;
        internal const uint RO_INIT_MULTITHREADED = 1;

        [DllImport(CORE_WINRT, ExactSpelling = true)]
        internal static extern int RoInitialize(uint initType);

        [DllImport(CORE_WINRT, ExactSpelling = true)]
        internal static extern int RoUninitialize();
    }
}