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.

85 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. #pragma warning (disable : 4200)
  42. typedef struct {
  43. UINT ArgCount;
  44. PCSTR CharsToIgnore; OPTIONAL
  45. BOOL SelfRelative;
  46. BOOL UrlMode;
  47. TOKENARG Args[];
  48. } TOKENSET, *PTOKENSET;
  49. #define TOKEN_BASE_OFFSET 1000
  50. //
  51. // Flags for MEMDB_CATEGORY_STATE\MEMDB_ITEM_ADMIN_PASSWORD\<password> = <DWORD>
  52. //
  53. #define PASSWORD_ATTR_DEFAULT 0x0000
  54. #define PASSWORD_ATTR_RANDOM 0x0001
  55. #define PASSWORD_ATTR_ENCRYPTED 0x0002
  56. #define PASSWORD_ATTR_DONT_CHANGE_IF_EXIST 0x0004