You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
851 B

using imcpkg;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Example
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int id, net;
//int status;
net = 0;
id = 0;
string passwordSource = "iwifgc4wh9hpx3hpwffk6glqp76e6i6te67if7q44g6l6x649t6f64kcld6qlicf3g6qctidipet3696ihul6thf6t6e76pfwqx";
byte[] password = System.Text.ASCIIEncoding.Default.GetBytes(passwordSource);
Global.g_handle = IMC_Pkg.PKG_IMC_OpenUsePassword(net, id, ref password[0], 99);
}
}
}