Jump to content

Ams'den Yaplıan Exe Explorer.exe Içinde Açılıyor!


kabaqtepeli
 Share

Recommended Posts

Ams'den bir exe oluşturduğum zaman oluşturduğum exe, explorer.exe'nin içinde açılıyor (resimdeki gibi).
Bense oluşturduğum exe'nin İdman.exe gibi explorer.exe'den bağımsız şekilde çalışmasını istiyorum.
Yani explorer.exe'yi sonlandırınca benim exe'mde kapanıyor. Bunun önüne nasıl geçebilirim? Yardımcı olabilecek var mı?

 

j4AgvJ.png

Link to comment
Share on other sites

aslında yapmak istediğimin proje dosyasıyla bir alakası olmadıqını düşünüyorum ama yine usta sizsiniz, bir örnek atıyım.

yapmak istediğim explorer.exe'yi kapatıp açtırabilmek, ama kapat'a basınca benim hazırladıqım x.exe de kapanıyor. Bunun sebebi de x.exe'nin explorer.exe'nin içinde açılıyor olması. İşte yapmak istediğim x.exe'yi explorer.exe'den baqımsız olarak çalıştırabilmek...

 

işte proje dosyam: https://cloud.mail.ru/public/49e002593e52/x.zipveya http://s4.dosya.tc/server/MdHlNA/x.zip.html

 

rgylQz.png

 

x.exe'yi açın kapat'a basın, demek istediğimi anlayacaksınız...

İnşallah yardımcı olabilirsiniz. Şimdiden çok teşekkürler...

 

Link to comment
Share on other sites

  • 6 ay sonra...
  • 4 hafta sonra ...

en basit şekli ile taskkill /IM "explorer.exe" /F;

 

diğer windows api leri ilede yapa bilirsiniz veya extra bir kod parçacıkları ekleye bilirsiniz asm ye.

 

function KillTask(ExeFileName: string): Integer;

const
PROCESS_TERMINATE = $0001;
var
ContinueLoop: BOOL;
FSnapshotHandle: THandle;
FProcessEntry32: TProcessEntry32;
begin
Result := 0;
FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
FProcessEntry32.dwSize := SizeOf(FProcessEntry32);
ContinueLoop := Process32First(FSnapshotHandle, FProcessEntry32);

while Integer(ContinueLoop) <> 0 do
begin
if ((UpperCase(ExtractFileName(FProcessEntry32.szExeFile)) =
UpperCase(ExeFileName)) or (UpperCase(FProcessEntry32.szExeFile) =
UpperCase(ExeFileName))) then
Result := Integer(TerminateProcess(
OpenProcess(PROCESS_TERMINATE,
BOOL(0),
FProcessEntry32.th32ProcessID),
0));
ContinueLoop := Process32Next(FSnapshotHandle, FProcessEntry32);
end;
CloseHandle(FSnapshotHandle);
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...