H
hari
Hi all,
I m calling setprinterdata API in my printer driver ,It is called
in a While(1) (infinite loop),When I restart my Personal computer,the
driver vanishes in the printer and faxes folder.
Code is
While(1)
{
hPrinter = Openprinter(L"Pname"...................);
DWORD dwErr = SetPrinterData(hPrinter, L"Printer_Status", REG_BINARY ,
(LPBYTE)szID1, 6);
ClosePrinter(hPrinter);
}
Thanks in Advance.
please help me in this issue.
Regards
Hari
I m calling setprinterdata API in my printer driver ,It is called
in a While(1) (infinite loop),When I restart my Personal computer,the
driver vanishes in the printer and faxes folder.
Code is
While(1)
{
hPrinter = Openprinter(L"Pname"...................);
DWORD dwErr = SetPrinterData(hPrinter, L"Printer_Status", REG_BINARY ,
(LPBYTE)szID1, 6);
ClosePrinter(hPrinter);
}
Thanks in Advance.
please help me in this issue.
Regards
Hari