to shanxia(山峡) :
OSVERESIONINFO是个什么类型?
运行后报了很多错:
[Error] test.pas(29): Undeclared identifier: 'OSVERESIONINFO'
[Error] test.pas(31): Missing operator or semicolon
[Error] test.pas(32): Types of actual and formal var parameters must be identical
[Error] test.pas(33): ')' expected but identifier 'dwMajorVersion' found
[Error] test.pas(33): 'END' expected but ')' found
[Fatal Error] p_test.dpr(5): Could not compile used unit 'test.pas'