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.

93 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. main.h
  5. Abstract:
  6. Declares the interface to utils\main
  7. Author:
  8. Jim Schmidt (jimschm) 02-Sep-1999
  9. Revision History:
  10. <alias> <date> <comments>
  11. --*/
  12. //
  13. // MAX constants
  14. //
  15. #define MAX_PATH_PLUS_NUL (MAX_PATH+1)
  16. #define MAX_MBCHAR_PATH (MAX_PATH_PLUS_NUL*2)
  17. #define MAX_WCHAR_PATH MAX_PATH_PLUS_NUL
  18. #define MAX_MBCHAR_PRINTABLE_PATH (MAX_PATH*2)
  19. #define MAX_WCHAR_PRINTABLE_PATH MAX_PATH
  20. #define MAX_SERVER_NAMEA (64*2)
  21. #define MAX_USER_NAMEA (MAX_SERVER_NAMEA + (20 * 2))
  22. #define MAX_REGISTRY_KEYA (1024 * 2)
  23. #define MAX_REGISTRY_VALUE_NAMEA (260 * 2)
  24. #define MAX_COMPONENT_NAMEA (256 * 2)
  25. #define MAX_COMPUTER_NAMEA (64 * 2)
  26. #define MAX_CMDLINEA (1024 * 2) // maximum number of chars in a Win95 command line
  27. #define MAX_TRANSLATION 32
  28. #define MAX_KEYBOARDLAYOUT 64
  29. #define MAX_INF_SECTION_NAME 128
  30. #define MAX_INF_KEY_NAME 128
  31. #define MAX_SERVER_NAMEW 64
  32. #define MAX_USER_NAMEW (MAX_SERVER_NAMEW + 20)
  33. #define MAX_REGISTRY_KEYW 1024
  34. #define MAX_REGISTRY_VALUE_NAMEW 260
  35. #define MAX_COMPONENT_NAMEW 256
  36. #define MAX_COMPUTER_NAMEW 64
  37. //
  38. // Prototypes
  39. //
  40. VOID
  41. UtInitialize (
  42. IN HANDLE Heap OPTIONAL
  43. );
  44. VOID
  45. UtTerminate (
  46. VOID
  47. );
  48. HANDLE
  49. StartThread (
  50. IN PTHREAD_START_ROUTINE Address,
  51. IN PVOID Arg
  52. );
  53. HANDLE
  54. StartProcessA (
  55. IN PCSTR CmdLine
  56. );
  57. HANDLE
  58. StartProcessW (
  59. IN PCWSTR CmdLine
  60. );
  61. #ifdef UNICODE
  62. #define StartProcess StartProcessW
  63. #else
  64. #define StartProcess StartProcessA
  65. #endif