using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArduinoCsCompiler.Runtime
{
internal partial class MiniInterop
{
internal partial class Kernel32
{
[ArduinoImplementation]
public static uint GetConsoleOutputCP()
{
return 1200;
}
public static IntPtr GetStdHandle(int nStdHandle)
{
if (nStdHandle == -10)
{
return new IntPtr(0xCEED);
}
else if (nStdHandle == -11)
{
return new IntPtr(0xCEEE);
}
else
{
return new IntPtr(0xCEEF);
}
}
internal static bool IsGetConsoleModeCallSuccessful(IntPtr handle)
{
return true;
}
[ArduinoImplementation("Kernel32_WriteConsole")]
internal static unsafe bool WriteConsole(System.IntPtr handle, System.Byte* bytes, System.Int32 numBytesToWrite, ref System.Int32 numBytesWritten, System.IntPtr mustBeZero)
{
return true;
}
[ArduinoImplementation("Kernel32_WideCharToMultiByte", CompareByParameterNames = true)]
public static unsafe Int32 WideCharToMultiByte(System.UInt32 CodePage, System.UInt32 dwFlags, System.Char* lpWideCharStr, System.Int32 cchWideChar, System.Byte* lpMultiByteStr, System.Int32 cbMultiByte, System.IntPtr lpDefaultChar, System.IntPtr lpUsedDefaultChar)
{
return 0;
}
}
}
}