Hallo,
stimmt, da steht es genau beschrieben drin.
Anbei, eine Implementierung in C#:
using System;
using System.Threading;
using System.Windows.Forms;
namespace OpcTesting
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
WaitHandle waitHandle = new EventWaitHandle(false, EventResetMode.ManualReset, @"Global\SimaticNetPcStationUpEvent");
ThreadPool.RegisterWaitForSingleObject(waitHandle, OpcReady, null, 10000, false);
}
void OpcReady(object state, bool timedOut)
{
if (timedOut)
{
MessageBox.Show("Timeout");
}
else
{
MessageBox.Show("Ready");
}
}
}
}
Vielen Dank
emka