Source code of Windows XP (NT5)
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.

72 lines
1.9 KiB

  1. /*
  2. * olevalid.h - OLE validation functions description.
  3. *
  4. * Taken from URL code by ChrisPi 9-11-95
  5. *
  6. */
  7. #ifndef _OLEVALID_H_
  8. #define _OLEVALID_H_
  9. #ifdef __cplusplus
  10. extern "C" { /* Assume C declarations for C++. */
  11. #endif /* __cplusplus */
  12. /* Macros
  13. *********/
  14. /* method validation macro */
  15. #define IS_VALID_METHOD(piface, mthd) \
  16. IS_VALID_CODE_PTR((piface)->lpVtbl->mthd, mthd)
  17. /* Prototypes
  18. *************/
  19. /* olevalid.c */
  20. #ifdef DEBUG
  21. extern BOOL IsValidPCGUID(PCGUID);
  22. extern BOOL IsValidPCCLSID(PCCLSID);
  23. extern BOOL IsValidPCIID(PCIID);
  24. extern BOOL IsValidPCDVTARGETDEVICE(PCDVTARGETDEVICE);
  25. extern BOOL IsValidPCFORMATETC(PCFORMATETC);
  26. extern BOOL IsValidStgMediumType(DWORD);
  27. extern BOOL IsValidPCSTGMEDIUM(PCSTGMEDIUM);
  28. extern BOOL IsValidREFIID(REFIID);
  29. extern BOOL IsValidREFCLSID(REFCLSID);
  30. extern BOOL IsValidPCINTERFACE(PCVOID);
  31. extern BOOL IsValidPCIAdviseSink(PCIAdviseSink);
  32. extern BOOL IsValidPCIClassFactory(PCIClassFactory);
  33. extern BOOL IsValidPCIDataObject(PCIDataObject);
  34. extern BOOL IsValidPCIDropSource(PCIDropSource);
  35. extern BOOL IsValidPCIDropTarget(PCIDropTarget);
  36. extern BOOL IsValidPCIEnumFORMATETC(PCIEnumFORMATETC);
  37. extern BOOL IsValidPCIEnumSTATDATA(PCIEnumSTATDATA);
  38. extern BOOL IsValidPCIMalloc(PCIMalloc);
  39. extern BOOL IsValidPCIMoniker(PCIMoniker);
  40. extern BOOL IsValidPCIPersist(PCIPersist);
  41. extern BOOL IsValidPCIPersistFile(PCIPersistFile);
  42. extern BOOL IsValidPCIPersistStorage(PCIPersistStorage);
  43. extern BOOL IsValidPCIPersistStream(PCIPersistStream);
  44. extern BOOL IsValidPCIStorage(PCIStorage);
  45. extern BOOL IsValidPCIStream(PCIStream);
  46. extern BOOL IsValidPCIUnknown(PCIUnknown);
  47. #ifdef __INTSHCUT_H__
  48. extern BOOL IsValidPCIUniformResourceLocator(PCIUniformResourceLocator);
  49. #endif /* __INTSHCUT_H__ */
  50. #endif /* DEBUG */
  51. #ifdef __cplusplus
  52. } /* End of extern "C" {. */
  53. #endif /* __cplusplus */
  54. #endif /* _OLEVALID_H_ */