MCPcopy Create free account
hub / github.com/WallBreaker2/op / GetScreenDataBmp

Method GetScreenDataBmp

libop/com/OpAutomation.cpp:939–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939STDMETHODIMP OpAutomation::GetScreenDataBmp(LONG x1, LONG y1, LONG x2, LONG y2, VARIANT *data, VARIANT *size,
940 LONG *ret) {
941#if OP64
942 data->vt = VT_I8;
943 size->vt = VT_I8;
944 data->llVal = 0;
945 size->llVal = 0;
946#else
947 data->vt = VT_I4;
948 size->vt = VT_I4;
949 data->lVal = 0;
950 size->lVal = 0;
951#endif
952 size_t data_ = 0;
953 long size_ = 0;
954
955 obj.GetScreenDataBmp(x1, y1, x2, y2, &data_, &size_, ret);
956#if OP64
957 data->llVal = (long long)data_;
958 size->llVal = size_;
959#else
960 data->lVal = (long)data_;
961 size->lVal = size_;
962#endif
963 // size->lVal = bfh.bfSize;
964
965 return S_OK;
966}
967
968STDMETHODIMP OpAutomation::GetScreenFrameInfo(LONG *frame_id, LONG *time) {
969 obj.GetScreenFrameInfo(frame_id, time);

Callers 1

OpGetScreenDataBmpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected