Calling function from remote dll

This is a discussion on Calling function from remote dll within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have a program that displays a listview of items. I want to be able to grab these items ...

  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, 04:06 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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, 02:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21