namespace ActiveX
{
[Guid("b4563c5d-3e00-4e82-bac4-a50da3d3f4d3")]
public partial class UserControl1 : UserControl, IObjectSafety
{
public UserControl1()
{
InitializeComponent();
}
public void GetInterfacceSafyOptions(int riid, out int pdwSupportedOptions, out int pdwEnabledOptions)
{
pdwSupportedOptions = 1;
pdwEnabledOptions = 2;
}
public void SetInterfaceSafetyOptions(int riid, int dwOptionsSetMask, int dwEnabledOptions)
{
throw new NotImplementedException();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("1111111");
Process.Start("mstsc.exe");
}
}
}
{
[Guid("b4563c5d-3e00-4e82-bac4-a50da3d3f4d3")]
public partial class UserControl1 : UserControl, IObjectSafety
{
public UserControl1()
{
InitializeComponent();
}
public void GetInterfacceSafyOptions(int riid, out int pdwSupportedOptions, out int pdwEnabledOptions)
{
pdwSupportedOptions = 1;
pdwEnabledOptions = 2;
}
public void SetInterfaceSafetyOptions(int riid, int dwOptionsSetMask, int dwEnabledOptions)
{
throw new NotImplementedException();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("1111111");
Process.Start("mstsc.exe");
}
}
}