flat assembler
Message board for the users of flat assembler.
Index
> Windows > My program send fasmIDE FEM_FINDFIRST. Crash. |
Author |
|
revolution 01 Aug 2023, 05:44
Each process has a separate address space. fasmw can't access the memory of your process.
You have to create a shareable memory region and transfer the handle. |
|||
01 Aug 2023, 05:44 |
|
Roman 01 Aug 2023, 05:47
Quote:
How do this ? MapViewOfFile ? Example. What about ? Code: invoke GlobalAlloc,GMEM_MOVEABLE+GMEM_DDESHARE,1024 mov ebx,eax invoke GlobalLock,ebx |
|||
01 Aug 2023, 05:47 |
|
Roman 01 Aug 2023, 06:42
Another variant get text from fasmwIDE and search in my program word in all text.
This variant work well. Very strange fasmIDE set my text and not crash. invoke SendMessage,[FasmFeditHwnd],dword WM_SETTEXT,dword 0,myTxt myTxt db "Hi ! This is my text message to fasmwIDE.",0 |
|||
01 Aug 2023, 06:42 |
|
Roman 01 Aug 2023, 10:32
Code: ;procesTxts db "cmp ",0 ;tmpVmem_ dd 0 invoke FindWindow,'FASMW_IDE32',0 invoke GetWindowThreadProcessId,eax,tmpVmem_ ;invoke GetWindowThreadProcessId,[FasmFeditHwnd],tmpVmem_ ;mov ebx,eax invoke OpenProcess,PROCESS_ALL_ACCESS,0,[tmpVmem_] invoke WriteProcessMemory,eax,0x601266,procesTxts,4,4 ;my program crash invoke SendMessage,[FasmFeditHwnd],dword FEM_FINDFIRST,dword 0,dword 0x601266 |
|||
01 Aug 2023, 10:32 |
|
revolution 01 Aug 2023, 15:52
Roman wrote: Another variant get text from fasmwIDE and search in my program word in all text. fasmw uses custom messages so the system has no idea what data it is. |
|||
01 Aug 2023, 15:52 |
|
Ali.Z 01 Aug 2023, 19:19
Roman wrote:
sorry but WPM/RPM functions never crash/never generate exception. _________________ Asm For Wise Humans |
|||
01 Aug 2023, 19:19 |
|
revolution 01 Aug 2023, 22:19
Ali.Z wrote: sorry but WPM/RPM functions never crash/never generate exception. |
|||
01 Aug 2023, 22:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.