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.

41 lines
1.2 KiB

  1. // --------------------------------------------------------------------------------
  2. // Propcryp.h
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // Steven J. Bailey
  5. // --------------------------------------------------------------------------------
  6. #ifndef __PROPCRYP_H
  7. #define __PROPCRYP_H
  8. interface IPStore;
  9. // --------------------------------------------------------------------------------
  10. // CPropCrypt
  11. // --------------------------------------------------------------------------------
  12. class CPropCrypt
  13. {
  14. public:
  15. CPropCrypt(void);
  16. ~CPropCrypt(void);
  17. ULONG AddRef();
  18. ULONG Release();
  19. HRESULT HrInit(void);
  20. HRESULT HrEncodeNewProp(LPSTR szAccountName, BLOB *pClear, BLOB *pEncoded);
  21. HRESULT HrEncode(BLOB *pClear, BLOB *pEncoded);
  22. HRESULT HrDecode(BLOB *pEncoded, BLOB *pClear);
  23. HRESULT HrDelete(BLOB *pEncoded);
  24. private:
  25. ULONG m_cRef;
  26. BOOL m_fInit;
  27. IPStore *m_pISecProv;
  28. };
  29. // --------------------------------------------------------------------------------
  30. // Prototypes
  31. // --------------------------------------------------------------------------------
  32. HRESULT HrCreatePropCrypt(CPropCrypt **ppPropCrypt);
  33. #define DOUTL_CPROP (512)
  34. #endif // __PROPCRYP_H