CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Arjay

Search: Search took 1.66 seconds.

  1. Replies
    6
    Views
    43,144

    Re: How to obtain motherboard serial number

    Jonny, the -25 just pads the string with the default padding character (of a space). The output should have been all vertically aligned in a column, but it got messed up when I posted it here.
    ...
  2. Replies
    6
    Views
    43,144

    Re: How to obtain motherboard serial number

    Here you go


    namespace Wmi
    {
    class Program
    {
    static void Main( string[ ] args )
    {
    ManagementScope scope = new ManagementScope("\\\\" + Environment.MachineName + "\\root\\cimv2");
  3. Replies
    6
    Views
    43,144

    Re: How to obtain motherboard serial number

    Try calling IWbemServices->GetObject(...) using "Win32_BaseBoard.Tag=\"Base Board\"" as the class name.

    [Edit] Oops, that's C++. I'll see if I can dig up the C# approach.
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured