mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
c44b441361
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@423 21ef857c-d57f-4fe0-8362-d861dc6d29cd
44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using ProcessHacker.Structs;
|
|
|
|
namespace ProcessHacker
|
|
{
|
|
public partial class StructWindow : Form
|
|
{
|
|
private int _pid;
|
|
private int _address;
|
|
private StructDef _struct;
|
|
|
|
public StructWindow(int pid, int address, StructDef struc)
|
|
{
|
|
InitializeComponent();
|
|
|
|
_pid = pid;
|
|
_address = address;
|
|
_struct = struc;
|
|
}
|
|
|
|
private void StructWindow_Load(object sender, EventArgs e)
|
|
{
|
|
StructViewer sv = new StructViewer(_pid, _address, _struct);
|
|
|
|
if (sv.Error)
|
|
this.Close();
|
|
|
|
sv.Dock = DockStyle.Fill;
|
|
panel.Controls.Add(sv);
|
|
}
|
|
|
|
private void buttonClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|