Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: IResObj.H
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. // Declaration of ILocRes32Image.
  9. // This interface allows to convert the localizable items of a resource
  10. // into a res32 image, and viceversa.
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef IRESOBJ_H
  14. #define IRESOBJ_H
  15. class CLocItemPtrArray;
  16. class CFile;
  17. class CResObj;
  18. class CLocItem;
  19. extern const IID IID_ICreateResObj;
  20. DECLARE_INTERFACE_(ICreateResObj, IUnknown)
  21. {
  22. //
  23. // IUnknown standard interface.
  24. //
  25. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR*ppvObj) PURE;
  26. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  27. STDMETHOD_(ULONG, Release)(THIS) PURE;
  28. //
  29. // Standard Debugging interface.
  30. //
  31. STDMETHOD_(void, AssertValidInterface)(THIS) CONST_METHOD PURE;
  32. // Creates a CResObj for win32 resoruce processing
  33. //Inputs:
  34. // - A pointer to a CLocItem object containing the type and Id of the item
  35. // - The size of the resource.
  36. // - An void pointer to unknown data to be passed from enumeration to generate
  37. //Return:
  38. // - A CResObj pointer or NULL if the type is not recognized
  39. STDMETHOD_(CResObj *, CreateResObj)(THIS_ CLocItem * pLocItem,
  40. DWORD dwSize, void * pvHeader) PURE;
  41. };
  42. #endif // IRESOBJ_H