티스토리 뷰

/*++

Routine Description:

This routine creates a system process object. A system process

has an address space that is initialized to an empty address space

that maps the system.

The process inherits its access token and other attributes from the

initial system process. The process is created with an empty handle table.

Arguments:

ProcessHandle - Returns the handle for the new process.

DesiredAccess - Supplies the desired access modes to the new process.

ObjectAttributes - Supplies the object attributes of the new process.

 

Return Value:

TBD

--*/                                                                                                               

 

NTSTATUS

PsCreateSystemProcess(

                     OUT PHANDLE ProcessHandle,

                     IN ACCESS_MASK DesiredAccess,

                     IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL) {

           NTSTATUS st;

          

           PAGED_CODE();

          

           st = PspCreateProcess(

                     ProcessHandle,

                     DesiredAccess,

                     ObjectAttributes,

                     PspInitialSystemProcessHandle,

                     FALSE,

                     (HANDLE) NULL,

                     (HANDLE) NULL,

                     (HANDLE) NULL

                     );

          

           return st;

}

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함