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.

37 lines
610 B

  1. //
  2. // chkobj.h
  3. //
  4. #ifndef CHKOBJ_H
  5. #define CHKOBJ_H
  6. #ifdef DEBUG
  7. // verify we don't free any unallocated gdi objs
  8. __inline BOOL ChkDeleteObject(HGDIOBJ hObj)
  9. {
  10. BOOL fDeleteObjectSucceeded = DeleteObject(hObj);
  11. Assert(fDeleteObjectSucceeded);
  12. return fDeleteObjectSucceeded;
  13. }
  14. #define DeleteObject(hObj) ChkDeleteObject(hObj)
  15. __inline BOOL ChkDeleteDC(HDC hdc)
  16. {
  17. BOOL fDeleteDCSucceeded = DeleteDC(hdc);
  18. Assert(fDeleteDCSucceeded);
  19. return fDeleteDCSucceeded;
  20. }
  21. #define DeleteDC(hdc) ChkDeleteDC(hdc)
  22. #endif // DEBUG
  23. #endif // CHKOBJ_H