VB6 では、Win32API の WaitForSingleObject 関数を使用します。標準モジュールなどで、以下の Win32API 関数と自作の WaitForExitProcess 関数を定義しておいてください。 VB6.0 以前 Option Explicit ' OpenProcess 関数 Private Declare Function OpenProcess Lib "KERNEL32.DLL" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long _ ) As Long ' CloseHandle 関数 Private Declare Function CloseHandle Lib "KERNEL32.DLL" ( _ ByVal