For the complete documentation index, see llms.txt. This page is also available as Markdown.

CreateProcessA

CreateProcess는 현재 프로세스 컨텍스트에서 새로운 프로세스와 스레드를 생성합니다. 기존 프로세스의 컨텍스트에서 생성되기 때문에, 생성된 프로세스의 부모는 호출한 프로세스를 가리킵니다.

BOOL CreateProcessA(
  [in, optional]      LPCSTR                lpApplicationName,
  [in, out, optional] LPSTR                 lpCommandLine,
  [in, optional]      LPSECURITY_ATTRIBUTES lpProcessAttributes,
  [in, optional]      LPSECURITY_ATTRIBUTES lpThreadAttributes,
  [in]                BOOL                  bInheritHandles,
  [in]                DWORD                 dwCreationFlags,
  [in, optional]      LPVOID                lpEnvironment,
  [in, optional]      LPCSTR                lpCurrentDirectory,
  [in]                LPSTARTUPINFOA        lpStartupInfo,
  [out]               LPPROCESS_INFORMATION lpProcessInformation
);
인자
설명
보편적인 값

lpApplicationName

실행할 프로그램 경로

lpCommandLine

명령줄 인수

lpProcessAttributes

프로세스 보안 속성

NULL

lpThreadAttributes

쓰레드 보안 속성

NULL

bInheritHandles

핸들 상속 여부

FALSE

dwCreationFlags

생성 플래그

CREATE_SUSPENDED | CREATE_NO_WINDOW

lpEnvironment

환경 변수

NULL

lpCurrentDirectory

작업 디렉토리

NULL

lpStartupInfo

시작 정보

lpProcessInformation

프로세스 정보

Example

References

Last updated