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/System Environment.cs,1.9,1.1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Environment.cs,1.9,1.10
Date: Thu, 28 Nov 2002 17:55:25 -0500

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

Modified Files:
        Environment.cs 
Log Message:


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


Index: Environment.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Environment.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Environment.cs      28 Nov 2002 04:54:29 -0000      1.9
--- Environment.cs      28 Nov 2002 22:55:23 -0000      1.10
***************
*** 160,164 ****
                                get
                                {
!                                       return new 
Version(TaskMethods.GetRuntimeVersion());
                                }
                        }
--- 160,164 ----
                                get
                                {
!                                       return new 
Version(InfoMethods.GetRuntimeVersion());
                                }
                        }
***************
*** 231,241 ****
  
        // Get the NetBIOS machine name.
-       [TODO]
        public static String MachineName
                        {
                                get
                                {
!                                       // TODO
!                                       return null;
                                }
                        }
--- 231,239 ----
  
        // Get the NetBIOS machine name.
        public static String MachineName
                        {
                                get
                                {
!                                       return 
InfoMethods.GetNetBIOSMachineName();
                                }
                        }
***************
*** 246,250 ****
                                get
                                {
!                                       // In our world, everyone is "Unix 0.0".
                                        return new 
OperatingSystem(PlatformID.Unix, new Version());
                                }
--- 244,252 ----
                                get
                                {
!                                       OperatingSystem os = 
InfoMethods.GetOSVersion();
!                                       if(os != null)
!                                       {
!                                               return os;
!                                       }
                                        return new 
OperatingSystem(PlatformID.Unix, new Version());
                                }
***************
*** 252,262 ****
  
        // Get the domain name for this machine.
-       [TODO]
        public static String UserDomainName
                        {
                                get
                                {
!                                       // TODO
!                                       return null;
                                }
                        }
--- 254,262 ----
  
        // Get the domain name for this machine.
        public static String UserDomainName
                        {
                                get
                                {
!                                       return InfoMethods.GetUserDomainName();
                                }
                        }
***************
*** 267,282 ****
                                get
                                {
!                                       return false;
                                }
                        }
  
        // Get the name of the current user.
-       [TODO]
        public static String UserName
                        {
                                get
                                {
!                                       // TODO
!                                       return null;
                                }
                        }
--- 267,280 ----
                                get
                                {
!                                       return InfoMethods.IsUserInteractive();
                                }
                        }
  
        // Get the name of the current user.
        public static String UserName
                        {
                                get
                                {
!                                       return InfoMethods.GetUserName();
                                }
                        }
***************
*** 287,292 ****
                                get
                                {
!                                       // There is no reliable and portable 
way to get this.
!                                       return 0;
                                }
                        }
--- 285,289 ----
                                get
                                {
!                                       return InfoMethods.GetWorkingSet();
                                }
                        }
***************
*** 368,375 ****
        public static String GetFolderPath(SpecialFolder folder)
                        {
!                               // For security reasons, we don't allow access 
to
!                               // system folders except "System", which will 
normally
!                               // be rejected by the runtime engine anyway.
!                               if(folder == SpecialFolder.System)
                                {
                                        return DirMethods.GetSystemDirectory();
--- 365,374 ----
        public static String GetFolderPath(SpecialFolder folder)
                        {
!                               String path = 
InfoMethods.GetSpecialFolder(folder);
!                               if(path != null)
!                               {
!                                       return path;
!                               }
!                               else if(folder == SpecialFolder.System)
                                {
                                        return DirMethods.GetSystemDirectory();
***************
*** 382,390 ****
  
        // Get a list of logical drives on the system.
-       [TODO]
        public static String[] GetLogicalDrives()
                        {
!                               // TODO
!                               return null;
                        }
  
--- 381,387 ----
  
        // Get a list of logical drives on the system.
        public static String[] GetLogicalDrives()
                        {
!                               return DirMethods.GetLogicalDrives();
                        }
  





reply via email to

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