I was going to bump my previous thread, but then I realized that its title was misguided, so many people would ignore it.
My request is now slightly become more guided.
What I have is an NPAPI plugin DLL.
In order to make it useful, it needs to be possible to change values in this DLL through an external program.
I can change almost all of the required variables using a hex editor, but I can not find the values for MIME type, file version, file extensions, description, etc... They must be easy to access, since the web browser and OS reads that kind of stuff routinely.
The other string, which I could find and succesfully change with the result of instant alteration of the program, says "Cube\Cube.exe".
Help would be appreciated.
Download for the DLL is here:
http://crumbsoftware.f2o.org/files/npPlugin.dll
This is the resource script that I am using, which contains the magical values:
Edit:
Aha! ResHacker.
It looks like I can call ResHacker through the command line, which is good.
Is there any code for B3d, or command line tool, that allows me to modify a string in a compiled file? (The task done above by a hex editor).
Actually... I'm having trouble running ResourceEditor through the command line. Are there any good alternatives?
My request is now slightly become more guided.
What I have is an NPAPI plugin DLL.
In order to make it useful, it needs to be possible to change values in this DLL through an external program.
I can change almost all of the required variables using a hex editor, but I can not find the values for MIME type, file version, file extensions, description, etc... They must be easy to access, since the web browser and OS reads that kind of stuff routinely.
The other string, which I could find and succesfully change with the result of instant alteration of the program, says "Cube\Cube.exe".
Help would be appreciated.
Download for the DLL is here:
http://crumbsoftware.f2o.org/files/npPlugin.dll
This is the resource script that I am using, which contains the magical values:
// Microsoft Visual C++ generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winresrc.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (U.S.) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x40004L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", " " VALUE "FileDescription", "Grasshopper Browser Plugin" VALUE "FileExtents", "bic" VALUE "FileOpenName", "npPlugin" VALUE "FileVersion", "1, 0, 0, 0" VALUE "InternalName", "npPlugin" VALUE "LegalCopyright", "Copyright © 2005" VALUE "MIMEType", "application/testPlugin" VALUE "OriginalFilename", "npPlugin.dll" VALUE "ProductName", "Grasshopper_Plugin" VALUE "ProductVersion", "1, 0, 0, 0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1252 END END #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#include ""winresrc.h""\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED #endif // English (U.S.) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED
Edit:
Aha! ResHacker.
It looks like I can call ResHacker through the command line, which is good.
Is there any code for B3d, or command line tool, that allows me to modify a string in a compiled file? (The task done above by a hex editor).
Actually... I'm having trouble running ResourceEditor through the command line. Are there any good alternatives?