Lines Matching refs:nNeeded
171 ULONG nNeeded; in GetPrinterQueueInfo() local
176 rc = SplEnumQueue( (PSZ)NULL, 3, NULL, 0, &nReturned, &nTotal, &nNeeded, NULL ); in GetPrinterQueueInfo()
177 if( nNeeded == 0 ) in GetPrinterQueueInfo()
181 PCHAR pQueueData = new CHAR[nNeeded]; in GetPrinterQueueInfo()
184 rc = SplEnumQueue( (PSZ)NULL, 3, pQueueData, nNeeded, &nReturned, &nTotal, &nNeeded, NULL ); in GetPrinterQueueInfo()
267 ULONG nNeeded; in GetPrinterQueueState() local
272 rc = SplEnumQueue( (PSZ)NULL, 3, NULL, 0, &nReturned, &nTotal, &nNeeded, NULL ); in GetPrinterQueueState()
273 if( nNeeded == 0 ) in GetPrinterQueueState()
277 PCHAR pQueueData = new CHAR[nNeeded]; in GetPrinterQueueState()
280 rc = SplEnumQueue( (PSZ)NULL, 3, pQueueData, nNeeded, &nReturned, &nTotal, &nNeeded, NULL ); in GetPrinterQueueState()
315 ULONG nNeeded; in GetDefaultPrinter() local
331 rc = SplEnumQueue( (PSZ)NULL, 3, NULL, 0, &nReturned, &nTotal, &nNeeded, NULL ); in GetDefaultPrinter()
332 if ( nNeeded == 0 ) in GetDefaultPrinter()
336 PCHAR pQueueData = new CHAR[ nNeeded ]; in GetDefaultPrinter()
339 rc = SplEnumQueue ((PSZ)NULL, 3, pQueueData, nNeeded, &nReturned, &nTotal, &nNeeded, NULL ); in GetDefaultPrinter()