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.InteropServices; 7 8 internal static partial class Interop 9 { 10 internal static partial class Sys 11 { 12 [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_POpen", SetLastError = true)] POpen(string command, string type)13 internal static extern IntPtr POpen(string command, string type); 14 15 [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_PClose", SetLastError = true)] PClose(IntPtr stream)16 internal static extern int PClose(IntPtr stream); 17 } 18 } 19