Exemplo n.º 1
0
		internal static extern bool CeGetVersionEx(out OSVERSIONINFO lpVersionInformation);
Exemplo n.º 2
0
		/// <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());
			}

		}