iPAQGetModelID (ipaqutil)
Last changed: anonymous

.
Summary
Gets the name of the model of the current iPAQ device, e.g. iPAQ rx3715.

C# Signature:

[DllImport("iPAQUtil.dll", SetLastError=true) ]
public static extern bool iPAQGetModelID([Out]StringBuilder lpszModelID);

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

/// <summary>

        /// Gets the name of the model of the current iPAQ device, e.g. iPAQ rx3715.
        /// </summary>
        /// <value></value>
        public static string ModelName
        {
            get
            {
                try
                {
                    StringBuilder buffer = new StringBuilder(40);
                    if (iPAQGetModelID(buffer) == false)
                    {
                        Tracer.Debug("iPAQGetModelID failed");
                    }
                    else
                    {
                        return buffer.ToString();
                    }
                }
                catch (Exception ex)
                {
                    Tracer.Debug("iPAQGetModelID: " + ex.Message);
                }
                return "";
            }
        }

Documentation