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.

82 lines
2.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1999.
  5. //
  6. // File: stgint.h
  7. //
  8. // Contents: Internal storage APIs, collected here because
  9. // they are declared and used across projects
  10. // These APIs are not publicized and are not
  11. // for general use
  12. //
  13. // History: 23-Jul-93 DrewB Created
  14. // 12-May-95 HenryLee Add DfOpenDocfile
  15. //
  16. // Notes: All handles are NT handles
  17. //
  18. //----------------------------------------------------------------------------
  19. #ifndef __STGINT_H__
  20. #define __STGINT_H__
  21. #if _MSC_VER > 1000
  22. #pragma once
  23. #endif
  24. STDAPI
  25. StgOpenStorageOnHandle( IN HANDLE hStream,
  26. IN DWORD grfMode,
  27. IN void *reserved1,
  28. IN void *reserved2,
  29. IN REFIID riid,
  30. OUT void **ppObjectOpen );
  31. /*
  32. Don't export until it's needed.
  33. STDAPI
  34. StgCreateStorageOnHandle( IN HANDLE hStream,
  35. IN DWORD grfMode,
  36. IN DWORD stgfmt,
  37. IN void *reserved1,
  38. IN void *reserved2,
  39. IN REFIID riid,
  40. OUT void **ppObjectOpen );
  41. */
  42. STDAPI DfIsDocfile(HANDLE h);
  43. // Summary catalog entry points
  44. STDAPI ScCreateStorage(HANDLE hParent,
  45. WCHAR const *pwcsName,
  46. HANDLE h,
  47. DWORD grfMode,
  48. LPSECURITY_ATTRIBUTES pssSecurity,
  49. IStorage **ppstg);
  50. STDAPI ScOpenStorage(HANDLE hParent,
  51. WCHAR const *pwcsName,
  52. HANDLE h,
  53. IStorage *pstgPriority,
  54. DWORD grfMode,
  55. SNB snbExclude,
  56. IStorage **ppstg);
  57. DEFINE_GUID (IID_IStorageReplica,
  58. 0x521a28f3,0xe40b,0x11ce,0xb2,0xc9,0x00,0xaa,0x00,0x68,0x09,0x37);
  59. DECLARE_INTERFACE_(IStorageReplica, IUnknown)
  60. {
  61. // *** IUnknown methods ***
  62. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  63. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  64. STDMETHOD_(ULONG,Release) (THIS) PURE;
  65. //IStorageReplica
  66. STDMETHOD(GetServerInfo) (THIS_
  67. LPWSTR lpServerName,
  68. LPDWORD lpcbServerName,
  69. LPWSTR lpReplSpecificPath,
  70. LPDWORD lpcbReplSpecificPath) PURE;
  71. };
  72. #endif // #ifndef __STGINT_H__