Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can i make user defined function accessible to all processes? (Windows CE)

How can i make user defined function accessible to all processes? (Windows CE)

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tony_Udz
    wrote on last edited by
    #1

    Hello, I want a user defined function that can be called by every process running. That is: - void HelloWorld() { MessageBox(NULL, L"Hello World", "Test", 0); } I need a mechanism by which this function can be called inside every running process.

    N 1 Reply Last reply
    0
    • T tony_Udz

      Hello, I want a user defined function that can be called by every process running. That is: - void HelloWorld() { MessageBox(NULL, L"Hello World", "Test", 0); } I need a mechanism by which this function can be called inside every running process.

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      tony_udz wrote:

      I need a mechanism by which this function can be called inside every running process.

      Write your funtion in the DllMain() of a dll and inject it to the process you need using CreateRemoteThread() API. For more details see Three Ways to Inject Your Code into Another Process[^]

      nave [OpenedFileFinder]

      T 1 Reply Last reply
      0
      • N Naveen

        tony_udz wrote:

        I need a mechanism by which this function can be called inside every running process.

        Write your funtion in the DllMain() of a dll and inject it to the process you need using CreateRemoteThread() API. For more details see Three Ways to Inject Your Code into Another Process[^]

        nave [OpenedFileFinder]

        T Offline
        T Offline
        tony_Udz
        wrote on last edited by
        #3

        Thanks! for your reply. In Windows CE CreateRemoteThread() API is not supported. I have tried out many options but could not find a way to inject DLL.

        N 1 Reply Last reply
        0
        • T tony_Udz

          Thanks! for your reply. In Windows CE CreateRemoteThread() API is not supported. I have tried out many options but could not find a way to inject DLL.

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          I found this link..May be useful for you http://forum.xda-developers.com/archive/index.php/t-235792.html[^]

          nave [OpenedFileFinder]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups