Ignore:
Timestamp:
May 21, 2007, 1:03:21 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

Prompt.sbp内を名前空間に入れた。EnvironmentのMachineName, UserName, GetFolderPathを実装。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/OperatingSystem.ab

    r257 r258  
    66#require <Classes/System/Version.ab>
    77
     8Namespace System
     9
    810Class OperatingSystem
    911    ' Inherits ICloneable', ISerializable
    1012Public
    1113    ' Constractor
    12     Sub OperatingSystem(platform As PlatformID, version As System.Version)
     14    Sub OperatingSystem(platform As PlatformID, version As Version)
    1315        pf = platform
    1416        ver = version
     
    1820    Sub OperatingSystem(vi As OSVERSIONINFOA)
    1921        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)
    2123        sp = New String(vi.szCSDVersion As PCSTR)
    2224    End Sub
     
    2426    Sub OperatingSystem(vi As OSVERSIONINFOW)
    2527        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)
    2729        sp = New String(vi.szCSDVersion As PCSTR)
    2830    End Sub
     
    3335    End Function
    3436
    35     Const Function Version() As System.Version
     37    Const Function Version() As Version
    3638        Return ver
    3739    End Function
     
    7173Private
    7274    pf As PlatformID
    73     ver As System.Version
     75    ver As Version
    7476    sp As String
    7577End Class
     
    8385End Enum
    8486
     87End Namespace
     88
    8589#endif '__SYSYTEM_OPERATINGSYSTEM_AB__
Note: See TracChangeset for help on using the changeset viewer.