SNsdk on WinNT ?

Xavier Nodet xavier.nodet@free.fr
Thu Dec 14 00:07:00 GMT 2000


From: sourcenav-owner@sources.redhat.com
> [ mailto:sourcenav-owner@sources.redhat.com]On Behalf Of
> Niels Skou Olsen
> Sent: jeudi 14 décembre 2000 08:11
> To: sourcenav@sources.redhat.com
> Subject: Re: SNsdk on WinNT ?
>
> marta.stojanovic@nrc.ca writes:
>
>
> I wonder which file it cannot find. If only the error
> message had printed
> the first two arguments to CreateProcess(), the problem
> would be easier to
> narrow down.

Here is the definition of this function.

CreateProcessA(
    LPCSTR lpApplicationName,
    LPSTR lpCommandLine,
    LPSECURITY_ATTRIBUTES lpProcessAttributes,
    LPSECURITY_ATTRIBUTES lpThreadAttributes,
    BOOL bInheritHandles,
    DWORD dwCreationFlags,
    LPVOID lpEnvironment,
    LPCSTR lpCurrentDirectory,
    LPSTARTUPINFOA lpStartupInfo,
    LPPROCESS_INFORMATION lpProcessInformation
    );

I traced snsdk.exe and found the following arguments for
the first call to this function (it crashes in this function) :

- the return address (next instruction to execute
after returning from the function) is at 0x12ff01

- lpApplicationName is a null pointer

- lpCommandLine is buggy. It points to this string :
"..^Hinhyper.exe FILES\SN452\BIN\SNSDK.exe" toto"
with ^H being the backspace char.

Explanations are that my snsdk.exe is in
d:\Program Files\SN452\bin, and that I gave it toto
as a first argument (script to execute)

- The next two arguments (lpProcessAttributes and
lpThreadAttributes) are null pointers, bInheritHandles
is true, dwCreationFlags is 0, lpEnvironment is null,
lpCurrentDirectory is null,

- lpStartupInfo and lpProcessInformation seem
to have reasonable values (that is, they point to
a location that seems be in the program's memory).

Unfortunately, I have not enough knowledge of the
Windows API, nor time, to do much more...

Hope this will help,

--
Xavier Nodet



More information about the Sourcenav mailing list