internal static extern bool CeGetVersionEx(out OSVERSIONINFO lpVersionInformation);
/// <summary> /// This function obtains extended information about the version of the operating system of the connected device. /// </summary> /// <param name="VersionInfo"></param> public void GetDeviceVersion(out OSVERSIONINFO VersionInfo) { CheckConnection(); bool b; VersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFO)); b = CeGetVersionEx(out VersionInfo); if(!b) { throw new RAPIException("Error retrieving version information.", Marshal.GetLastWin32Error()); } }