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.

88 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. Module Name:
  4. splutil.h
  5. Abstract:
  6. Header file for utilities used in Novell Print Provider
  7. Author:
  8. Yi-Hsin Sung (yihsins) 12-Apr-1993
  9. Revision History:
  10. --*/
  11. #ifndef _SPLUTIL_H_
  12. #define _SPLUTIL_H_
  13. #define offsetof(type, identifier) (DWORD_PTR)(&(((type)0)->identifier))
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. extern DWORD_PTR PrinterInfo1Offsets[];
  18. extern DWORD_PTR PrinterInfo2Offsets[];
  19. extern DWORD_PTR PrinterInfo3Offsets[];
  20. extern DWORD_PTR JobInfo1Offsets[];
  21. extern DWORD_PTR JobInfo2Offsets[];
  22. extern DWORD_PTR AddJobInfo1Offsets[];
  23. VOID
  24. MarshallUpStructure(
  25. LPBYTE lpStructure,
  26. PDWORD_PTR lpOffsets,
  27. LPBYTE lpBufferStart
  28. );
  29. VOID
  30. MarshallDownStructure(
  31. LPBYTE lpStructure,
  32. PDWORD_PTR lpOffsets,
  33. LPBYTE lpBufferStart
  34. );
  35. LPVOID
  36. AllocNwSplMem(
  37. IN DWORD flags,
  38. IN DWORD cb
  39. );
  40. VOID
  41. FreeNwSplMem(
  42. IN LPVOID pMem,
  43. IN DWORD cb
  44. );
  45. LPWSTR
  46. AllocNwSplStr(
  47. IN LPWSTR pStr
  48. );
  49. VOID
  50. FreeNwSplStr(
  51. IN LPWSTR pStr
  52. );
  53. BOOL
  54. ValidateUNCName(
  55. IN LPWSTR pName
  56. );
  57. LPWSTR
  58. GetNextElement(
  59. OUT LPWSTR *pPtr,
  60. IN WCHAR token
  61. );
  62. #ifdef __cplusplus
  63. } // extern "C"
  64. #endif
  65. #endif // _SPLUTIL_H