flat assembler
Message board for the users of flat assembler.

Index > Windows > win 10 how get 16 bytes from another window ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 17 Dec 2020, 13:07
I want get value from another window to my window.
But another window crash, because write in my data Rect

Its help ?
section '.bss' readable writeable executable pageable
Rect rb 16
Post 17 Dec 2020, 13:07
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 17 Dec 2020, 13:09
I try:
Code:
     
     invoke  GlobalAlloc,GMEM_MOVEABLE,1024
     invoke  GlobalLock,rax
     push rax
     invoke     SendMessage,[FEDITHwnd],dword FEM_GETPOS,  rax,0
     pop rax
    


But this not help. FEDITHwnd still crash

Strange why not crash invoke SendMessage,[FEDITHwnd],WM_GETTEXT, 0,MyTextData
But crash invoke SendMessage,[FEDITHwnd],FEM_GETPOS, MyPosData,0
Post 17 Dec 2020, 13:09
View user's profile Send private message Reply with quote
bazizmix



Joined: 15 Jan 2016
Posts: 51
bazizmix 17 Dec 2020, 15:21
You try send to 32-bit dll from 64-bit program
Post 17 Dec 2020, 15:21
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2598
Furs 17 Dec 2020, 16:52
What is FEM_GETPOS? Since it's not a Windows builtin message, you have to do marshalling yourself for pointers.
Post 17 Dec 2020, 16:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.