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.

121 lines
4.2 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name :
  4. ansimeta.h
  5. Abstract:
  6. WRAPPER functions for ANSI calls of UNICODE ADMCOM interface
  7. Environment:
  8. Win32 User Mode
  9. Author:
  10. jaroslad (jan 1997)
  11. --*/
  12. #ifndef _ANSIMETA__H
  13. #define _ANSIMETA__H
  14. #include <tchar.h>
  15. #include <afx.h>
  16. #include <iadmw.h>
  17. class ANSI_smallIMSAdminBase
  18. {
  19. public:
  20. IMSAdminBase * m_pcAdmCom; //interface pointer to Metabase Admin
  21. ANSI_smallIMSAdminBase (){m_pcAdmCom=0;};
  22. void SetInterfacePointer(IMSAdminBase * a_pcAdmCom) {a_pcAdmCom = m_pcAdmCom;}
  23. virtual HRESULT STDMETHODCALLTYPE AddKey(
  24. /* [in] */ METADATA_HANDLE hMDHandle,
  25. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath) ;
  26. virtual HRESULT STDMETHODCALLTYPE DeleteKey(
  27. /* [in] */ METADATA_HANDLE hMDHandle,
  28. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath) ;
  29. virtual HRESULT STDMETHODCALLTYPE EnumKeys(
  30. /* [in] */ METADATA_HANDLE hMDHandle,
  31. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  32. /* [size_is][out] */ unsigned char __RPC_FAR *pszMDName,
  33. /* [in] */ DWORD dwMDEnumObjectIndex) ;
  34. virtual HRESULT STDMETHODCALLTYPE CopyKey(
  35. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  36. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDSourcePath,
  37. /* [in] */ METADATA_HANDLE hMDDestHandle,
  38. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDDestPath,
  39. /* [in] */ BOOL bMDOverwriteFlag,
  40. /* [in] */ BOOL bMDCopyFlag) ;
  41. virtual HRESULT STDMETHODCALLTYPE RenameKey(
  42. /* [in] */ METADATA_HANDLE hMDHandle,
  43. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  44. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDNewName) ;
  45. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetData(
  46. /* [in] */ METADATA_HANDLE hMDHandle,
  47. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  48. /* [in] */ PMETADATA_RECORD pmdrMDData) ;
  49. virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetData(
  50. /* [in] */ METADATA_HANDLE hMDHandle,
  51. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  52. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  53. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) ;
  54. virtual HRESULT STDMETHODCALLTYPE DeleteData(
  55. /* [in] */ METADATA_HANDLE hMDHandle,
  56. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  57. /* [in] */ DWORD dwMDIdentifier,
  58. /* [in] */ DWORD dwMDDataType) ;
  59. virtual /* [local] */ HRESULT STDMETHODCALLTYPE EnumData(
  60. /* [in] */ METADATA_HANDLE hMDHandle,
  61. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  62. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  63. /* [in] */ DWORD dwMDEnumDataIndex,
  64. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) ;
  65. virtual HRESULT STDMETHODCALLTYPE CopyData(
  66. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  67. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDSourcePath,
  68. /* [in] */ METADATA_HANDLE hMDDestHandle,
  69. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDDestPath,
  70. /* [in] */ DWORD dwMDAttributes,
  71. /* [in] */ DWORD dwMDUserType,
  72. /* [in] */ DWORD dwMDDataType,
  73. /* [in] */ BOOL bMDCopyFlag) ;
  74. virtual HRESULT STDMETHODCALLTYPE OpenKey(
  75. /* [in] */ METADATA_HANDLE hMDHandle,
  76. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  77. /* [in] */ DWORD dwMDAccessRequested,
  78. /* [in] */ DWORD dwMDTimeOut,
  79. /* [out] */ PMETADATA_HANDLE phMDNewHandle) ;
  80. virtual HRESULT STDMETHODCALLTYPE CloseKey(
  81. /* [in] */ METADATA_HANDLE hMDHandle) ;
  82. virtual HRESULT STDMETHODCALLTYPE SaveData( void) ;
  83. };
  84. #endif