/***************************************************************************** * * acSetCommMask * * Purpose: * Execute SetCommMask of AdvCan. * * * Arguments: * EvtMask - event type * * * Returns: * true SUCCESS; or false failure * *****************************************************************************/ public bool acSetCommMask(uint EvtMask) { if (!AdvCan.SetCommMask(hDevice, EvtMask)) { int num1 = Marshal.GetLastWin32Error(); return(false); } Marshal.WriteInt32(this.events.evPtr, 0); return(true); }
/***************************************************************************** * * acSetCommMask * * Purpose: * execute SetCommMask of AdvCan. * * * Arguments: * EvtMask - event type * * * Returns: * TRUE SUCCESS; or FALSE failure * *****************************************************************************/ public bool acSetCommMask(uint EvtMask) { return(AdvCan.SetCommMask(hDevice, EvtMask)); }