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.

87 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. common.h
  5. Abstract:
  6. Declares types and interfaces common between w95upg.dll (the
  7. Win9x side of the upgrade), and w95upgnt.dll (the NT side of
  8. the upgrade).
  9. Author:
  10. Calin Negreanu (calinn) 23-Jun-1998
  11. Revision History:
  12. <alias> <date> <comments>
  13. --*/
  14. #pragma once
  15. // posible values for Boot16 option
  16. typedef enum {
  17. BOOT16_AUTOMATIC,
  18. BOOT16_YES,
  19. BOOT16_NO
  20. } BOOT16_OPTIONS;
  21. #define PROGID_SUPPRESSED 0
  22. #define PROGID_LOSTDEFAULT 1
  23. #ifdef PRERELEASE
  24. #define AUTOSTRESS_PRIVATE 0x0001
  25. #define AUTOSTRESS_MANUAL_TESTS 0x0002
  26. #endif
  27. #define MAX_GUID 128
  28. typedef struct {
  29. //
  30. // Caller-specified members
  31. //
  32. PCSTR DetectPattern;
  33. PCSTR SearchList; OPTIONAL
  34. PCSTR ReplaceWith; OPTIONAL
  35. BOOL UpdatePath;
  36. //
  37. // Work members, caller must zero them
  38. //
  39. PVOID DetectPatternStruct;
  40. } TOKENARG, *PTOKENARG;
  41. typedef struct {
  42. UINT ArgCount;
  43. PCSTR CharsToIgnore; OPTIONAL
  44. BOOL SelfRelative;
  45. BOOL UrlMode;
  46. TOKENARG Args[];
  47. } TOKENSET, *PTOKENSET;
  48. #define TOKEN_BASE_OFFSET 1000
  49. //
  50. // Flags for MEMDB_CATEGORY_STATE\MEMDB_ITEM_ADMIN_PASSWORD\<password> = <DWORD>
  51. //
  52. #define PASSWORD_ATTR_DEFAULT 0x0000
  53. #define PASSWORD_ATTR_RANDOM 0x0001
  54. #define PASSWORD_ATTR_ENCRYPTED 0x0002
  55. #define PASSWORD_ATTR_DONT_CHANGE_IF_EXIST 0x0004
  56. //
  57. // ARRAYSIZE (used to be borrowed from spapip.h)
  58. //
  59. #define ARRAYSIZE(x) (sizeof((x))/sizeof((x)[0]))