home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
lpr32.zip
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
2001-06-14
|
2KB
|
65 lines
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#define INCL_DOS
#define INCL_GPI
#undef INCL_GPI
#define INCL_DEV
#define INCL_DOSMEMMGR /* Include standard OS/2 support */
#define INCL_DOSMODULEMGR /* For DosLoadModule */
#define INCL_DOSPROCESS
#define INCL_GPILCIDS
#define INCL_WINCOMMON /* Include Window Management support */
#define INCL_WINDOWMGR
#define INCL_WINSWITCHLIST
#define INCL_WINPROGRAMLIST
#define INCL_WINMENUS
#define INCL_WINWINDOWMGR
#define INCL_WINMESSAGEMGR
#define INCL_WINDIALOGS
#define INCL_WINSTATICS
#define INCL_WINLISTBOXES
#define INCL_WINMENUS
#define INCL_WINSYS
#define INCL_WINFRAMEMGR
#define INCL_INCLWINACCELERATORS
#define INCL_WINPOINTERS
#define INCL_WINERRORS
#define INCL_WINSHELLDATA
#define INCL_WINTYPES
#define INCL_WINACCELERATORS
#define INCL_WINBUTTONS
#define INCL_WINENTRYFIELDS
#define INCL_WINRECTANGLES
#define INCL_WINTIMER
#define INCL_WINSCROLLBARS
#define INCL_WINHEAP
#define INCL_SHLERRORS
#define INCL_WININPUT
#define INCL_WINHELP
#define INCL_WINSTDSPIN
#define INCL_SPL
#define INCL_SPLP
#define INCL_SPLERRORS
#define INCL_SHLERRORS
#define INCL_DOSERRORS
#define INCL_WINHOOKS
#include "os2.h"
int main(int argc,char **argv)
{
APIRET rc;
UCHAR spool_dir[256];
rc = PrfQueryProfileString (HINI_SYSTEMPROFILE,
"PM_SPOOLER",
"DIR",
NULL,
(PSZ)spool_dir,
sizeof(spool_dir));
spool_dir[ strlen(spool_dir) - 1] = '\0';
printf("rc = %d dir = %s\n\r",rc,spool_dir);
}