H
henry3
Unregistered / Unconfirmed
GUEST, unregistred user!
IF GetPrinter( PHD, 2, @InfoBuffer, SizeOf(InfoBuffer), @pcbNeeded ) then
begin
Move ( InfoBuffer,Info,SizeOf(Info));
LServerName.Caption := Info.pServerName;
LPrinterName.Caption := Info.pPrinterName;
LShareName.Caption := Info.pShareName;
LPortName.Caption := Info.pPortName;
LDeviceName.Caption := Info.pDriverName;
Lcomment.Caption := Info.pComment;
LJobs.Caption := IntToStr ( Info.cJobs);
LData.Caption := Info.pDatatype;
Label7.Caption := inttostr(info.status);
end;
这个info.status总是0,怎么回事?
begin
Move ( InfoBuffer,Info,SizeOf(Info));
LServerName.Caption := Info.pServerName;
LPrinterName.Caption := Info.pPrinterName;
LShareName.Caption := Info.pShareName;
LPortName.Caption := Info.pPortName;
LDeviceName.Caption := Info.pDriverName;
Lcomment.Caption := Info.pComment;
LJobs.Caption := IntToStr ( Info.cJobs);
LData.Caption := Info.pDatatype;
Label7.Caption := inttostr(info.status);
end;
这个info.status总是0,怎么回事?