with GNATCOM.Errors;

package body MSHTML.IWPCBlockedUrls_Interface is

   procedure Initialize (This : in out IWPCBlockedUrls_Type) is
   begin
      Set_IID (This, IID_IWPCBlockedUrls);
   end Initialize;

   function Pointer (This : IWPCBlockedUrls_Type)
     return Pointer_To_IWPCBlockedUrls
   is
   begin
      return To_Pointer_To_IWPCBlockedUrls (Address (This));
   end Pointer;

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

   procedure GetCount
     (This     : IWPCBlockedUrls_Type;
      pdwCount : GNATCOM.Types.Pointer_To_unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetCount
         (Pointer (This),
          pdwCount));

   end GetCount;

   procedure GetUrl
     (This     : IWPCBlockedUrls_Type;
      dwIdx    : Interfaces.C.unsigned_long;
      pbstrUrl : GNATCOM.Types.Pointer_To_BSTR)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetUrl
         (Pointer (This),
          dwIdx,
          pbstrUrl));

   end GetUrl;

end MSHTML.IWPCBlockedUrls_Interface;

