screencapture.h 562 B

123456789101112131415161718192021222324252627282930
  1. #ifndef SCREENCAPTURE_H
  2. #define SCREENCAPTURE_H
  3. #pragma once
  4. #include <iobuffer.h>
  5. #ifdef RVC_OS_LINUX
  6. typedef struct tagRECT
  7. {
  8. LONG left;
  9. LONG top;
  10. LONG right;
  11. LONG bottom;
  12. } RECT, * PRECT, NEAR* NPRECT, FAR* LPRECT;
  13. int getScreenSize(int* width, int* height);
  14. #endif // RVC_OS_LINUX
  15. // if lprc == null, then full screen
  16. // zero on success, -1 on failed
  17. int screencapture_capture(RECT *lprc, void *buf, int *size);
  18. int screencapture_clipoff(int width, int height, void *buf, int n_rc, RECT *rcs);
  19. #endif // SCREENCAPTURE_H