intfh.inc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. *********************************************************************
  3. $Id$
  4. Copyright (C) 2002 Free Pascal Development Team
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program 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
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. *********************************************************************
  17. System Utilities For Free Pascal
  18. }
  19. function Supports(const Instance: IInterface; const IID: TGUID; out Intf): Boolean; overload;
  20. function Supports(const Instance: TObject; const IID: TGUID; out Intf): Boolean; overload;
  21. function Supports(const Instance: IInterface; const IID: TGUID): Boolean; overload;
  22. function Supports(const Instance: TObject; const IID: TGUID): Boolean; overload;
  23. function Supports(const AClass: TClass; const IID: TGUID): Boolean; overload;
  24. //function CreateGUID(out Guid: TGUID): HResult;
  25. function StringToGUID(const S: string): TGUID;
  26. function GUIDToString(const GUID: TGUID): string;
  27. function IsEqualGUID(const guid1, guid2: TGUID): Boolean;
  28. {
  29. $Log$
  30. Revision 1.1 2003-10-06 21:01:06 peter
  31. * moved classes unit to rtl
  32. Revision 1.1 2002/01/25 17:42:03 peter
  33. * interface helpers
  34. }