Leaked source code of windows server 2003
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.

87 lines
1.7 KiB

  1. /*****************************************************************************\
  2. * MODULE: util.h
  3. *
  4. * Private header for the Print-Processor library.
  5. *
  6. *
  7. * Copyright (C) 1996-1997 Microsoft Corporation
  8. * Copyright (C) 1996-1997 Hewlett Packard
  9. *
  10. * History:
  11. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  12. *
  13. \*****************************************************************************/
  14. #ifndef _UTIL_H
  15. #define _UTIL_H
  16. // Constants defined.
  17. //
  18. #define PRINT_LEVEL_0 0
  19. #define PRINT_LEVEL_1 1
  20. #define PRINT_LEVEL_2 2
  21. #define PRINT_LEVEL_3 3
  22. #define PRINT_LEVEL_4 4
  23. #define PRINT_LEVEL_5 5
  24. #define PORT_LEVEL_1 1
  25. #define PORT_LEVEL_2 2
  26. #define COMPUTER_MAX_NAME 32
  27. // Utility Routines.
  28. //
  29. PCINETMONPORT utlValidatePrinterHandle(
  30. HANDLE hPrinter);
  31. PCINETMONPORT utlValidatePrinterHandleForClose(
  32. HANDLE hPrinter,
  33. PBOOL pbDeletePending);
  34. LPTSTR utlValidateXcvPrinterHandle(
  35. HANDLE hPrinter);
  36. BOOL utlParseHostShare(
  37. LPCTSTR lpszPortName,
  38. LPTSTR *lpszHost,
  39. LPTSTR *lpszShare,
  40. LPINTERNET_PORT lpPort,
  41. LPBOOL lpbHTTPS);
  42. INT utlStrSize(
  43. LPCTSTR lpszStr);
  44. LPBYTE utlPackStrings(
  45. LPTSTR *pSource,
  46. LPBYTE pDest,
  47. LPDWORD pDestOffsets,
  48. LPBYTE pEnd);
  49. LPTSTR utlStrChr(
  50. LPCTSTR cs,
  51. TCHAR c);
  52. LPTSTR utlStrChrR(
  53. LPCTSTR cs,
  54. TCHAR c);
  55. // ----------------------------------------------------------------------
  56. //
  57. // Impersonation utilities
  58. //
  59. // ----------------------------------------------------------------------
  60. BOOL MyName(
  61. LPCTSTR pName
  62. );
  63. LPTSTR
  64. GetUserName(VOID);
  65. VOID
  66. EndBrowserSession (
  67. VOID);
  68. #endif