{"id":66,"date":"2007-05-11T21:22:46","date_gmt":"2007-05-11T19:22:46","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/environment-osversion\/"},"modified":"2007-05-11T21:22:47","modified_gmt":"2007-05-11T19:22:47","slug":"environment-osversion","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/environment-osversion\/","title":{"rendered":"Environment: OSVersion"},"content":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]var<br \/>\n   VersionInfo: TOSVersionInfo;<br \/>\nbegin<br \/>\n   VersionInfo.dwOSVersionInfoSize := Sizeof(TOSVersionInfo);<\/p>\n<p>   GetVersionEx(VersionInfo);<\/p>\n<p>   Case VersionInfo.dwPlatformID of<br \/>\n     VER_PLATFORM_WIN32S:<br \/>\n       Do_SomeThing;<br \/>\n     VER_PLATFORM_WIN32_WINDOWS:<br \/>\n       Do_SomeOtherThing;<br \/>\n     VER_PLATFORM_WIN32_NT:<br \/>\n       Do_SomeThingElse;<br \/>\n   End;<br \/>\nend;<\/p>\n<p> typedef struct _OSVERSIONINFO{ <\/p>\n<p>     DWORD dwOSVersionInfoSize;<br \/>\n     DWORD dwMajorVersion;<br \/>\n     DWORD dwMinorVersion;<br \/>\n     DWORD dwBuildNumber;<br \/>\n     DWORD dwPlatformId;<br \/>\n     TCHAR szCSDVersion[ 128 ];<br \/>\n } OSVERSIONINFO; [\/code]<\/p>\n<p>[tags]Delphi, API[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]var VersionInfo: TOSVersionInfo; begin VersionInfo.dwOSVersionInfoSize := Sizeof(TOSVersionInfo); GetVersionEx(VersionInfo); Case VersionInfo.dwPlatformID of VER_PLATFORM_WIN32S: Do_SomeThing; VER_PLATFORM_WIN32_WINDOWS: Do_SomeOtherThing; VER_PLATFORM_WIN32_NT: Do_SomeThingElse; End; end; typedef struct _OSVERSIONINFO{&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[84,75],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-14","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}