Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Mobile Development
  3. Mobile
  4. Windows Mobile5.0

Windows Mobile5.0

Scheduled Pinned Locked Moved Mobile
csharpvisual-studiotestingbeta-testinghelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sri harini
    wrote on last edited by
    #1

    Hi, I am developing an application of windows mobile 5.0 using visual studio 2005 C#.Net.Testing with a emulator windows mobile 5.0 pocket pc Emulator.. I have one doubt, How to identify device Manufacturer(Manufacturer of client's device) and device Model(Model of client's device)using C# code? Appreciate if you can help.. Thanks

    M 1 Reply Last reply
    0
    • S Sri harini

      Hi, I am developing an application of windows mobile 5.0 using visual studio 2005 C#.Net.Testing with a emulator windows mobile 5.0 pocket pc Emulator.. I have one doubt, How to identify device Manufacturer(Manufacturer of client's device) and device Model(Model of client's device)using C# code? Appreciate if you can help.. Thanks

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      The only way I'm aware of is to use SystemParametersInfo with the SPI_GETOEMINFO flag. The code we're using:

      private const int SPI_GETOEMINFO = 258;

      [System.Runtime.InteropServices.DllImport("coredll")]
      private static extern int SystemParametersInfo (
      int uiAction,
      int uiParam,
      System.Text.StringBuilder pvParam,
      int fWinIni );

      public static string GetOemInfo()
      {
      System.Text.StringBuilder sb = new System.Text.StringBuilder( 256 );

      int result = SystemParametersInfo( SPI\_GETOEMINFO, sb.Capacity, sb, 0 );
      
      int error = System.Runtime.InteropServices.Marshal.GetLastWin32Error();
      
      if ( result != 0 )
      {
          return sb.ToString();
      }
      
      return "";
      

      }

      Stability. What an interesting concept. -- Chris Maunder

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups