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.

63 lines
1.6 KiB

  1. // *********************************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation
  4. //
  5. // Module Name:
  6. //
  7. // Query.h
  8. //
  9. // Abstract:
  10. //
  11. // macros and function prototypes of Query.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 _QUERY_H
  23. #define _QUERY_H
  24. #include "openfiles.h"
  25. #define COL_WIDTH_HOSTNAME 15
  26. #define COL_WIDTH_ID 8
  27. #define COL_WIDTH_ACCESSED_BY 20
  28. #define COL_WIDTH_TYPE 10
  29. #define COL_WIDTH_LOCK 10
  30. #define COL_WIDTH_OPEN_MODE 15
  31. #define COL_WIDTH_OPEN_FILE 36
  32. #define MAX_OUTPUT_COLUMN 7
  33. #define COL_HOSTNAME GetResString(IDS_STRING_HOSTNAME)
  34. #define COL_ID GetResString(IDS_STRING_ID)
  35. #define COL_ACCESSED_BY GetResString(IDS_STRING_ACCESSED_BY)
  36. #define COL_TYPE GetResString(IDS_STRING_TYPE)
  37. #define COL_LOCK GetResString(IDS_STRING_LOCK)
  38. #define COL_OPEN_MODE GetResString(IDS_STRING_OPEN_MODE)
  39. #define COL_OPEN_FILE GetResString(IDS_STRING_OPEN_FILE)
  40. #define MAC_OS GetResString(IDS_MAC_OS)
  41. #define RV_ERROR_C_CPP_FUNCTIONS -1
  42. BOOL QueryOpenFiles(LONG argc,
  43. LPCTSTR argv[]);
  44. BOOL DoQuery(PTCHAR pszServer,
  45. BOOL bShowNoHeader,
  46. PTCHAR pszFormat,
  47. BOOL bVerbose);
  48. BOOL GetHostName(PTCHAR pszServer);
  49. BOOL GetHostNameFromFQDN(LPTSTR pszServer);
  50. #endif