Well, i open a file in my .EXE file. I declare .data? filehandle dd ? then i install a system hook (from a DLL) and i want to USE this "filehandle" to write info to this opened file. At this time it fails ... :( I compile .EXE & .DLL with "/SECTION:.bss,S" and define "filehandle dd?" in both .data? (.EXE & .DLL) section. Whats wrong? thx.
The file handle cannot be shared across processes. You can create an alias handle with DuplicateHandle that can be sent to a target process.