본문 바로가기
반응형

Createprocess9

[개발/VC++] CreateProcess 함수 예제 소스코드 CreateProcess 함수 예제 소스코드 /* * 출처 : http://sosal.tistory.com/ * made by so_Sal */ CreateProcess 라는 함수를 이용하여 Notepad를 실행시키는 간단한 소스입니다. 이해가 가지 않는 부분이 있다면 아래 링크를 참조하세요. LINK_ ====================== CreateProcess ====================== #include #include #include#define DIR_LEN BUFSIZ //BUFSIZ는 운영체제마다 다른 크기를 가지고 있습니다. //한번 크기를 출력해보시는것도 좋겠네요.int _tmain(int argc, TCHAR* argv[]){ STARTUPINFO si = {0,}; /.. 2016. 2. 4.
[개발/VC++] ShellExecuteEx, CreateProcess, 연결된 프로그램, 디폴트 브라우저 직접 예제를 만들수도 있지만 시간상 핑계로 인터넷에 있던 팁들을 나열했다. Q: I want to bring up the Windows Find window on a particular folder. A: We use the find verb as the operation parameter and we have the Windows Find window open up with the directory we have specified. This can be rather handy if you want to allow users to find some file within some folder. Just ask them for their folder and pop up a Find Window which h.. 2015. 11. 9.
[개발/delphi] 외부 프로그램 실행하고 기다리기 Execute and wait [delphi] Execute and wait for termination (16 and 32bit applications) http://www.delphifaq.com/faq/delphi_windows_API/f353_0.htm This unit is based upon the well-known and largely used WinExecAndWait function The former WinexecAndWait function doesn't compile under Delphi 2.0 because the GetModuleUsage function is no longer supported under Win95. I have simply updated the previous code so that i.. 2011. 12. 12.
[개발] DllMain에서 다음 작업들은 절대로 하지 말 것 출처 : http://www.jiniya.net DllMain에서 다음 작업들은 절대로 하지 말 것. 1.LoadLibrary, LoadLibraryEx 호출. 데드락이나 크래시를 유발한다. 2.다른 스레드와 동기화. 데드락을 유발한다. 3.로더 락을 획득하려는 코드가 가지고 있는 동기화 오브젝트를 획득하려는 시도. 데드락을 유발한다. 4.CoInitializeEx를 사용한 COM 스레드 초기화. 특정 조건이 충족될 경우 이 함수는 LoadLibraryEx를 호출한다. 5.레지스트리 함수들. 이 함수들은 advapi32.dll에 구현되어 있다. advapi32.dll이 초기화 되지 않았다면 크래시가 발생할 수 있다. 6.CreateProcess 호출. 프로세스 생성은 다른 DLL을 로드할 수 있다. 7... 2011. 10. 5.
[개발/VC++] ShellExecuteEx, CreateProcess, 연결된 프로그램, 디폴트 브라우저 직접 예제를 만들수도 있지만 시간상 핑계로 인터넷에 있던 팁들을 나열했다. Q: I want to bring up the Windows Find window on a particular folder. A: We use the find verb as the operation parameter and we have the Windows Find window open up with the directory we have specified. This can be rather handy if you want to allow users to find some file within some folder. Just ask them for their folder and pop up a Find Window which h.. 2011. 3. 31.
[개발/VC++] MFC 관리자권한 외부 프로세스 실행을 위한 소스 외부 프로세스 실행을 위한 소스 아래 함수는 Windows 7 에서 관리자 권한으로 실행이 가능하게 하는 코드이다. MFC 개발하시분 분들에게는 많이 유용할 것이다. 쌈꼬쪼려 소백촌닭 ======================================================= 사례1 // 프로세스 실행 BOOL SBRICH::ExecuteProcess(CString FilePath, CString Parameter) { //TCHAR path[1024] = {0,}; //::GetModuleFileName(NULL, path, 1024); BOOL bRes = FALSE; if(OSVersionXPOver()) { // 관리자 모드로 실행 SHELLEXECUTEINFO exeInfo = {0,};.. 2011. 3. 8.
반응형