Read the Windows Registry from Chrome Extension

1.4k views Asked by At

I built a browser extension with Firebreath a couple of years ago, but now I realized that it isn't working anymore on Chrome because it doesn't support NPAPI anymore.

The extension reads the Windows Registry and returns a value.

Does anyone know what can I use to do the same in Chrome these days?

EDIT: After hours of work, I'm able to run the extension and the host app, but everytime I try to receive data, I get undefined.

This is my code:

int main(int argc, char* argv[]) {
    char message[] = "{\"t\": \"t\"}";

    unsigned int len = strlen(message);
    _setmode(_fileno(stdout), _O_BINARY);
    _setmode(_fileno(stdin),  _O_BINARY);

    printf("%c%c%c%c", (char) 10, (char) 0, (char) 0, (char) 0);

    printf("%s", message);

    return 0;
}

What am I doing wrong?

1

There are 1 answers

2
taxilian On

Native Messaging is the only thing that would be able to do what you want.