+- +-


Welcome, Guest.
Please login or register.

Login with your social network

Forgot your password?


Total Members: 134
Latest: jemes petrick
New This Month: 0
New This Week: 0
New Today: 0
Total Posts: 170
Total Topics: 99
Most Online Today: 3
Most Online Ever: 677
(September 13, 2022, 10:57:19 am)
Users Online
Members: 0
Guests: 1
Total: 1

Author Topic: Hi zwclose7. How to create process by using NT apis?  (Read 387 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Hi zwclose7. How to create process by using NT apis?
« on: May 31, 2021, 11:19:57 am »
What i want to do is creating a process under a Directory Handle.

Something like
Code: [Select]
dir_file df(L"working");
nt_process proc(at(df),L"a.exe",args,environ,{.in=in(),.out=out(),.err=err()});
Because this can prevent TOCTOU security vulnerability and avoids all kinds of path searching.


But NtCreateUserProcess/RtlCreateUserProcess does not provide functionalities to create a process with a directory handle.

This is reactos' source code, but I do not know how to correctly set it up.

Any suggestions on how to correctly do this?

BTW, I want to support windows 2000 and windows xp.

You can join fast_io's discord if you can answer my questions in details.


  • Administrator
  • Full Member
  • *****
  • Posts: 155
  • I love anime and science!
    • View Profile
    • My blog
Sorry, I am not coding anymore.


+-Recent Topics

Why Should We Use An Opensea Clone To Begin Your Crypto Business by jemes petrick
September 27, 2022, 07:43:26 pm

Latest NFT Marketplace Trends by jemes petrick
September 23, 2022, 06:24:09 pm

OpenSea Clone Script on Various Blockchains by jemes petrick
September 12, 2022, 07:40:43 pm

Hi zwclose7. How to create process by using NT apis? by zwclose7
June 01, 2021, 03:09:52 pm

Poison of the Day by zwclose7
March 16, 2020, 06:45:08 pm

Native API tutorial by hMihaiDavid
January 08, 2019, 02:11:02 am

The properties of GP nerve agent by xchg
October 19, 2018, 07:40:57 pm

A new route of synthesis for G-series agents by Basquyatti
October 15, 2018, 06:12:57 am

Synthesis of Methylisobutylcarbinylsarin (GH) by APC process by Basquyatti
October 14, 2018, 07:55:33 am

Synthesis conventional of Sarin by Basquyatti
October 02, 2018, 07:57:32 am