How to use unmanaged functions inside process? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    haku43's Avatar Member
    Join Date
    Sep 2009
    Thanks G/R
    Trade Feedback
    0 (0%)
    0 Post(s)
    0 Thread(s)

    How to use unmanaged functions inside process?

    So i have a managed dll running inside wow process, and i have a pointer to some function.

    Now the question is how define a managed function which doesn't accept generic datatypes as parameters? Should i use integer datatype and pass an object pointer as argument?


    typedef unsigned long ( __thiscall * tCanAttack )( CGLocalPlayer_C * pThis, CGUnit_C * pOther );
    public delegate ulong CanAttackDelegate(ulong u1, ulong u2);
    public static CanAttackDelegate CanAttack;
    Looks like i should pass the reference to an object for reference types, and pass the defined sturcture for value types...
    Last edited by haku43; 04-01-2011 at 08:15 AM.

    These ads disappear when you log in.

Similar Threads

  1. [Help] How to use ASM in-process
    By teufel123 in forum WoW Memory Editing
    Replies: 12
    Last Post: 12-16-2011, 02:01 AM
  2. [question] How do i use the function dumps in the dump threads?
    By yeahlol in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 11-23-2010, 12:21 PM
  3. [Lua] how to use the mysql functions
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-22-2010, 12:54 PM
  4. [Guide] How to use local LUA function!
    By Dartignan in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 08-05-2008, 09:28 PM
  5. GUIDE: HOW TO USE TORRENTS (Look inside)
    By Hounro in forum Community Chat
    Replies: 14
    Last Post: 01-22-2007, 09:04 PM
All times are GMT -5. The time now is 08:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search