Game's Single Intance bypass

Hello I'm new in VB, I have successfully embedding external application in my form now my problem is the game "Growtopia" have security it can only run in single instance... now I'm looking for an answer that is it can possible I can bypass the game's single instance thing? Hope you can help me.

 Dim p As Process
        Dim matches() As Process = Process.GetProcessesByName("Growtopia")
        If matches.Length = 0 Then
            p = Process.Start("Growtopia")
            p.WaitForInputIdle()
        Else
            p = matches(0)
        End If
        SetParent(p.MainWindowHandle, Panel1.Handle)
        ShowWindow(p.MainWindowHandle, SW_MAXIMIZE)

Open in new window

juvilux jetstudentAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
There is no single "standard" way that programs use to prevent multiple instances.  Without knowing the technique that Growtopia uses it would be hard to work around it.  

Many programs just check if the same named EXE is already running, and sometimes have multiple copies of the same EXE with different names can work.  Easy to try.

More often though these is something on disk, in the registry, or in memory that is created / set that the EXE will check at startup, and if it determines from that there is already another instance running, the second one will exit.

Doing a quick search you may find some other folks that have solved this problem...



»bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.