[C#]How to call function menu

User Tag List

Results 1 to 3 of 3
  1. #1
    RD49's Avatar Sergeant
    Reputation
    16
    Join Date
    Jun 2012
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#]How to call function

    Hey guys!

    I injected my dll into the target process.Memory Read/Write is working,but i want to call an function (example: Login Button in D3)
    Can someone help me how to call function with C# ? I injected my C# dll into D3,so should i import C++ dll and call the function from C++ dll?

    Thanks

    [C#]How to call function
  2. #2
    42TeamFisk's Avatar Private
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have been wondering this myself. Please give us a clue.

  3. #3
    DarthTon's Avatar Contributor
    Reputation
    171
    Join Date
    Apr 2010
    Posts
    108
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Example for D3::ACD::SellItem :

    Code:
    //Declare prototype delegate
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    delegate int SellitemDelegate(IntPtr _this);
    
    //Get delegate from native pointer (D3::ACD::SellItem  = 0x00A8C1A0)
    SellitemDelegate uid = (SellitemDelegate)System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer((IntPtr)0x00A8C1A0, typeof(SellitemDelegate));
    
    //Invoke
    uid((IntPtr)Item_ACDBase);

Similar Threads

  1. C# how to call a function?
    By alcor75 in forum Wildstar Memory Editing
    Replies: 7
    Last Post: 09-04-2014, 09:37 AM
  2. [General] Assembler calling function
    By streppel in forum WoW Memory Editing
    Replies: 0
    Last Post: 02-13-2011, 03:45 AM
  3. Replies: 0
    Last Post: 07-26-2010, 10:19 AM
  4. [C#] Call functions without having to declare delegates
    By bigtimt in forum WoW Memory Editing
    Replies: 12
    Last Post: 05-26-2010, 01:44 AM
  5. [Out of Process] Calling functions in the VTable.
    By cenron in forum WoW Memory Editing
    Replies: 12
    Last Post: 01-31-2009, 08:39 PM
All times are GMT -5. The time now is 12:11 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search