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.

80 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. migdbp.h
  5. Abstract:
  6. Header file for implementing attributes
  7. Author:
  8. Calin Negreanu (calinn) 07-Ian-1998
  9. Revision History:
  10. Aghajanyan Souren (sourenag) 24-Apr-2001 separated from migdbp.h
  11. --*/
  12. typedef struct _MIGDB_ATTRIB {
  13. INT AttribIndex;
  14. UINT ArgCount;
  15. PCSTR Arguments;
  16. BOOL NotOperator;
  17. VOID *ExtraData;
  18. struct _MIGDB_ATTRIB *Next;
  19. } MIGDB_ATTRIB, *PMIGDB_ATTRIB;
  20. typedef struct {
  21. PFILE_HELPER_PARAMS FileParams;
  22. VOID * ExtraData;
  23. } DBATTRIB_PARAMS, *PDBATTRIB_PARAMS;
  24. //
  25. // Declare the attribute functions prototype
  26. //
  27. typedef BOOL (ATTRIBUTE_PROTOTYPE) (PDBATTRIB_PARAMS AttribParams, PCSTR Args);
  28. typedef ATTRIBUTE_PROTOTYPE * PATTRIBUTE_PROTOTYPE;
  29. PATTRIBUTE_PROTOTYPE
  30. MigDb_GetAttributeAddr (
  31. IN INT AttributeIdx
  32. );
  33. INT
  34. MigDb_GetAttributeIdx (
  35. IN PCSTR AttributeStr
  36. );
  37. UINT
  38. MigDb_GetReqArgCount (
  39. IN INT AttributeIndex
  40. );
  41. PCSTR
  42. MigDb_GetAttributeName (
  43. IN INT AttributeIdx
  44. );
  45. BOOL
  46. CallAttribute (
  47. IN PMIGDB_ATTRIB MigDbAttrib,
  48. IN PDBATTRIB_PARAMS AttribParams
  49. );
  50. PMIGDB_ATTRIB
  51. LoadAttribData (
  52. IN PCSTR MultiSzStr,
  53. IN POOLHANDLE hPool
  54. );
  55. VOID
  56. FreeAttribData(
  57. IN POOLHANDLE hPool,
  58. IN PMIGDB_ATTRIB pData
  59. );