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.

94 lines
2.5 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. ExecCommand.h
  5. Abstract:
  6. Contains function prototypes and macros.
  7. Author:
  8. V Vijaya Bhaskar
  9. Revision History:
  10. 14-Jun-2001 : Created by V Vijaya Bhaskar ( Wipro Technologies ).
  11. --*/
  12. #ifndef __EXEC_COMMAND__H
  13. #define __EXEC_COMMAND__H
  14. /***************************************************************************
  15. ** For a command to execute we have to replace some tokens with **
  16. ** some required information . **
  17. ***************************************************************************/
  18. // NOTE: Check 'szValue' declaration when this value is changed.
  19. #define TOTAL_FLAGS 9
  20. // Flags that can be used with command to execute.
  21. #define FILE_NAME L"@file"
  22. #define FILE_WITHOUT_EXT L"@fname"
  23. #define EXTENSION L"@ext"
  24. #define FILE_PATH L"@path"
  25. #define RELATIVE_PATH L"@relpath"
  26. #define IS_DIRECTORY L"@isdir"
  27. #define FILE_SIZE L"@fsize"
  28. #define FILE_DATE L"@fdate"
  29. #define FILE_TIME L"@ftime"
  30. #define IS_HEX L"0x"
  31. #define NOT_WIN32_APPL GetResString( IDS_NOT_WIN32_APPL )
  32. #define ASCII_0 48
  33. #define ASCII_9 57
  34. #define ASCII_A 65
  35. #define ASCII_F 70
  36. #define ASCII_a 97
  37. #define ASCII_f 102
  38. #define US_ENG_CODE_PAGE 437
  39. // Define for replacing flags with '%NUMBER' string.
  40. #define REPLACE_PERC_CHAR( FIRSTLOOP, FLAG_NAME, INDEX )\
  41. if( TRUE == FIRSTLOOP )\
  42. {\
  43. if( FALSE == ReplaceString( FLAG_NAME, ( INDEX + 1 ) ) ) \
  44. {\
  45. ReleaseFlagArray( INDEX + 1 );\
  46. return FALSE ;\
  47. }\
  48. }\
  49. 1
  50. /* Function prototypes for world . */
  51. BOOL
  52. ExecuteCommand(
  53. void
  54. ) ;
  55. BOOL
  56. ReplaceSpacedDir(
  57. void
  58. );
  59. BOOL
  60. ReplaceTokensWithValidValue(
  61. LPWSTR lpszPathName ,
  62. WIN32_FIND_DATA wfdFindFile
  63. ) ;
  64. BOOL
  65. ReplaceHexToChar(
  66. LPWSTR lpszCommand
  67. ) ;
  68. void
  69. ReleaseStoreCommand(
  70. void
  71. ) ;
  72. #endif //__EXEC_COMMAND__H