bigloo.foreign.getenv C# (CSharp) Method

getenv() public static method

public static getenv ( byte name ) : byte[]
name byte
return byte[]
        public static byte[] getenv( byte[] name )
        {
            String sname= newstring( name );

            switch (sname)
            {
               case "HOME":
               case "USERPROFILE":
              try {
             return GetPersonalFolder();
              }
              catch {
             return null;
              }
               case "USER":
              try {
             // Environment.UserName not implemented in Rotor
             return GetUserName();
              }
              catch {
             return null;
              }
               case "TMPDIR":
              return getbytes( Path.GetTempPath() );
               case "BIGLOOSTACKDEPTH":
               case "BIGLOOLIVEPROCESS":
              return get_property( "bigloo." + sname, "0" );
               default:
              return get_property( "bigloo." + sname, null );
            }
        }
foreign