S
simon.duvall
Hey all,
Was referencing various COMs, and tried using the Windows Genuine
Advantage 1.0 Type Library.
There's a cool method called GetMachineDetails() that I wanted to try,
but for some reason I'm getting an ACCESS DENIED HRESULT error when I
do.
Here's my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GAVT = LegitCheckControlLib; // The namespace created from the
reference
namespace COMTest5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
GAVT.LegitCheck lc = new LegitCheckControlLib.LegitCheck();
this.textBox1.Text = lc.GetMachineDetails();
}
}
}
Really want to check out this method. Any ideas?
~uncle.sammy
Was referencing various COMs, and tried using the Windows Genuine
Advantage 1.0 Type Library.
There's a cool method called GetMachineDetails() that I wanted to try,
but for some reason I'm getting an ACCESS DENIED HRESULT error when I
do.
Here's my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GAVT = LegitCheckControlLib; // The namespace created from the
reference
namespace COMTest5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
GAVT.LegitCheck lc = new LegitCheckControlLib.LegitCheck();
this.textBox1.Text = lc.GetMachineDetails();
}
}
}
Really want to check out this method. Any ideas?
~uncle.sammy