Giter Site home page Giter Site logo

Comments (8)

Broihon avatar Broihon commented on May 24, 2024 2

Forgot to remove the old function prototype from the header. GetDownloadProgress is deprecated (though still works). Instead use GetDownloadProgressEx (see updated ReadMe).
GetSymbolState and GetImportState will only return successfully after the download is finished. There's no need to check the download progress to verify if everything's ready. All the required prototypes are defined in Injection.h. You don't have to manually declare any prototypes (unless you want to use the deprecated GetDownloadProgress function).

Edit: discovered a stupid bug which caused the downloads not to start even after calling StartDownload. See ReadMe for working code.

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024 1

All the error codes are defined in Error.h. Error code 0x47 means that you're missing "GH Injector SM - x86.exe".
Build it and put in the correct directory.

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024

I won't change the function to an integer since a floating point value makes significantly more sense because it provides more precise information.
It however should be possible to use it in VB regardless. How are you declaring the function prototype?

from gh-injector-library.

Broihon avatar Broihon commented on May 24, 2024

Closing this since it's not an issue.

from gh-injector-library.

DestroyerDarkNess avatar DestroyerDarkNess commented on May 24, 2024

Hello, try to do it from C ++ and it doesn't work.

auto GetDownloadProgress = (f_GetDownloadProgress)GetProcAddress(hInjectionMod, "GetDownloadProgress");

This is what I am using to get the progress of the download, obviously I call "StartDownload" first and then I call GetdownloadProgress, but a large negative number returns me. In the end I have to trust is GetSymbolState and GetImportState to know that the download end.


By the way in the Header of Injection, which I place as an example, you put as a comment:

auto GetDownloadProgress = (f_GetDownloadProgress)GetProcAddress(hInjectionMod, "GetDownloadProgress");

But you declare this:

using f_GetDownloadProgressEx = float(__stdcall *)(int index, bool bWow64);

Should there be something like this? :

typedef float(*f_GetDownloadProgress);

I don't know if I'm wrong. But what is and how it is used: f_GetDownloadProgressEx ??

from gh-injector-library.

DestroyerDarkNess avatar DestroyerDarkNess commented on May 24, 2024

Thank you for responding as fast Bro, as always thanks for this great library.

from gh-injector-library.

DestroyerDarkNess avatar DestroyerDarkNess commented on May 24, 2024

Hello, Sorry to re-open again. I have a question and I don't know if the error is on me;

When I am downloading the symbols in x64 mode, GetImportState, it stays in an eternal loop with a value of 71. Instead with x86 the value if it changes to 0.

(This only happened when the symbols are downloaded)

UnFix

Any ideas ?

from gh-injector-library.

DestroyerDarkNess avatar DestroyerDarkNess commented on May 24, 2024

Now it works, thanks. :)

from gh-injector-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.