| 770 | } |
| 771 | |
| 772 | Surface *GetSurface() |
| 773 | { |
| 774 | if (nullptr == data) |
| 775 | return nullptr; |
| 776 | |
| 777 | auto result = ApiInvoker<"SurfaceControl::GetSurface">()(data); |
| 778 | |
| 779 | return reinterpret_cast<Surface *>(reinterpret_cast<size_t>(result.pointer) + sizeof(std::max_align_t) / 2); |
| 780 | } |
| 781 | |
| 782 | types::StrongPointer<void> GetParentingLayer() |
| 783 | { |