proofofpossessioncookieinfo.idl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2021 Jacek Caban for CodeWeavers
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. import "oaidl.idl";
  19. import "ocidl.idl";
  20. typedef struct ProofOfPossessionCookieInfo
  21. {
  22. LPWSTR name;
  23. LPWSTR data;
  24. DWORD flags;
  25. LPWSTR p3pHeader;
  26. } ProofOfPossessionCookieInfo;
  27. cpp_quote("static inline void FreeProofOfPossessionCookieInfoArray(ProofOfPossessionCookieInfo *cookie_info, DWORD count)")
  28. cpp_quote("{")
  29. cpp_quote(" unsigned int i;")
  30. cpp_quote(" for (i = 0; i < count; i++)")
  31. cpp_quote(" {")
  32. cpp_quote(" CoTaskMemFree(cookie_info[i].name);")
  33. cpp_quote(" CoTaskMemFree(cookie_info[i].data);")
  34. cpp_quote(" CoTaskMemFree(cookie_info[i].p3pHeader);")
  35. cpp_quote(" }")
  36. cpp_quote(" CoTaskMemFree(cookie_info);")
  37. cpp_quote("}")
  38. [
  39. object,
  40. uuid(cdaece56-4edf-43df-b113-88e4556fa1bb),
  41. pointer_default(unique)
  42. ]
  43. interface IProofOfPossessionCookieInfoManager : IUnknown
  44. {
  45. HRESULT GetCookieInfoForUri([in] LPCWSTR uri,
  46. [out] DWORD *cookieInfoCount,
  47. [out, size_is(,*cookieInfoCount)] ProofOfPossessionCookieInfo **cookieInfo);
  48. }
  49. [
  50. uuid(7681a019-8f51-4594-9507-f27040f71f01),
  51. version(1.0)
  52. ]
  53. library ProofOfPossessionCookieInfoManagerLib
  54. {
  55. [
  56. uuid(a9927f85-a304-4390-8b23-a75f1c668600)
  57. ]
  58. coclass ProofOfPossessionCookieInfoManager
  59. {
  60. [default] interface IProofOfPossessionCookieInfoManager;
  61. }
  62. }