3 // ByteFX.Data data access components for .Net
\r
4 // Copyright (C) 2002-2004 ByteFX, Inc.
\r
6 // This library is free software; you can redistribute it and/or
\r
7 // modify it under the terms of the GNU Lesser General Public
\r
8 // License as published by the Free Software Foundation; either
\r
9 // version 2.1 of the License, or (at your option) any later version.
\r
11 // This library is distributed in the hope that it will be useful,
\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 // Lesser General Public License for more details.
\r
16 // You should have received a copy of the GNU Lesser General Public
\r
17 // License along with this library; if not, write to the Free Software
\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 namespace ByteFX.Data.Common
\r
23 /// Summary description for Platform.
\r
25 internal class Platform
\r
27 public static bool IsWindows()
\r
29 OperatingSystem os = Environment.OSVersion;
\r
30 switch (os.Platform)
\r
32 case PlatformID.Win32NT:
\r
33 case PlatformID.Win32S:
\r
34 case PlatformID.Win32Windows:
\r
35 case PlatformID.WinCE:
\r