Giter VIP home page Giter VIP logo

Comments (4)

ufrisk avatar ufrisk commented on July 17, 2024

Can you please try

PDWORD pdwPIDs;
ULONG64 cPIDs = 0;
VMMDLL_PidList(NULL, &cPIDs);
pdwPIDs = LocalAlloc(LMEM_ZEROINIT, cPIDs * sizeof(DWORD));
VMMDLL_PidList(pdwPIDs , &cPIDs);

// or if lazy and guessing no more than 1024 pids

DWORD dwPIDs[1024] = { 0 };
ULONG64 cPIDs = 1024;
VMMDLL_PidList(dwPIDs, &cPIDs);

from memprocfs.

leolongvu avatar leolongvu commented on July 17, 2024

I have actually just found the error. The problem lies in the cPIDs. I can check that both of your initialization is Success, however when I use printf(cPIDs) it starts throwing the exception. I am looking into it since this is just an IO issue. Many thanks for your help.

Edit: I can call the function correctly now. The purpose is to test all the functions and port them to C# using interop service.

from memprocfs.

ufrisk avatar ufrisk commented on July 17, 2024

C# makes a lot of sense :) it's lots of easier for most users, it would be really nice to be able to use this in C# :)

from memprocfs.

ufrisk avatar ufrisk commented on July 17, 2024

Closing issue since it seems to be resolved.

Looking forward to the result of this. C# would be hugely helpful for a lot of people.

from memprocfs.

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.