blob: 7d9c26bb96f12ed274016e9a3728ae25a94dcd11 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// 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.
//
//
// All P/invokes used by System.Private.Interop and MCG generated code goes here.
//
// !!IMPORTANT!!
//
// Do not rely on MCG to generate marshalling code for these p/invokes as MCG might not see them at all
// due to not seeing dependency to those calls (before the MCG generated code is generated). Instead,
// always manually marshal the arguments
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// TODO : Split this file , now it contains anything other than string and memoryreleated.
namespace System.Runtime.InteropServices
{
public static partial class ExternalInterop
{
private static partial class Libraries
{
#if TARGET_CORE_API_SET
internal const string CORE_DEBUG = "api-ms-win-core-debug-l1-1-0.dll";
#else
internal const string CORE_DEBUG = "kernel32.dll";
#endif //TARGET_CORE_API_SET
}
[DllImport(Libraries.CORE_DEBUG, EntryPoint = "OutputDebugStringW")]
[McgGeneratedNativeCallCodeAttribute]
internal static extern unsafe void OutputDebugString(char* lpOutputString);
internal static unsafe void OutputDebugString(string outputString)
{
fixed (char* pOutputString = outputString)
{
OutputDebugString(pOutputString);
}
}
}
}
|