with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLScreen4_Interface is

   procedure Initialize (This : in out IHTMLScreen4_Type) is
   begin
      Set_IID (This, IID_IHTMLScreen4);
   end Initialize;

   function Pointer (This : IHTMLScreen4_Type)
     return Pointer_To_IHTMLScreen4
   is
   begin
      return To_Pointer_To_IHTMLScreen4 (Address (This));
   end Pointer;

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

   function Get_pixelDepth
     (This : IHTMLScreen4_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_pixelDepth
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_pixelDepth;

end MSHTML.IHTMLScreen4_Interface;

