Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.2 KiB

  1. /*****************************************************************************\
  2. * MODULE: libpriv.h
  3. *
  4. * The private header file for WPNPIN32.DLL. It contains internal
  5. * routines which are called within the DLL.
  6. *
  7. *
  8. * Copyright (C) 1996-1998 Hewlett Packard Company.
  9. * Copyright (C) 1996-1998 Microsoft Corporation.
  10. *
  11. * History:
  12. * 10-Oct-1997 GFS Initial checkin
  13. * 22-Jun-1998 CHW Cleaned
  14. *
  15. \*****************************************************************************/
  16. #ifndef _LIBPRIV_H
  17. #define _LIBPRIV_H
  18. #include <windows.h>
  19. #include <winspool.h>
  20. #include <sys/types.h>
  21. #include <sys/stat.h>
  22. #include <direct.h>
  23. #include "wpnpin32.h"
  24. #include "globals.h"
  25. #include "resource.h"
  26. #include "debug.h"
  27. #include "mem.h"
  28. //---------------------------------------------------------
  29. // #includes from ..\inc directory
  30. // (same for both 16 bit and 32 bit dlls)
  31. //---------------------------------------------------------
  32. #include <lpsi.h>
  33. #include <errormap.h>
  34. #include <hpmemory.h>
  35. // Constants.
  36. //
  37. #define MAX_NAMES 100
  38. #define ONE_SECOND ((DWORD)1000)
  39. #define RES_BUFFER 128
  40. //---------------------------------------------------------
  41. // typedefs
  42. //---------------------------------------------------------
  43. typedef BOOL (FAR PASCAL* WEPPROC)(short);
  44. #ifdef __cplusplus // Place this here to prevent decorating
  45. extern "C" { // of symbols when doing C++ stuff.
  46. #endif
  47. RETERR FAR PASCAL ParseINF16(LPSI);
  48. BOOL WINAPI thk_ThunkConnect32(LPCTSTR, LPCTSTR, HINSTANCE, DWORD);
  49. BOOL InitStrings(VOID);
  50. VOID FreeStrings(VOID);
  51. #ifdef __cplusplus // Place this here to prevent decorating of symbols
  52. } // when doing C++ stuff.
  53. #endif
  54. #include <shlobj.h>
  55. #ifdef __cplusplus // Place this here to prevent decorating
  56. extern "C" { // of symbols when doing C++ stuff.
  57. #endif
  58. #define UNREFPARM(parm) (parm)
  59. //---------------------------------------------------------
  60. // Function Prototypes
  61. //---------------------------------------------------------
  62. int GetCommandLineArgs(LPSI, LPCTSTR);
  63. DWORD AddOnePrinter(LPSI, HWND);
  64. UINT prvMsgBox(HWND, LPCTSTR, UINT, UINT);
  65. #ifdef __cplusplus // Place this here to prevent decorating of symbols
  66. } // when doing C++ stuff.
  67. #endif
  68. #endif // _LIBPRIV_H