예제 #1
0
파일: RAPI.cs 프로젝트: ramilexe/tsdfamilia
		internal static extern bool CeGetVersionEx(out OSVERSIONINFO lpVersionInformation);
예제 #2
0
파일: RAPI.cs 프로젝트: ramilexe/tsdfamilia
		/// <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());
			}

		}