| 1004 | } |
| 1005 | |
| 1006 | void CTopLevelWindow::CDWriteTextSetColor(COLORREF color) |
| 1007 | { |
| 1008 | if(os::buildNumber < os::w11_24h2) |
| 1009 | { |
| 1010 | auto text = (CDWriteText*)*((ULONG64*)this + 71);//CDWriteText This |
| 1011 | typedef void(__fastcall**** CDWriteText_SetColor)(CDWriteText*, UINT);//(***((void(__fastcall****)(ULONG64, __int64))This + 71))(*((ULONG64*)This + 71), inputVec); |
| 1012 | auto pfunCDWriteText_SetColor = ***((CDWriteText_SetColor)this + 71);//CDWriteText::SetColor(CDWriteText *this, int a2) |
| 1013 | |
| 1014 | pfunCDWriteText_SetColor(text, color); |
| 1015 | } |
| 1016 | else |
| 1017 | { |
| 1018 | auto text = (CDWriteText*)*((ULONG64*)this + 66); |
| 1019 | typedef void(__fastcall**** CDWriteText_SetColor)(CDWriteText*, UINT); |
| 1020 | auto pfunCDWriteText_SetColor = ***((CDWriteText_SetColor)this + 66); |
| 1021 | |
| 1022 | pfunCDWriteText_SetColor(text, color); |
| 1023 | } |
| 1024 | } |
| 1025 | |
| 1026 | bool CTopLevelWindow::TreatAsActiveWindow() |
| 1027 | { |
no outgoing calls
no test coverage detected