Closed sonal-maniya closed 4 months ago
// Read the response from the printer const bufferSize = 1024; final buffer = calloc<Uint8>(bufferSize); final bytesRead = calloc<DWORD>(); final successRead = ReadPrinter( printerHandle.value, buffer.cast(), bufferSize, bytesRead, ); if (successRead == 0) { final error = GetLastError(); throw Exception('Failed to read print status, error: $error'); }`