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.

55 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation.
  4. //
  5. // File: monquery.h
  6. //
  7. // Contents: Index Server <==> Monarch interface functions
  8. //
  9. // History: 24 Jan 1997 AlanW Created
  10. //
  11. //----------------------------------------------------------------------------
  12. #ifndef _MONQUERY_H_
  13. #define _MONQUERY_H_
  14. #if defined(__cplusplus)
  15. extern "C"
  16. {
  17. #endif
  18. typedef struct tagCIPROPERTYDEF
  19. {
  20. LPWSTR wcsFriendlyName;
  21. DWORD dbType;
  22. DBID dbCol;
  23. } CIPROPERTYDEF;
  24. // Create an ICommand, specifying scopes and a catalog.
  25. STDAPI CIMakeICommand( ICommand ** ppQuery,
  26. ULONG cScope,
  27. DWORD const * aDepths,
  28. WCHAR const * const * awcsScope,
  29. WCHAR const * const * awcsCat,
  30. WCHAR const * const * awcsMachine );
  31. // Convert pwszRestriction in Triplish to a command tree.
  32. STDAPI CITextToSelectTree( WCHAR const * pwszRestriction,
  33. DBCOMMANDTREE * * ppTree,
  34. ULONG cProperties,
  35. /*optional*/ CIPROPERTYDEF * pReserved );
  36. // Convert pwszRestriction in Triplish to a command tree.
  37. STDAPI CITextToFullTree( WCHAR const * pwszRestriction,
  38. WCHAR const * pwszColumns,
  39. WCHAR const * pwszSortColumns,
  40. DBCOMMANDTREE * * ppTree,
  41. ULONG cProperties,
  42. /*optional*/ CIPROPERTYDEF * pReserved );
  43. #if defined(__cplusplus)
  44. }
  45. #endif
  46. #endif // _MONQUERY_H_