public CUevent CreateEvent(CUEventFlags flags) { CUevent phEvent = new CUevent(); this.LastError = CUDADriver.cuEventCreate(ref phEvent, (uint)flags); return(phEvent); }