How To Call Win32 Spooler Enumeration APIs Properly (158828)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q158828 SUMMARY
Proper use of the Win32 Spooler Enumeration APIs requires two calls to the
desired function. These APIs generally fill out an array of structures.
However, the structures usually include pointers to strings or to other
data. This extraneous data must also be stored in the return memory, so the
strings and other data are appended to the array. Therefore, simply
declaring an array of such structures on the stack would not set aside
enough memory to hold all of the information the API returns.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kbFAQ kbhowto KB158828 |
---|
|