Changeset 475 in dev for trunk/ab5.0/abdev/ProjectEditor/Attach.cpp
- Timestamp:
- Apr 4, 2008, 7:47:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ProjectEditor/Attach.cpp
r3 r475 1 #include "stdafx.h" 2 1 3 #ifndef THETEXT 2 4 … … 6 8 7 9 #pragma comment(lib, "psapi.lib") 10 11 using namespace ActiveBasic::IDE; 8 12 9 13 … … 78 82 } 79 83 80 void ListupProcesses64(HWND hListView){ 81 char temporary[MAX_PATH]; 82 84 void ListupProcesses64(HWND hListView) 85 { 83 86 ListView_DeleteAllItems(hListView); 84 87 … … 88 91 ///////////////////////////////////////////////////// 89 92 90 s printf(temporary,"%sSubOperation\\enum_process64\\enum_process64.exe",pj_editor_Dir);93 std::string enumProcess64ExePath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\enum_process64.exe"; 91 94 92 95 STARTUPINFO si; … … 94 97 memset(&si,0,sizeof(STARTUPINFO)); 95 98 si.cb=sizeof(STARTUPINFO); 96 CreateProcess(NULL, temporary,NULL,NULL,0,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi);99 CreateProcess(NULL,const_cast<char *>(enumProcess64ExePath.c_str()),NULL,NULL,0,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi); 97 100 98 101 WaitForSingleObject(pi.hProcess,INFINITE); … … 103 106 ////////////////////////////////// 104 107 105 s printf(temporary,"%sSubOperation\\enum_process64\\list.dat",pj_editor_Dir);108 std::string listPath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\list.dat"; 106 109 107 110 char *buffer; 108 buffer=ReadBuffer_NonErrMsg( temporary);111 buffer=ReadBuffer_NonErrMsg( listPath ); 109 112 if(!buffer) return; 110 113 111 114 int i=0; 115 char temporary[MAX_PATH]; 112 116 while(1){ 113 117 //ファイルパス 114 118 char szAppPath[MAX_PATH]; 115 119 i=GetOneParameter(buffer,i,szAppPath); 116 if( temporary[0]=='\0') break;120 if(szAppPath[0]=='\0') break; 117 121 RemoveStringQuotes(szAppPath); 118 122
Note:
See TracChangeset
for help on using the changeset viewer.