Re: Operating System

new topic     » goto parent     » topic index » view thread      » older message » newer message
dcole said...

Hello again,

Another silly question.

How can I tell which operating system is running my program?

I this case either WindowsXP or Windows7.

Thanks,

Don Cole

1) by checking in the registry reg query HKLM\SoftwareMicrosoft\windows nt\currentVersion /v CurrentVersion

C:\>reg query "HKLM\Software\Microsoft\Windows nt\CurrentVersion" /v CurrentVersion 
 
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows nt\CurrentVersion 
    CurrentVersion    REG_SZ    6.1 

2) by using win32 API GetVersionEX()

Jacques

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu