Board index » delphi » WINDOWS 95 or Windows NT
Gareth Elliott
![]() Delphi Developer |
Wed, 09 Jan 2002 03:00:00 GMT
|
Gareth Elliott
![]() Delphi Developer |
Wed, 09 Jan 2002 03:00:00 GMT
WINDOWS 95 or Windows NT
Hi
Is it possible to determine what version of windows the machine thats running my application is using I need to know whether it Windows 95 or Windows NT Is there a function that returns the operating system or something ? -- NiSoft (UK) Limited |
GENETIC
![]() Delphi Developer |
Fri, 11 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NT
Hello Try: HELP from Delphi and find topic: Windows version. There is smth. Bye. QuoteGareth Elliott wrote: ------------------------------------------ Pozdrowienia znad Morza. ukasz eligowski ----------------------------------------
|
Matthias Thie
![]() Delphi Developer |
Fri, 11 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NTGENETICS schrieb in Nachricht <379C16E8.214A6...@gd.home.pl>... Quote>Hello procedure GetOSVersion; var MyInfo:TOSVERSIONINFO; Mess:string; VString:string; begin FillChar(MyInfo,SizeOf(MyInfo),0); MyInfo.dwOSVersionInfoSize:=SizeOf(MyInfo); if not GetVersionEx(MyInfo) then begin Mess:='Error!'; end else begin case MyInfo.dwPlatFormID of VER_PLATFORM_WIN32s:Mess:='Win32s under Windows 3.1'; VER_PLATFORM_WIN32_WINDOWS:Mess:='Windows 9x'; VER_PLATFORM_WIN32_NT:Mess:='Windows NT'; else Mess:='unknown'; end; VString:='['+IntToStr(MyInfo.dwMajorVersion); VString:=VString+'.'+IntToStr(MyInfo.dwMinorVersion); VString:=VString+'.'+IntToStr(MyInfo.dwBuildNumber); VString:=VString+']'; end; ShowMessage(Mess+' '+VString); end; |
Rodiger Dej
![]() Delphi Developer |
Sat, 12 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NTIn article <049F56710FD6D211B08D006097A4426B0D6436@orion>, Gareth Elliott says... Quote> Hi You can than use: Win32Platform Win32MajorVersion Win32MinorVersion Win32BuildNumber Win32CSDVersion procedure Info; |
Tom
![]() Delphi Developer |
Mon, 28 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NTHeres some code that should help var Here's something you may want to add too if you want who logged in... Hope it helps Tom QuoteGareth Elliott wrote: |
Tom
![]() Delphi Developer |
Mon, 28 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NTI suppose I should've also said that you could then search the string for the presence of WINNT to determine if NT, otherwise its winxx. Also something useful for copying dlls to the system directory is the GetSystemDirectory, same params I believe... Tom QuoteTom wrote: |
Guido Geurt
![]() Delphi Developer |
Tue, 29 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NT
For getting the user name, it did not work with me ? function ggGetUserName: String; QuoteTom wrote:
|
Guido Geurt
![]() Delphi Developer |
Tue, 29 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NT
For getting the user name, it did not work with me ? function ggGetUserName: String; QuoteTom wrote:
|
Guido Geurt
![]() Delphi Developer |
Tue, 29 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NT
For getting the user name, it did not work with me ? function ggGetUserName: String; QuoteTom wrote:
|
Peter Graha
![]() Delphi Developer |
Tue, 29 Jan 2002 03:00:00 GMT
Re:WINDOWS 95 or Windows NTThanks for this Guido, it works a treat. I was going to post this question today, but you supplied the answer. Cheers. In article <37B3C004.75269...@adtechno.be>, Guido Geurts Quote>For getting the user name, it did not work with me ? Peter Graham |
1. Runtime error 200 when running under Windows 95 / Windows NT
2. GetFocus() in Windows NT and Windows 95
3. Problem with DB2 Universal Database Personal Edition for Windows NT and Windows 95
4. accessing windows 95/NT Desktop-Window
5. Porting BP/TP 7.0 programs to Windows 3.X/95/NT
6. Getting the user name from Windows 95 or NT 4.0
7. How can I Kill ALL process in WIN32 and Shut down Windows 95/NT
8. releasing locks on files after a crash in Windows 95/NT
9. Letting a minimized application flicker in the Windows 95/NT taskbar