Changeset 258 for Include/Classes/System/OperatingSystem.ab
- Timestamp:
- May 21, 2007, 1:03:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/OperatingSystem.ab
r257 r258 6 6 #require <Classes/System/Version.ab> 7 7 8 Namespace System 9 8 10 Class OperatingSystem 9 11 ' Inherits ICloneable', ISerializable 10 12 Public 11 13 ' Constractor 12 Sub OperatingSystem(platform As PlatformID, version As System.Version)14 Sub OperatingSystem(platform As PlatformID, version As Version) 13 15 pf = platform 14 16 ver = version … … 18 20 Sub OperatingSystem(vi As OSVERSIONINFOA) 19 21 pf = vi.dwPlatformId As PlatformID 20 ver = New System.Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber)22 ver = New Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber) 21 23 sp = New String(vi.szCSDVersion As PCSTR) 22 24 End Sub … … 24 26 Sub OperatingSystem(vi As OSVERSIONINFOW) 25 27 pf = vi.dwPlatformId As PlatformID 26 ver = New System.Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber)28 ver = New Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber) 27 29 sp = New String(vi.szCSDVersion As PCSTR) 28 30 End Sub … … 33 35 End Function 34 36 35 Const Function Version() As System.Version37 Const Function Version() As Version 36 38 Return ver 37 39 End Function … … 71 73 Private 72 74 pf As PlatformID 73 ver As System.Version75 ver As Version 74 76 sp As String 75 77 End Class … … 83 85 End Enum 84 86 87 End Namespace 88 85 89 #endif '__SYSYTEM_OPERATINGSYSTEM_AB__
Note:
See TracChangeset
for help on using the changeset viewer.