Download win32-loader package ("Lenny"):
http://mirrors.kernel.org/debian/pool/main/w/win32-loader/win32-loader_0.6.10_all.deb

Extract systeminfo.dll from win32-loader package via 7-Zip:
7z e win32-loader_0.6.10_all.deb data.tar.gz
7z e data.tar.gz
7z e -r data.tar win32-loader.exe
7z e -r win32-loader.exe systeminfo.dll

Execute the following command on Windows 98 Second Edition:
C:\win32-loader> getfunc systeminfo.dll hostname
LoadLibrary of systeminfo.dll failed: 0x0000001F

=> I conclude that the problem just went through unrecognized for
previous versions of the win32 loader package.

The "g_stringsize" oddity is not needed. The code could be rewritten as below.
Another option is that you call the Win32 API functions
and determine the CPU architecture via the System plugin.
[http://forums.winamp.com/showthread.php?postid=2554554#post2554554]
As a consequence you won't need a win32 loader NSIS plugin.

...

char buf[1024];

void computername (COMPUTER_NAME_FORMAT format, HWND hwndParent, int
string_size, char *variables, stack_t **stacktop, extra_parameters
*extra)
{
        EXDLL_INIT();
        BOOL result;
        DWORD dwStringSize = sizeof(buf) / sizeof(*buf);
        typedef BOOL (WINAPI *pfGCNE)(COMPUTER_NAME_FORMAT, LPTSTR, LPDWORD);
        pfGCNE GetComputerNameExFunc = (pfGCNE)
GetProcAddress(GetModuleHandleA("kernel32.dll"),
"GetComputerNameExA");

        if (GetComputerNameExFunc)
        {
                result = GetComputerNameExFunc(format, buf, &dwStringSize);
        }
        else
        {
                if (ComputerNameDnsHostname == format)
                {
                        result = GetComputerNameA(buf, &dwStringSize);
                }
                else
                {
                        result = 0;
                }
        }
        pushstring(buf);
        wsprintf(buf, "%u", result);
        pushstring(buf);
}



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to