Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

If graphics hackers are so smart, why can't they get the bugs out of fresh paint?


devel / comp.os.ms-windows.programmer.win32 / Kernel32 CreateProcess problem9s)

SubjectAuthor
* Kernel32 CreateProcess problem9s)R.Wieser
`* Re: Kernel32 CreateProcess problem9s)JJ
 `- Re: Kernel32 CreateProcess problem9s)R.Wieser

1
Kernel32 CreateProcess problem9s)

<uv5heb$r81m$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1211&group=comp.os.ms-windows.programmer.win32#1211

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Kernel32 CreateProcess problem9s)
Date: Wed, 10 Apr 2024 10:08:11 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uv5heb$r81m$1@dont-email.me>
Injection-Date: Wed, 10 Apr 2024 08:08:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4f06182d33449eb764b45b50682db1a6";
logging-data="892982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cfy0hSI3/43+EDtvyEos/ItZPj3f3p3tBPlTBf3/B7g=="
Cancel-Lock: sha1:jsRFq3tIGMyLwoj9+ExfMOKUQXY=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Priority: 3
 by: R.Wieser - Wed, 10 Apr 2024 08:08 UTC

Hello all,

On XPsp3:

I'm trying to use Kernel32's "CreateProcess" to run executable stuff, and
have a problem : I'm only providing the commandline (lpApplicationName is
NULL), and although it works well enough for an executable (and a .BAT file,
rather unexpected), it balks when I supply it a .VBS file.

OK, that is to be expected, as a .VBS file isn't an application (but why
than is a .BAT file accepted? The application for it is CMD.EXE).

So, I use Kernel32's "FindExecutable" to find the application. And that
works. For the above .VBS file "wscript.exe" is returned (with its full
path).

.... one problem though : In the registry I've added some of the "//xxx"
arguments, and those do not come back with it. Nor is the "ScriptEngine"
keys value returned (to indicate either a .VBS or .JS script)

And not including such information in my CreateProcess call creates
problems. :-(

Question:
What DLL methods are available to retrieve such information ?

Regards,
Rudy Wieser

Re: Kernel32 CreateProcess problem9s)

<4nj3txfv2790$.8h9fv5a6ss6w$.dlg@40tude.net>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1212&group=comp.os.ms-windows.programmer.win32#1212

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: jj4public@outlook.com (JJ)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Kernel32 CreateProcess problem9s)
Date: Thu, 11 Apr 2024 01:32:30 +0700
Organization: To protect and to server
Message-ID: <4nj3txfv2790$.8h9fv5a6ss6w$.dlg@40tude.net>
References: <uv5heb$r81m$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="4173131"; posting-host="gexBxgabm6/s1PmHsFUEOQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: 40tude_Dialog/2.0.15.84
X-Notice: Filtered by postfilter v. 0.9.3
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Wed, 10 Apr 2024 18:32 UTC

On Wed, 10 Apr 2024 10:08:11 +0200, R.Wieser wrote:
> Hello all,
>
> On XPsp3:
>
> I'm trying to use Kernel32's "CreateProcess" to run executable stuff, and
> have a problem : I'm only providing the commandline (lpApplicationName is
> NULL), and although it works well enough for an executable (and a .BAT file,
> rather unexpected), it balks when I supply it a .VBS file.

Because the kernel uses the `PATHEXT` environment variable. Similar to how
it uses the `PATH` and other environment variables.

Re: Kernel32 CreateProcess problem9s)

<uv8511$1j0pr$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1213&group=comp.os.ms-windows.programmer.win32#1213

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Kernel32 CreateProcess problem9s)
Date: Thu, 11 Apr 2024 09:54:54 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uv8511$1j0pr$1@dont-email.me>
References: <uv5heb$r81m$1@dont-email.me> <4nj3txfv2790$.8h9fv5a6ss6w$.dlg@40tude.net>
Injection-Date: Thu, 11 Apr 2024 09:55:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="24e9710e4145557e4b4d25a6d5f3ed35";
logging-data="1671995"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WxJo+C2uQX4M224Xz8kt3COiI+m60Dn2gkkDIH7QceQ=="
Cancel-Lock: sha1:x9lzLbl7JXuW+AQVTFhnBtkNKEM=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Thu, 11 Apr 2024 07:54 UTC

JJ,

>> ... it works well enough for an executable ..., it balks when
>> I supply it a .VBS file.

> Because the kernel uses the `PATHEXT` environment variable. Similar
> to how it uses the `PATH` and other environment variables.

I'm afraid you'll need to explain that to me.

On my 'puter .VBS is definitily included in there.

And yes, I too thought that anything in there would be recognised and
executed. It turns out I was wrong. :-\

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor