Author Topic: ASSUME it becomes a problem.  (Read 178 times)

xandaz

  • Member
  • ***
  • Posts: 468
  • I luv you babe
    • My asm examples
ASSUME it becomes a problem.
« on: October 20, 2021, 12:58:36 AM »
   Hi guys. i'm using the following code:
Code: [Select]
invoke GetWindowLong,hWnd,GWL_USERDATA
mov  edi,eax
assume edi:PTR CHARFORMAT
but then i must:
Code: [Select]
mov  [edi.CHARFORMAT.dwMask,CFM_COLORinstead of just:
Code: [Select]
mov [edi.dwMask,CFM_COLORIs this the way it is suppose to work?

HSE

  • Member
  • *****
  • Posts: 1808
  • AMD 7-32 / i3 10-64
Re: ASSUME it becomes a problem.
« Reply #1 on: October 20, 2021, 01:41:38 AM »
Code: [Select]
mov [edi].dwMask, CFM_COLOR

xandaz

  • Member
  • ***
  • Posts: 468
  • I luv you babe
    • My asm examples
Re: ASSUME it becomes a problem.
« Reply #2 on: October 20, 2021, 01:47:25 AM »
   Ahhh. So simple. I'm such an ass . Ty