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.

93 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. 1998 Seagate Software, Inc. All rights reserved.
  4. Module Name:
  5. HsmFind.h
  6. Abstract:
  7. This is the header file for HsmConn.dll
  8. Author:
  9. Rohde Wakefield [rohde] 21-Oct-1996
  10. Revision History:
  11. --*/
  12. #ifndef __HSMFIND__
  13. #define __HSMFIND__
  14. // Need for IEnumGUID
  15. #include "activeds.h"
  16. #include "inetsdk.h"
  17. #include "HsmEng.h"
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif
  22. #ifdef HSMCONN_IMPL
  23. #define HSMCONN_EXPORT __declspec(dllexport)
  24. #else
  25. #define HSMCONN_EXPORT __declspec(dllimport)
  26. #endif
  27. #define HSMCONN_API __stdcall
  28. typedef enum _hsmconn_type {
  29. HSMCONN_TYPE_HSM,
  30. HSMCONN_TYPE_FSA,
  31. HSMCONN_TYPE_RESOURCE,
  32. HSMCONN_TYPE_FILTER,
  33. HSMCONN_TYPE_RMS //stays just as literal for GUI needs, but NOT supported
  34. //by HsmConn anymore
  35. } HSMCONN_TYPE;
  36. HSMCONN_EXPORT HRESULT HSMCONN_API
  37. HsmConnectFromId (
  38. IN HSMCONN_TYPE type,
  39. IN REFGUID rguid,
  40. IN REFIID riid,
  41. OUT void ** ppv
  42. );
  43. HSMCONN_EXPORT HRESULT HSMCONN_API
  44. HsmConnectFromName (
  45. IN HSMCONN_TYPE type,
  46. IN const OLECHAR * szName,
  47. IN REFIID riid,
  48. OUT void ** ppv
  49. );
  50. HSMCONN_EXPORT HRESULT HSMCONN_API
  51. HsmPublish (
  52. IN HSMCONN_TYPE type,
  53. IN const OLECHAR * szName,
  54. IN REFGUID rguidObjectId,
  55. IN const OLECHAR * szServer,
  56. IN REFGUID rguid
  57. );
  58. HSMCONN_EXPORT HRESULT HSMCONN_API
  59. HsmGetComputerNameFromADsPath(
  60. IN const OLECHAR * szADsPath,
  61. OUT OLECHAR ** pszComputerName
  62. );
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif //__HSMFIND__