Changeset 699 for trunk/ab5.0
- Timestamp:
- Mar 31, 2009, 2:15:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Environment.ab
r667 r699 19 19 20 20 Static Function CommandLine() As String 21 #ifdef UNICODE 22 CommandLine = New String(GetCommandLineW()) 23 #else 24 CommandLine = New String(GetCommandLineA()) 25 #endif 21 CommandLine = New String(GetCommandLine()) 26 22 End Function 27 23 … … 68 64 69 65 Static Function OSVersion() As OperatingSystem 70 Dim vi As OSVERSIONINFO 71 vi.dwOSVersionInfoSize = Len(vi) 72 GetVersionEx(vi) 73 OSVersion = New OperatingSystem(vi) 66 OSVersion = New OperatingSystem(ActiveBasic.Windows.Version.Detail.vi) 74 67 End Function 75 68 … … 163 156 Dim buf = New Text.StringBuilder 164 157 buf.Length = size As Long 165 buf.Length 158 buf.Length = _System_GetEnvironmentVariable(tcsVariable, StrPtr(buf), size) 166 159 GetEnvironmentVariable = buf.ToString 167 160 End Function
Note:
See TracChangeset
for help on using the changeset viewer.