Exemplo n.º 1
0
		/// <summary>
		/// Gets info about the connected device
		/// </summary>
		/// <param name="pSI">SYSTEM_INFO structure populated by the call</param>
		public void GetDeviceSystemInfo(out SYSTEM_INFO pSI)
		{
			CheckConnection();

			try 
			{
				CeGetSystemInfo(out pSI);
			}
			catch(Exception)
			{
				throw new RAPIException("Error retrieving system info.");
			}
		}
Exemplo n.º 2
0
		internal static extern int CeGetSystemInfo(out SYSTEM_INFO pSI); 
Exemplo n.º 3
0
        /// <summary>
        /// Gets info about the connected device
        /// </summary>
        /// <param name="pSI">SYSTEM_INFO structure populated by the call</param>
        public bool GetDeviceSystemInfo(out SYSTEM_INFO pSI)
        {
            CheckConnection();

            try
            {
                CeGetSystemInfo(out pSI);
                return true;
            }
            catch(Exception)
            {
                pSI = new SYSTEM_INFO();
                return false;
            }
        }