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

Method GetScreenData

libop/com/OpAutomation.cpp:927–937  ·  view source on GitHub ↗

返回截图内存地址,x64 下不能用 LONG,否则高位会被截断。

Source from the content-addressed store, hash-verified

925
926// 返回截图内存地址,x64 下不能用 LONG,否则高位会被截断。
927STDMETHODIMP OpAutomation::GetScreenData(LONG x1, LONG y1, LONG x2, LONG y2, LONGLONG *ret) {
928 if (!ret)
929 return E_POINTER;
930 SetOutValue(ret, 0LL);
931 size_t data_ = 0;
932 long capture_ret = 0;
933 obj.GetScreenData(x1, y1, x2, y2, &data_, &capture_ret);
934 if (!capture_ret)
935 return S_OK;
936 return SetOutValue(ret, static_cast<LONGLONG>(data_));
937}
938
939STDMETHODIMP OpAutomation::GetScreenDataBmp(LONG x1, LONG y1, LONG x2, LONG y2, VARIANT *data, VARIANT *size,
940 LONG *ret) {

Callers 1

OpGetScreenDataFunction · 0.45

Calls 1

SetOutValueFunction · 0.85

Tested by

no test coverage detected