(高分)紧急求助关于API函数GetPrinter调用不正常的问题
//取得当前打印机的信息;我系统在2000下。
var
PrtInfo2:_PRINTER_INFO_2A;
R:DWord;
H:THandle;
begin
FillChar(PrtInfo2,SizeOf(PrtInfo2),0);
if not GetPrinter(Printer.Handle,2,@PrtInfo2,SizeOf(PrtInfo2),@r) then
ShowMessage('Error');
end;
GetPrinter返回结果总是False.请高手赐教!