Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Not able to create a new child process using ZwCreateProcess!

Featured Replies

Posted

I am trying to create a new process from current running process,am doing this with the zwcreateProcess function.(just for testing purpose).check the code below

 HANDLE fileHandle;
OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING InputString;
InputString.Buffer = L"C:\\users\\Tommy\\MyEXE.exe";
InputString.Length = wcslen(L"C:\\users\\Tommy\\MyEXE.exe")*2;
InputString.MaximumLength = InputString.Length +2;
ObjectAttributes.Length = sizeof(OBJECT_ATTRIBUTES);
ObjectAttirbutes.ObjectName = &InputString;
NTSTATUS status = ZwCreateProcess(&fileHandle,PROCESS_CREATRE_PROCESS,&ObjectAttributes,GetCurrentProcess(),true ,NULL,NULL,NULL);

status - Invalid Parameter

Any suggestions/help is appreciated.

Your DesiredAccess parameter is wrong. http://msdn.microsoft.com/en-us/library/ms684880%28v=VS.85%29.aspx

And maybe you didnt initializie the ObjectAttributes correctly.

i am using this:

#define InitializeObjectAttributes(p,n,a,r,s) \
{ \
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \
(p)->ObjectName = n; \
(p)->Attributes = a; \
(p)->RootDirectory = r; \
(p)->SecurityDescriptor = s; \
(p)->SecurityQualityOfService = NULL; \
}OBJECT_ATTRIBUTES ObjectAttributes;
InitializeObjectAttributes(&ObjectAttributes, 0, 0, 0, 0);

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.