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.

59 lines
2.4 KiB

  1. #ifndef _IPROP_H_
  2. #define _IPROP_H_
  3. #if !defined(__objidl_h__) || !defined(_OBJBASE_H_)
  4. #error ole2.h (specifically, objidl.h & objbase.h) must be included before iprop.h
  5. #endif
  6. EXTERN_C HRESULT __stdcall PrivStgOpenStorageEx (
  7. const WCHAR *pwcsName,
  8. DWORD grfMode,
  9. DWORD stgfmt, // enum
  10. DWORD grfAttrs, // reserved
  11. void * pSecurity, // supports IAccessControl
  12. void * pTransaction, // coordinated transactions
  13. REFIID riid,
  14. void ** ppObjectOpen);
  15. EXTERN_C HRESULT __stdcall PrivStgCreateStorageEx (
  16. const WCHAR* pwcsName,
  17. DWORD grfMode,
  18. DWORD stgfmt, // enum
  19. DWORD grfAttrs, // reserved
  20. void * pSecurity, // supports IAccessControl
  21. void * pTransaction, // coordinated transactions
  22. REFIID riid,
  23. void ** ppObjectOpen);
  24. #ifndef STGFMT_STORAGE
  25. #define STGFMT_STORAGE 0
  26. #define STGFMT_NATIVE 1
  27. #define STGFMT_FILE 3
  28. #define STGFMT_ANY 4
  29. #define STGFMT_DOCFILE 5
  30. #endif // #ifndef STGFMT_STORAGE
  31. EXTERN_C HRESULT __stdcall PrivPropVariantCopy ( PROPVARIANT * pvarDest, const PROPVARIANT * pvarSrc );
  32. EXTERN_C HRESULT __stdcall PrivPropVariantClear ( PROPVARIANT * pvar );
  33. EXTERN_C HRESULT __stdcall PrivFreePropVariantArray ( ULONG cVariants, PROPVARIANT * rgvars );
  34. #ifdef NT5PROPS_CI_APIS
  35. EXTERN_C ULONG __stdcall PrivStgPropertyLengthAsVariant( IN SERIALIZEDPROPERTYVALUE const *pprop, IN ULONG cbprop, IN USHORT CodePage, IN BYTE flags );
  36. EXTERN_C SERIALIZEDPROPERTYVALUE * __stdcall
  37. PrivStgConvertVariantToProperty( IN PROPVARIANT const *pvar, IN USHORT CodePage, OPTIONAL OUT SERIALIZEDPROPERTYVALUE *pprop, IN OUT ULONG *pcb, IN PROPID pid, IN BOOLEAN fVariantVectorOrArray, OPTIONAL OUT ULONG *pcIndirect );
  38. #endif
  39. #define StgOpenStorageEx PrivStgOpenStorageEx
  40. #define StgCreateStorageEx PrivStgCreateStorageEx
  41. #define PropVariantCopy PrivPropVariantCopy
  42. #define PropVariantClear PrivPropVariantClear
  43. #define FreePropVariantArray PrivFreePropVariantArray
  44. #define StgPropertyLengthAsVariant PrivStgPropertyLengthAsVariant
  45. #define StgConvertVariantToProperty PrivStgConvertVariantToProperty
  46. #endif // #ifndef _IPROP_H_