Thread: Calling function from remote dll

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    22

    Calling function from remote dll

    Hi,

    I have a program that displays a listview of items. I want to be able to grab these items from a seperate program.

    I can't just SendMessage() because it requires passing LVITEM structs.

    So, I thought maybe I could inject my own dll into the address space of the program that contains the listview and read it from in there and then pass the information back to my second program.

    1. Is this possible?
    2. if it is, how woudl you go about it? (i have already injected the dll)

    I thought maybe I could write different functions inside the dll and query those functions from my second program(is that possible? if so, how?)

    thanks for any help

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    22
    Anyone?

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    22
    Hi, thanks for the reply.

    Indeed, I stumbled upon this myself and have done what I needed to do.. but I must say, it's quite a hassle

    I've only ever had to do some small IPC stuff that was easily accomplished with SendMessage() ..

    Oh well,

    Thanks again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Calling App Functions from DLL
    By johnnie2 in forum Windows Programming
    Replies: 3
    Last Post: 03-19-2003, 01:08 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM