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.

92 lines
1.9 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: cstore.hxx
  7. //
  8. // Contents: Main Precompiled header for Directory Class Access Implementation
  9. //
  10. //
  11. // Author: DebiM
  12. //
  13. //-------------------------------------------------------------------------
  14. #if !defined(_CSTORE_HXX_)
  15. #define _CSTORE_HXX_
  16. #include "csmem.hxx"
  17. #include "dsbase.hxx"
  18. #include "cstore.h"
  19. #include "dsapi.hxx"
  20. #include "admin.hxx"
  21. #include "cslang.hxx"
  22. #include "rsop.hxx"
  23. #include "user.hxx"
  24. #include "filter.hxx"
  25. #include "qry.hxx"
  26. #include "enumapp.hxx"
  27. #include "common.hxx"
  28. #include "cstore.h"
  29. #include "list.hxx"
  30. #include <msi.h>
  31. #include <strsafe.h>
  32. #include <adsopenflags.h>
  33. #include "dsprop.hxx"
  34. #include "appcont.hxx"
  35. #include "clsacc.hxx"
  36. #include "cache.hxx"
  37. long CompareUsn(CSUSN *pUsn1, CSUSN *pUsn2);
  38. HRESULT GetUserSyncPoint(LPWSTR pszContainer, CSUSN *pPrevUsn);
  39. HRESULT AdvanceUserSyncPoint(LPWSTR pszContainer);
  40. #define MAX_BIND_ATTEMPTS 10
  41. #define ISNULLGUID(x) (x.Data1 == NULL)
  42. #define CS_CALL_LOCALSYSTEM 1
  43. #define CS_CALL_USERPROCESS 2
  44. #define CS_CALL_IMPERSONATED 3
  45. //------------------------- Priorities and weights
  46. //
  47. // File Extension priority
  48. //
  49. // 1 bit (0)
  50. //
  51. #define PRI_EXTN_FACTOR (1 << 0)
  52. //
  53. // CLSCTX priority
  54. //
  55. // 2 bits (7:8)
  56. //
  57. #define PRI_CLSID_INPSVR (3 << 7)
  58. #define PRI_CLSID_LCLSVR (2 << 7)
  59. #define PRI_CLSID_REMSVR (1 << 7)
  60. //
  61. // UI Language priority
  62. //
  63. // 3 bits (9:11)
  64. //
  65. #define PRI_LANG_ALWAYSMATCH (4 << 9)
  66. #define PRI_LANG_SYSTEMLOCALE (3 << 9)
  67. #define PRI_LANG_ENGLISH (2 << 9)
  68. #define PRI_LANG_NEUTRAL (1 << 9)
  69. //
  70. // Architecture priority
  71. //
  72. // 2 bits (12:13)
  73. //
  74. #define PRI_ARCH_PREF1 (2 << 12)
  75. #define PRI_ARCH_PREF2 (1 << 12)
  76. #endif // __CSTORE_HXX_
  77.