LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

detecting platform

Hi,

I'm using Labwindows CVI 6.0 full, and win2K.

My problem is...I need to be able to detect on what platform the system is running. I notice that there's a function that will tell me if I'm 95/98, but I really need to know exactly wich one is. Is it 98 or 95. Because I'm using IrDa communication and it does not work the same way on both system. The same problem occurs with NT and 2000, so does anybody know how to identify exactly the correct platform ?

Thank you,
0 Kudos
Message 1 of 2
(3,012 Views)
Hi,
Try using the GetWindowsVersion function in the Programmer's toolbox (toolbox.fp)
This responds with more info regarding the OS, in cluding the info pasted below... which should allow you to work out if it's 95 or 98

Cheers
JB
Returns the platform ID of the operating system. You may pass NULL for this parameter.

Possible values:

0 PLATFORM_WIN32s
1 PLATFORM_WIN95
2 PLATFORM_WINNT

NOTE: A platform value of PLATFORM_WIN95 is used to specify both Windows 95 and Windows 98. If the platform is Windows 95, the Minor Version will be 0. If the platform is Windows 98, the Minor Version will be greater than 0.
Message 2 of 2
(3,012 Views)