with GNATCOM.Errors;

package body MSHTML.IEnumPrivacyRecords_Interface is

   procedure Initialize (This : in out IEnumPrivacyRecords_Type) is
   begin
      Set_IID (This, IID_IEnumPrivacyRecords);
   end Initialize;

   function Pointer (This : IEnumPrivacyRecords_Type)
     return Pointer_To_IEnumPrivacyRecords
   is
   begin
      return To_Pointer_To_IEnumPrivacyRecords (Address (This));
   end Pointer;

   procedure Attach (This    : in out IEnumPrivacyRecords_Type;
                     Pointer : in     Pointer_To_IEnumPrivacyRecords)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure reset
     (This : IEnumPrivacyRecords_Type)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.reset
         (Pointer (This)));

   end reset;

   procedure GetSize
     (This  : IEnumPrivacyRecords_Type;
      pSize : GNATCOM.Types.Pointer_To_unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetSize
         (Pointer (This),
          pSize));

   end GetSize;

   procedure GetPrivacyImpacted
     (This   : IEnumPrivacyRecords_Type;
      pState : GNATCOM.Types.Pointer_To_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetPrivacyImpacted
         (Pointer (This),
          pState));

   end GetPrivacyImpacted;

   procedure Next
     (This            : IEnumPrivacyRecords_Type;
      pbstrUrl        : GNATCOM.Types.Pointer_To_BSTR;
      pbstrPolicyRef  : GNATCOM.Types.Pointer_To_BSTR;
      pdwReserved     : GNATCOM.Types.Pointer_To_long;
      pdwPrivacyFlags : GNATCOM.Types.Pointer_To_unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Next
         (Pointer (This),
          pbstrUrl,
          pbstrPolicyRef,
          pdwReserved,
          pdwPrivacyFlags));

   end Next;

end MSHTML.IEnumPrivacyRecords_Interface;

