An application interrogates its runtime environment to determine whether it is running on Microsoft Windows NT, Windows 95, or SunSoft's Solaris. PLATFORM_Current is then defined to be equal to either PLATFORM_Windows (in the case of Windows NT and Windows 95) or PLATFORM_Solaris (in the case of SunSoft's Solaris). An application may want to check the value of PLATFORM_Current if it has code paths that it will or will not execute depending on the operating system it is running on. For example, you may have separate code specific to each operating system to parse file pathnames (Windows syntax versus UNIX syntax) or to handle objects that are defined on one operating system but not on the other (such as drive letters on Windows).

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int PLATFORM_Current

See Also