EnumVisibleObjects filter argument menu

User Tag List

Results 1 to 3 of 3
  1. #1
    alex_v's Avatar Member
    Reputation
    1
    Join Date
    Aug 2015
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EnumVisibleObjects filter argument

    How to narrow EnumVisibleObjects using second, argument, named "filter" in this thread?
    http://www.ownedcore.com/forums/worl...managment.html ([WoW][3.2.0] Better Object Managment)
    I have tried passing different values, nothing happens, it just iterates everything.
    Looks like EnumVisibleObjects just passes it to callback and that is all, nothing else.
    Code:
    signed int __cdecl EnumVisibleObjects(int (__cdecl *a1)(_DWORD, _DWORD, _DWORD), int whyCallItFilter)
    {
      int v2; // eax@1
      int v3; // esi@1
      int v4; // ebx@3
    
      v3 = *(_DWORD *)(*MK_FP(__FS__, 44) + 4 * TlsIndex);
      v2 = *(_DWORD *)(*(_DWORD *)(v3 + 8) + 172);
      if ( !(v2 & 1) && v2 )
        v4 = *(_DWORD *)(*(_DWORD *)(v3 + 8) + 172);
      else
        v4 = 0;
      while ( !(v4 & 1) && v4 )
      {
        if ( !a1(*(_DWORD *)(v4 + 48), *(_DWORD *)(v4 + 52), whyCallItFilter) )
          return 0;
        v4 = *(_DWORD *)(v4 + *(_DWORD *)(*(_DWORD *)(v3 + 8) + 164) + 4);
      }
      return 1;
    }
    3.3.5.12340

    EnumVisibleObjects filter argument
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes that's how it works. It's arbitrary argument (I think blizz call it "param" or something), you can pass anything that fits, and then use that value in callback. You can use it to say find first n object(s) that match some criteria by implementing that logic in your callback.
    Code:
    Function       : static, [000B0D30][0001:000AFD30], len = 00000085, int __fastcall ClntObjMgrEnumVisibleObjects(int (__fastcall*)(unsigned __int64,void *),void *)
                     Function attribute:
                     Function info:
    FuncDebugStart :   static, [000B0D39][0001:000AFD39]
    FuncDebugEnd   :   static, [000B0DB1][0001:000AFDB1]
    Data           :   enregistered ecx, Param, Type: function  *, handler
    Data           :   enregistered edx, Param, Type: void *, param
    Data           :   VFrame Relative, [FFFFFFFC], Local, Type: int, success
    This is from pdb dump of ancient wow alpha build. As you can see first argument named "handler" is function pointer, and second one named "param" has a type of "void *".

  3. #3
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Just think of it as lParam as used in various Windows functions, ie. EnumWindows.

Similar Threads

  1. Get passed computer filters VERY easily!
    By Xestrikers in forum Gaming Chat
    Replies: 2
    Last Post: 04-18-2007, 10:30 PM
  2. new smudge / filter only sig o.O
    By zephil in forum Art & Graphic Design
    Replies: 4
    Last Post: 03-24-2007, 10:49 AM
  3. how to bypass MOST school filtering [PICS]
    By WTF LOL in forum Community Chat
    Replies: 14
    Last Post: 03-23-2007, 11:42 PM
  4. WPE Filters for All Classes
    By Örpheus in forum World of Warcraft Bots and Programs
    Replies: 28
    Last Post: 12-05-2006, 02:19 PM
  5. Funny profanity filter words (contains ALOT on swear words)
    By Marlo in forum World of Warcraft General
    Replies: 23
    Last Post: 08-30-2006, 05:45 PM
All times are GMT -5. The time now is 10:04 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search