How to inject some routine into my application from outside RRS feed

  • Question

  • i want to inject some routine into my application from outside. how it is possible ?

    also how to call that routine from my application ?

    if possible share some sample code. thanks

    Thursday, May 2, 2019 8:29 PM


All replies

  • Hello,

    Please be more specific;

    What kind of routine and where does it come from.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Thursday, May 2, 2019 8:35 PM
  • The easy way is to use SetWindowsHookEx to inject a DLL into the other process.  There are some other methods, but many of them will be trapped as malware by antivirus products.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    • Marked as answer by Sudip_inn Tuesday, May 7, 2019 2:14 PM
    Friday, May 3, 2019 6:14 AM
  • Hi Sudip_inn,

    Thank you for posting here.

    Could you describe your problem more clearly?

    You also could take a screenshot for your requirement and upload the images in our forum directly so that I can do further analysis based on the question.

    We are waiting for your update.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, May 3, 2019 8:30 AM