static int Callback(int OperationCode, ref CALLBACK_OUTPUT CallbackOutput) { Console.WriteLine("Callback invoked with opcode {0}", OperationCode); CallbackOutput.ErrorCodeArray = IntPtr.Zero; CallbackOutput.NumberOfErrors = 0; return 0; }
static int Callback(int OperationCode, ref CALLBACK_OUTPUT CallbackOutput) { Console.WriteLine("Callback invoked with opcode {0}", OperationCode); CallbackOutput.ErrorCodeArray = IntPtr.Zero; CallbackOutput.NumberOfErrors = 0; return(0); }