Re: wsh API Toolkit actX object, resurrected (take 2)...



Kevin Myers wrote:
Would you mind relating how you solved this problem, or perhaps be willing
to provide the new source code or a source code excerpt?


Kevin, I didn't solve the "Data Execution Prevention" (D.E.P.)
problem, microsoft solved it for me. If you search msdn, you
can find the fix.

In short, it amounts to this: instead of creating your machine
language instructions in a normal data array, you allocate some
memory from "the heap", and set a flag indicating that the
memory will be used for instruction execution. It's a bit of
additional hassle, but works as advertised. You then just go
ahead and create your machine language api calling sequence in
the memory that allows for instruction execution.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)

.



Relevant Pages

  • Re: Broadcom 440x NIC not recognized on boot
    ... I am attempting to add support for the built-in network device in my ... dmesg output now indicates the card is recognized, ... And it ain't getting the register memory it needs, ... The source code also refers to PCI assigning the memory block, ...
    (freebsd-questions)
  • Re: string literal is an lvalue; other literals are rvalues.
    ... >If I have a literal 5 in my source code it begins life as an ascii ... character set in which your program is written is ASCII. ... occupy what memory. ... const int x = 625; ...
    (comp.lang.cpp)
  • Re: sort(1) memory usage
    ... A quick check in the source code indicates that it tries to size this buffer ... according to how much memory the system has (and according to any limits set ... In the immortal words of Blazing Star: YOU FAIL IT ... Count this as a vote for ditching GNU sort in favor of a BSD-licensed ...
    (freebsd-hackers)
  • Re: Error with Memory Mapped File
    ... I has downloaded your source code for Memory Mapped File. ... uint lastError = MemoryMappedFileHelper.GetLastError; ... When I continue my app to get some bytes from mapped memory, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: GC performance - GC fragility
    ... A compiler does a job that never changes - it translates source code ... manage memory deallocations for me). ... That's a lot like saying that a graphics card can't work because it can't ...
    (borland.public.delphi.non-technical)