dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform InfoMethods.cs,NONE,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform InfoMethods.cs,NONE,1.1 DirMethods.cs,1.7,1.8 TaskMethods.cs,1.4,1.5
Date: Thu, 28 Nov 2002 17:55:25 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform
In directory subversions:/tmp/cvs-serv7573/runtime/Platform

Modified Files:
        DirMethods.cs TaskMethods.cs 
Added Files:
        InfoMethods.cs 
Log Message:


Reflect more of "System.Environment" through to the runtime engine.


--- NEW FILE ---
/*
 * InfoMethods.cs - Implementation of the "Platform.InfoMethods" class.
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace Platform
{

using System;
using System.Runtime.CompilerServices;

// This class returns random information about the environment which
// doesn't fit any of the other categories.

internal class InfoMethods
{

        // Get the version number for the runtime engine as a string.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static String GetRuntimeVersion();

        // Get the NetBIOS machine name of the current machine.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static String GetNetBIOSMachineName();

        // Get the domain name of the current machine.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static String GetUserDomainName();

        // Determine if this application is running in an interactive 
environment.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static bool IsUserInteractive();

        // Get the name of the current user.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static String GetUserName();

        // Get the working set size of the current process, or zero if not 
avail.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static long GetWorkingSet();

#if !ECMA_COMPAT

        // Get the OS version that we are running on.  Returns NULL if unknown.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static OperatingSystem GetOSVersion();

        // Get a special folder directory.  Returns NULL if unknown.
        [MethodImpl(MethodImplOptions.InternalCall)]
        extern public static String GetSpecialFolder(Environment.SpecialFolder 
f);

#endif // !ECMA_COMPAT

}; // class InfoMethods

}; // namespace Platform

Index: DirMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/DirMethods.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** DirMethods.cs       22 Nov 2002 08:39:30 -0000      1.7
--- DirMethods.cs       28 Nov 2002 22:55:23 -0000      1.8
***************
*** 64,75 ****
        files);
  
!       
  
  }; // class DirMethods
  
  }; // namespace Platform
- 
- 
- 
- 
- 
--- 64,72 ----
        files);
  
!       // Get a list of the logical drives in this system.
!       [MethodImpl(MethodImplOptions.InternalCall)]
!       extern public static String[] GetLogicalDrives();
  
  }; // class DirMethods
  
  }; // namespace Platform

Index: TaskMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/TaskMethods.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** TaskMethods.cs      28 Nov 2002 04:54:28 -0000      1.4
--- TaskMethods.cs      28 Nov 2002 22:55:23 -0000      1.5
***************
*** 57,64 ****
        extern public static String GetEnvironmentValue(int posn);
  
-       // Get the version number for the runtime engine as a string.
-       [MethodImpl(MethodImplOptions.InternalCall)]
-       extern public static String GetRuntimeVersion();
- 
  }; // class TaskMethods
  
--- 57,60 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]