Last change
on this file since 10367 was 4594, checked in by sandervl, 25 years ago |
Partially implemented EnumPrintersA + call Open32 for DeviceCapabilitiesA/W
|
File size:
1.2 KB
|
Line | |
---|
1 | /* $Id: oslibspl.cpp,v 1.1 2000-11-15 10:54:23 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Winspool support code
|
---|
5 | *
|
---|
6 | * Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
9 | *
|
---|
10 | */
|
---|
11 | #define INCL_SPL
|
---|
12 | #define INCL_SPLERRORS
|
---|
13 | #define INCL_DOSERRORS
|
---|
14 | #define INCL_GPI
|
---|
15 | #define INCL_WIN
|
---|
16 | #include <os2wrap.h> //Odin32 OS/2 api wrappers
|
---|
17 | #include <stdlib.h>
|
---|
18 | #include <string.h>
|
---|
19 | #include <win32type.h>
|
---|
20 | #include <misc.h>
|
---|
21 | #include "oslibspl.h"
|
---|
22 |
|
---|
23 | //******************************************************************************
|
---|
24 | //******************************************************************************
|
---|
25 | BOOL OSLibSplEnumPrinters(DWORD flType, OSLIB_PRINTERINFO *pBuf, DWORD cbSize,
|
---|
26 | DWORD *pcReturned, DWORD *pcTotal, DWORD *pcbNeeded)
|
---|
27 | {
|
---|
28 | SPLERR rc;
|
---|
29 |
|
---|
30 | rc = SplEnumPrinter(NULL, 0, flType, (PVOID)pBuf, cbSize, pcReturned, pcTotal, pcbNeeded, 0);
|
---|
31 |
|
---|
32 | if(rc == 0 || (pBuf == NULL && (rc == ERROR_MORE_DATA || rc == NERR_BufTooSmall))) {
|
---|
33 | return TRUE;
|
---|
34 | }
|
---|
35 | return FALSE;
|
---|
36 | }
|
---|
37 | //******************************************************************************
|
---|
38 | //******************************************************************************
|
---|
Note:
See
TracBrowser
for help on using the repository browser.