The information in this article applies to:
SYMPTOMS
When a service, or an application running in the context of a service (for
example, started by the scheduler service), calls EnumPrinters with the
PRINTER_ENUM_CONNECTIONS flag to get printer connections to a Windows NT
Server, the API might fail with error code 122 (ERROR_INSUFFICIENT_BUFFER)
even if you have specified plenty of buffer space. It will return an
arbitrary size of memory needed in pcbNeeded.
CAUSE
To look up the printer connections, the Spooler Service, which implements
this API on Windows NT, tries to access the registry of the calling user by
accessing its current user hive. However, a service does not have such a
hive because it is created by WinLogon and services are logged in by
Service Control Manager.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Additional query words: 3.5 3.51 prodnt kbbug3.5 kbbug3.51
Keywords : ntprint |
Last Reviewed: February 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |