public static extern int timeSetEvent(int uDelay, int uResolution, TIMECALLBACK fptc, IntPtr dwUser, int fuEvent);
private static extern uint timeSetEvent(uint uDelay, uint uResolution, TIMECALLBACK lpFunction, uint dwUser, uint uFlags);
//建立事件关联 public static void RC_Build() { timeCallBack += new TIMECALLBACK(SysPLC); }
public static extern uint timeSetEvent(uint uDelay, uint uResolution, ref TIMECALLBACK fptc, uint dwUser, uint fuEvent);