mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"
driver information.
Will merge into TNG.
jerry
(This used to be commit ae7dd77c24
)
This commit is contained in:
parent
55c3abe3f2
commit
072d39165d
@ -414,7 +414,7 @@ uint32 spoolss_getprinterdriver(const POLICY_HND *hnd,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_NO_PROBLEMO)
|
||||
{
|
||||
DEBUG(0,("SPOOLSS_GETPRINTERDRIVER2: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDRIVER2: %s\n", get_nt_error_msg(r_o.status)));
|
||||
}
|
||||
|
||||
*needed=r_o.needed;
|
||||
|
@ -661,7 +661,7 @@ BOOL msrpc_spoolss_getprinterdriver( const char* printer_name,
|
||||
status = spoolss_getprinterdriver(&hnd, environment, level, &buffer, needed, &needed);
|
||||
}
|
||||
|
||||
report(out_hnd, "\tstatus:[%d (%x)]\n", status, status);
|
||||
/* report(out_hnd, "\tstatus:[%d (%x)]\n", status, status); */
|
||||
|
||||
if (status!=NT_STATUS_NO_PROBLEMO)
|
||||
{
|
||||
|
@ -463,15 +463,23 @@ uint32 cmd_spoolss_getprinterdriver(struct client_info *info, int argc, char *ar
|
||||
printer_name = srv_name;
|
||||
}
|
||||
|
||||
report (out_hnd, "Environment = Windows NT x86\n");
|
||||
fstrcpy(environment, "Windows NT x86");
|
||||
level=3;
|
||||
|
||||
if (msrpc_spoolss_getprinterdriver(printer_name, environment, level, station, "Administrator", ctr))
|
||||
DEBUG(5,("cmd_spoolss_getprinterdriver: query succeeded\n"));
|
||||
else
|
||||
report(out_hnd, "FAILED\n");
|
||||
|
||||
return NT_STATUS_NOPROBLEMO;
|
||||
report (out_hnd, "Environment = Windows 4.0\n");
|
||||
fstrcpy(environment, "Windows 4.0");
|
||||
level=3;
|
||||
if (msrpc_spoolss_getprinterdriver(printer_name, environment, level, station, "Administrator", ctr))
|
||||
DEBUG(5,("cmd_spoolss_getprinterdriver: query succeeded\n"));
|
||||
else
|
||||
report(out_hnd, "FAILED\n");
|
||||
|
||||
return NT_STATUS_NOPROBLEMO;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user