Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    simranwsingh's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    3
    My Mood
    Amused

    Change Window Names

    So, as you guys know that aIW has now added some sort of Anti-Cheat, one feature is changing the Window names.



    Well, using this stops you from doing stuff to the game....

    So using some Win API's you can change the name of the Game Windows.



    I used .NET to change the names, while the API's also work in C/CLI/C++

    As you see that the MW2 Game Window isn't changed, the reason being that the MW2 Window is a Child Window to the Parent Window(Console Window), I'm working to get that work..

    This is my code:
    Code:
    Imports System.RuntimeInteropServices
    
    Public Class Changer
    
        Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Integer, ByVal lpString As String) As Integer
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            Dim procList() As Process = Process.GetProcessesByName("iw4mp") 'Gets the Process, But only the Parent Window
            Dim p As Process
            Dim hwnd As Integer
            For Each p In procList
                hwnd = p.MainWindowHandle 'Gets The Main Handle
            Next
            SetWindowText(hwnd, "IW4 Console") 'Changes Text
        End Sub
    End Class
    The steam_api.dll also uses these API's Which are in C++

    I looked at the dll in IDA Pro and found this


    These are Win API's And, also looking at the dll in a decompiler I found this

    Code:
    public private: static void __gc* modopt(CallConvCdecl __gc*) ResetWindowTitle()
    {
        HWND__ __gc** hwnd__Ptr = <Module>::FindWindowA(0x6f396c, 0);
        if (hwnd__Ptr != 0)
        {
            <Module>::SetWindowTextA(hwnd__Ptr, 0x7859c0);
        }
    }
      VB.NET Translated Version:
    Friend Shared Sub ResetWindowTitle()
        Dim hwnd__Ptr As HWND__* = <Module>.FindWindowA(&H6F396C, Nothing)
        If (Not hwnd__Ptr Is Nothing) Then
            <Module>.SetWindowTextA(hwnd__Ptr, &H7859C0)
        End If
    End Sub
    SetWindowTextA is the same API I use to change the Window Title.
    FindWindowA is an API to find a specific Window.

    The game starts of with normal names but since it loads the steam_api.dll it changes the Window title. So, when the game starts with normal names then the dll uses FindWindowA to find the game's title the changes it.

    -- Simran

  2. The Following 3 Users Say Thank You to simranwsingh For This Useful Post:

    ♪~ ᕕ(ᐛ)ᕗ (08-11-2010),deoxyribonucleicacid (08-09-2010),jabbathehutt (08-09-2010)

  3. #2
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    Wow this looks promising. Kinda pissed at this cuz theres gunna b more hackers -.- o well gj

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  4. #3
    simranwsingh's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    3
    My Mood
    Amused
    Quote Originally Posted by stoshy View Post
    Wow this looks promising. Kinda pissed at this cuz theres gunna b more hackers -.- o well gj
    Well, I really didn't make this for hackers, but for the coders here to just to test apps. I don't use hacks but I just code.. I needed this to use my apps. So I thought maybe it can be useful here for the coders...

  5. #4
    shahin7777's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Some where with a lot of hot chicks!
    Posts
    671
    Reputation
    6
    Thanks
    427
    My Mood
    Angelic
    Nice!
    Hacking time!!!

  6. #5
    airbag's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Philadelphia, PA
    Posts
    256
    Reputation
    10
    Thanks
    36
    My Mood
    Bored
    Nice job. I'm just going to wait for this code to be put into a nice and neat application...lol.

  7. #6
    zSOO D0PEz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    nice job (:

  8. #7
    Kakerzone's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    102
    Reputation
    10
    Thanks
    7
    My Mood
    Worried
    Thank you.

  9. #8
    deoxyribonucleicacid's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    The Great White North
    Posts
    53
    Reputation
    19
    Thanks
    36
    I was just looking into that today. Thanks a ton

  10. #9
    0rbit's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Ireland.
    Posts
    212
    Reputation
    15
    Thanks
    724
    My Mood
    Amused
    That's cool but it would be much easier (and cleaner) to just get the handle of iw4mp.dat, rather than get iw4mp -> change title -> search title -> get handle.

    I read all PMs and VMs.
    If you add me on MSN, PM me here so I know who you are, or I will not accept.

    Free Trainer Template: Want this trainer template with your name on it? PM me. (I ain't using it)
    My Stuffs: IWIFix v1.11 | HLoad v1.00b | MW2Hack v1.0 Final | [Tut] Ingame Console/Textbox in DirectX
    Current status: Being awesome.. Duh

  11. #10
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive
    Yep,
    0rbit is right. No need to make this so difficult. But anyway, thanks.

  12. #11
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    I agree with the application thing, I'd just put this with a simple GUI for the noobs who don't feel like doing it themself

    Ex Middleman

  13. #12
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    Quote Originally Posted by Insane View Post
    I agree with the application thing, I'd just put this with a simple GUI for the noobs who don't feel like doing it themself
    if he was an expert, im shure he wudve done it. he didnt rly make it, he jus found it and he is sharing it with us

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  14. #13
    simranwsingh's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    3
    My Mood
    Amused
    Quote Originally Posted by stoshy View Post


    if he was an expert, im shure he wudve done it. he didnt rly make it, he jus found it and he is sharing it with us
    No, I wrote it myself and now I'm trying to get the game window name changed, the only problem is that I can't no longer use this Win API to stop it. I must do some HEX editing and use ASM in the steam_api.dll to stop the function from passing through, Then I can use the API again.


    Quote Originally Posted by 0rbit View Post
    That's cool but it would be much easier (and cleaner) to just get the handle of iw4mp.dat, rather than get iw4mp -> change title -> search title -> get handle.
    What do you mean? It gets the MainHandle of the process and then Just changing the Title it doesn't search for the title again, and also doesn't get the handle again. It only 2 steps instead of 4 that you stated. And if you mean just to the handle once from iw4mp and then just change, the processID changes every time the process opens.
    Last edited by simranwsingh; 08-10-2010 at 12:26 PM.

  15. #14
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    lol sry for my misleading assumptions :P yea, then i agree with insane and 0rbit gj anwayz

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  16. #15
    0rbit's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Ireland.
    Posts
    212
    Reputation
    15
    Thanks
    724
    My Mood
    Amused
    Quote Originally Posted by Stoshy View Post


    if he was an expert, im shure he wudve done it. he didnt rly make it, he jus found it and he is sharing it with us
    That's a bit unfair. He put this in the Coding section, not a preview or releases section. All he is obliged to do is share the source code. For anyone that wants to do it, he has provided all the necessary information to do so. Whether he codes it as a full GUI app or not does not make him an "expert" or otherwise.

    Quote Originally Posted by simranwsingh View Post
    What do you mean? It gets the MainHandle of the process and then Just changing the Title it doesn't search for the title again, and also doesn't get the handle again. It only 2 steps instead of 4 that you stated. And if you mean just to the handle once from iw4mp and then just change, the processID changes every time the process opens.
    Yeah I was a bit...out of it when I wrote that
    Either way it would be still better to just get the iw4mp.dat handle.

    I read all PMs and VMs.
    If you add me on MSN, PM me here so I know who you are, or I will not accept.

    Free Trainer Template: Want this trainer template with your name on it? PM me. (I ain't using it)
    My Stuffs: IWIFix v1.11 | HLoad v1.00b | MW2Hack v1.0 Final | [Tut] Ingame Console/Textbox in DirectX
    Current status: Being awesome.. Duh

Page 1 of 2 12 LastLast

Similar Threads

  1. [HOWTO] Change the name of the window
    By ♪~ ᕕ(ᐛ)ᕗ in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 7
    Last Post: 10-29-2010, 09:08 AM
  2. [Tutorial] How to change Windows XP Start-up Screen
    By HazedUp in forum Programming Tutorials
    Replies: 5
    Last Post: 05-03-2009, 06:12 PM
  3. COD4 - Change your name to ANYTHING you want ingame
    By icuigorz in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 3
    Last Post: 07-11-2008, 11:48 AM
  4. Replies: 20
    Last Post: 07-01-2008, 02:19 AM
  5. changeing my name
    By Gourav2122 in forum General
    Replies: 18
    Last Post: 08-22-2007, 09:25 PM