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.

70 lines
2.3 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 DisconnectOpenFile( PTCHAR pszServer,
  47. PTCHAR pszID,
  48. PTCHAR pszAccessedby,
  49. PTCHAR pszOpenmode,
  50. PTCHAR pszOpenFile );
  51. BOOL IsNamedPipePath(LPWSTR pszwFilePath);
  52. BOOL IsSpecifiedID(LPTSTR pszId,DWORD dwId);
  53. BOOL IsSpecifiedAccessedBy(LPTSTR pszAccessedby, LPWSTR pszwAccessedby);
  54. BOOL IsSpecifiedOpenmode(LPTSTR pszOpenmode, DWORD dwOpenmode);
  55. BOOL IsSpecifiedOpenfile(LPTSTR pszOpenfile, LPWSTR pszwOpenfile);
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif // _DISCONNECT_H