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.

125 lines
1.9 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1989 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: afpcomn.h
  7. //
  8. // Description: This file contains definitions common to the client
  9. // and server compoents.
  10. // History:
  11. // June 11,1992. NarenG Created original version.
  12. //
  13. #ifndef _AFPCOMN_
  14. #define _AFPCOMN_
  15. #define AFP_UNREFERENCED( x ) ( x )
  16. #define NT_PIPE_PREFIX TEXT("\\PIPE\\")
  17. // All string functions are multibyte
  18. //
  19. #define STRCPY wcscpy
  20. #define STRLEN wcslen
  21. #define STRCAT wcscat
  22. #define STRCMP wcscmp
  23. #define STRICMP _wcsicmp
  24. #define STRNICMP _wcsnicmp
  25. #define STRUPR _wcsupr
  26. #define STRNCPY wcsncpy
  27. #define AFP_VALIDATE_ALL_FIELDS 0
  28. //
  29. // Prototypes of validation functions.
  30. //
  31. BOOL
  32. IsAfpServerInfoValid(
  33. IN DWORD dwParmNum,
  34. IN PAFP_SERVER_INFO pAfpServerInfo
  35. );
  36. BOOL
  37. IsAfpServerNameValid(
  38. IN LPVOID
  39. );
  40. BOOL
  41. IsAfpServerOptionsValid(
  42. IN LPVOID
  43. );
  44. BOOL
  45. IsAfpMaxSessionsValid(
  46. IN LPVOID
  47. );
  48. BOOL
  49. IsAfpMsgValid(
  50. IN LPVOID
  51. );
  52. BOOL
  53. IsAfpCodePageValid(
  54. IN LPVOID pCodePagePath
  55. );
  56. BOOL
  57. IsAfpTypeCreatorValid(
  58. IN PAFP_TYPE_CREATOR pAfpTypeCreator
  59. );
  60. BOOL
  61. IsAfpExtensionValid(
  62. IN PAFP_EXTENSION pAfpExtension
  63. );
  64. BOOL
  65. IsAfpMaxPagedMemValid(
  66. IN LPVOID pMaxPagedMem
  67. );
  68. BOOL
  69. IsAfpMaxNonPagedMemValid(
  70. IN LPVOID pMaxNonPagedMem
  71. );
  72. BOOL
  73. IsAfpNumThreadsValid(
  74. IN LPVOID pNumThreads
  75. );
  76. BOOL
  77. IsAfpVolumeInfoValid(
  78. IN DWORD dwParmNum,
  79. IN PAFP_VOLUME_INFO pAfpVolume
  80. );
  81. BOOL
  82. IsAfpVolumeNameValid(
  83. IN LPWSTR lpwsVolumeName
  84. );
  85. BOOL
  86. IsAfpDirInfoValid(
  87. IN DWORD dwParmNum,
  88. IN PAFP_DIRECTORY_INFO pAfpDirInfo
  89. );
  90. BOOL
  91. IsAfpIconValid(
  92. IN PAFP_ICON_INFO pAfpIconInfo
  93. );
  94. BOOL
  95. IsAfpFinderInfoValid(
  96. IN LPWSTR pType,
  97. IN LPWSTR pCreator,
  98. IN LPWSTR pData,
  99. IN LPWSTR pResource,
  100. IN LPWSTR pPath,
  101. IN DWORD dwParmNum
  102. );
  103. #endif // _AFPCOMN_