1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using System;
6 using System.Runtime.CompilerServices;
7 using System.Runtime.InteropServices;
8 
9 
10 // TODO : Split this file , now it contains anything other than string and memoryreleated.
11 
12 namespace System.Runtime.InteropServices
13 {
14     public partial class ExternalInterop
15     {
FormatMessage( int dwFlags, IntPtr lpSource, uint dwMessageId, uint dwLanguageId, char* lpBuffer, uint nSize, IntPtr Arguments)16         static unsafe internal int FormatMessage(
17                 int dwFlags,
18                 IntPtr lpSource,
19                 uint dwMessageId,
20                 uint dwLanguageId,
21                 char* lpBuffer,
22                 uint nSize,
23                 IntPtr Arguments)
24         {
25             // ??
26             return 0;
27             //throw new PlatformNotSupportedException("FormatMessage");
28         }
29 
30         //TODO : implement in PAL
OutputDebugString(string outputString)31         internal static unsafe void OutputDebugString(string outputString)
32         {
33             throw new PlatformNotSupportedException();
34         }
35 
VariantClear(IntPtr pObject)36         internal static void VariantClear(IntPtr pObject)
37         {
38             throw new PlatformNotSupportedException();
39         }
40 
CoMarshalInterface(IntPtr pStream, ref Guid iid, IntPtr pUnk, Interop.COM.MSHCTX dwDestContext, IntPtr pvDestContext, Interop.COM.MSHLFLAGS mshlflags)41         internal static unsafe int CoMarshalInterface(IntPtr pStream, ref Guid iid, IntPtr pUnk, Interop.COM.MSHCTX dwDestContext, IntPtr pvDestContext, Interop.COM.MSHLFLAGS mshlflags)
42         {
43             throw new PlatformNotSupportedException();
44         }
45 
CoUnmarshalInterface(IntPtr pStream, ref Guid iid, out IntPtr ppv)46         internal static unsafe int CoUnmarshalInterface(IntPtr pStream, ref Guid iid, out IntPtr ppv)
47         {
48             throw new PlatformNotSupportedException();
49         }
50 
CoGetMarshalSizeMax(out ulong pulSize, ref Guid iid, IntPtr pUnk, Interop.COM.MSHCTX dwDestContext, IntPtr pvDestContext, Interop.COM.MSHLFLAGS mshlflags)51         internal static unsafe int CoGetMarshalSizeMax(out ulong pulSize, ref Guid iid, IntPtr pUnk, Interop.COM.MSHCTX dwDestContext, IntPtr pvDestContext, Interop.COM.MSHLFLAGS mshlflags)
52         {
53             throw new PlatformNotSupportedException();
54         }
55     }
56 }