|
1.¿ä¾à ÀÚ±â ÇÁ·Î¼¼½ºÀÇ º¹»çº»À» ¸¸µå´Â ¹æ¹ýÀ» ¼³¸í. 2.º»¹® UNIX¿¡¼´Â fork¶ó´Â ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© ÀÚ±âÀÚ½ÅÀÇ º¹»çº»À» ¸¸µì´Ï´Ù. À©µµ¿ì¿¡¼´Â ÀÌ·± ±â´ÉÀÌ ¾ø´Âµ¥ CreateProcess¸¦ ÀÌ¿ëÇÏ¿© ºñ½ÁÇÑ ±â´ÉÀ» ¸¸µé¼ö ÀÖ½À´Ï´Ù. 3.¿¹Á¦
void CMainFrame::OnAppClone()
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
// Initialize the STARTUPINFO structure.
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
CreateProcess(
NULL, // pointer to name of executable module
(LPTSTR) AfxGetApp()->m_pszAppName,
// pointer to command line string
NULL, // pointer to process security attributes
NULL, // pointer to thread security attributes
FALSE, // handle inheritance flag
0, // creation flags
NULL, // pointer to new environment block
NULL, // pointer to current directory name
&si, // pointer to STARTUPINFO
&pi // pointer to PROCESS_INFORMATION
);
}
- 2001.08.06 Smile Seo - |