Desktop Functions: Smart Device Functions:
|
C# Signatures:
// This must be used if OSVERSIONINFO is defined as a struct VB.Net Signatures:Shared <DllImport("kernel32")> Function GetVersionEx(osvi As OSVERSIONINFO) As Boolean User-Defined Types:Notes:None. Tips & Tricks:If you forget to set the OSVersionInfoSize field of the OSVERSIONINFO struct, the function will return false. GetLastError() will return: 127 ERROR_PROC_NOT_FOUND "The specified procedure could not be found." Sample Code:Using the OSVERSIONINFO class and corresponding signature:
Console.WriteLine( "\nPassing OSVERSIONINFO as class" ); Using the OSVERSIONINFO struct and corresponding signature:
Console.WriteLine( "\nPassing OSVERSIONINFO as struct" ); Alternative Managed API:System.Environment.OSVersion property Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).
|
|