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.

52 lines
1.2 KiB

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