home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / lpr32.zip / test.c < prev    next >
C/C++ Source or Header  |  2001-06-14  |  2KB  |  65 lines

  1. #include "stdio.h"
  2. #include "stdlib.h"
  3. #include "string.h"
  4. #define  INCL_DOS
  5. #define  INCL_GPI
  6. #undef   INCL_GPI
  7. #define  INCL_DEV
  8. #define  INCL_DOSMEMMGR                /* Include standard OS/2 support      */
  9. #define  INCL_DOSMODULEMGR             /* For DosLoadModule                  */
  10. #define  INCL_DOSPROCESS
  11. #define  INCL_GPILCIDS
  12. #define  INCL_WINCOMMON                /* Include Window Management support  */
  13. #define  INCL_WINDOWMGR
  14. #define  INCL_WINSWITCHLIST
  15. #define  INCL_WINPROGRAMLIST
  16. #define  INCL_WINMENUS
  17. #define  INCL_WINWINDOWMGR
  18. #define  INCL_WINMESSAGEMGR
  19. #define  INCL_WINDIALOGS
  20. #define  INCL_WINSTATICS
  21. #define  INCL_WINLISTBOXES
  22. #define  INCL_WINMENUS
  23. #define  INCL_WINSYS
  24. #define  INCL_WINFRAMEMGR
  25. #define  INCL_INCLWINACCELERATORS
  26. #define  INCL_WINPOINTERS
  27. #define  INCL_WINERRORS
  28. #define  INCL_WINSHELLDATA
  29.  
  30. #define  INCL_WINTYPES
  31. #define  INCL_WINACCELERATORS
  32. #define  INCL_WINBUTTONS
  33. #define  INCL_WINENTRYFIELDS
  34. #define  INCL_WINRECTANGLES
  35. #define  INCL_WINTIMER
  36. #define  INCL_WINSCROLLBARS
  37. #define  INCL_WINHEAP
  38. #define  INCL_SHLERRORS
  39. #define  INCL_WININPUT
  40. #define  INCL_WINHELP
  41. #define  INCL_WINSTDSPIN
  42.  
  43. #define  INCL_SPL
  44. #define  INCL_SPLP
  45. #define  INCL_SPLERRORS
  46. #define  INCL_SHLERRORS
  47. #define  INCL_DOSERRORS
  48. #define  INCL_WINHOOKS
  49. #include "os2.h"
  50.  
  51. int main(int argc,char **argv)
  52. {
  53.    APIRET rc;
  54.    UCHAR  spool_dir[256];
  55.  
  56.    rc = PrfQueryProfileString (HINI_SYSTEMPROFILE,
  57.                                "PM_SPOOLER",
  58.                                "DIR",
  59.                                NULL,
  60.                                (PSZ)spool_dir,
  61.                                sizeof(spool_dir));
  62.    spool_dir[ strlen(spool_dir) - 1] = '\0';
  63.    printf("rc = %d dir = %s\n\r",rc,spool_dir);
  64. }
  65.