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.

93 lines
2.4 KiB

  1. // ****************************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation
  4. //
  5. // Module Name:
  6. //
  7. // Disconnect.h
  8. //
  9. // Abstract:
  10. //
  11. // macros and function prototypes of Disconnect.cpp
  12. //
  13. // Author:
  14. //
  15. // Akhil Gokhale ([email protected]) 1-Nov-2000
  16. //
  17. // Revision History:
  18. //
  19. // Akhil Gokhale ([email protected]) 1-Nov-2000 : Created It.
  20. //
  21. // ****************************************************************************
  22. #ifndef _DISCONNECT_H
  23. #define _DISCONNECT_H
  24. #include "openfiles.h"
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #define ID_HELP_START IDS_HELP_LINE1
  29. #define ID_HELP_END IDS_HELP_LINE36
  30. // error messages
  31. #define ERROR_USERNAME_BUT_NOMACHINE GetResString(\
  32. IDS_ERROR_USERNAME_BUT_NOMACHINE)
  33. #define ERROR_PASSWORD_BUT_NOUSERNAME GetResString(\
  34. IDS_ERROR_PASSWORD_BUT_NOUSERNAME )
  35. #define FAILURE GetResString(IDS_FAILURE)
  36. #define SUCCESS GetResString(IDS_SUCCESS)
  37. #define DISCONNECTED_SUCCESSFULLY GetResString(IDS_SUCCESS_DISCONNECT)
  38. #define DISCONNECT_UNSUCCESSFUL GetResString(IDS_ERROR_DISCONNECT)
  39. #define WILD_CARD _T("*")
  40. #define READ_MODE GetResString(IDS_READ)
  41. #define WRITE_MODE GetResString(IDS_WRITE)
  42. #define READ_WRITE_MODE GetResString(IDS_READ_SLASH_WRITE)
  43. #define WRITE_READ_MODE GetResString(IDS_WRITE_SLASH_READ)
  44. #define PIPE_STRING L"\\PIPE\\srvsvc"
  45. #define DOT_EOL GetResString(IDS_DOT_EOL)
  46. BOOL
  47. DisconnectOpenFile(
  48. IN PTCHAR pszServer,
  49. IN PTCHAR pszID,
  50. IN PTCHAR pszAccessedby,
  51. IN PTCHAR pszOpenmode,
  52. IN PTCHAR pszOpenFile
  53. );
  54. BOOL
  55. IsNamedPipePath(
  56. IN LPWSTR pszwFilePath
  57. );
  58. BOOL
  59. IsSpecifiedID(
  60. IN LPTSTR pszId,
  61. IN DWORD dwId);
  62. BOOL
  63. IsSpecifiedAccessedBy(
  64. IN LPTSTR pszAccessedby,
  65. IN LPWSTR pszwAccessedby);
  66. BOOL
  67. IsSpecifiedOpenmode(
  68. IN LPTSTR pszOpenmode,
  69. IN DWORD dwOpenmode);
  70. BOOL
  71. IsSpecifiedOpenfile(
  72. IN LPTSTR pszOpenfile,
  73. IN LPWSTR pszwOpenfile);
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif // _DISCONNECT_H