G
Guest
Hello
we have a exe that closes some other exes when the main exe closes, and
when ms antispyware is running the closing of the other exes is very slow.
if we turn off the antispyware the closing of the other exes is fast. from
what we have found the calls to the windows api is causing the slowdown
here are some of the declares of the api calls used
Private Declare Function IsWindow Lib "user32" (ByVal hWnd As Long) As Long
Private Declare Function GetTopWindow Lib "user32" (ByVal hWnd As Long) As
Long
Private Declare Function GetNextWindow Lib "user32" Alias "GetWindow" (ByVal
hWnd As Long, ByVal wFlag As Long) As Long
Private Declare Function EnumProcessModules Lib "PSAPI.DLL" (ByVal hProcess
As Long, ByRef lphModule As Long, ByVal cb As Long, ByRef cbNeeded As Long)
As Long
Private Declare Function OpenProcess Lib "kernel32.dll" (ByVal
dwDesiredAccessas As Long, ByVal bInheritHandle As Long, ByVal dwProcId As
Long) As Long
Private Declare Function GetModuleFileNameEx Lib "PSAPI" Alias
"GetModuleFileNameExA" (ByVal hProcess As Long, ByVal hModule As Long, ByVal
lpFileName As String, nSize As Long) As Long
does anyone know what might be causing the slowdown or how to stop the
slowdown?
Thanks
we have a exe that closes some other exes when the main exe closes, and
when ms antispyware is running the closing of the other exes is very slow.
if we turn off the antispyware the closing of the other exes is fast. from
what we have found the calls to the windows api is causing the slowdown
here are some of the declares of the api calls used
Private Declare Function IsWindow Lib "user32" (ByVal hWnd As Long) As Long
Private Declare Function GetTopWindow Lib "user32" (ByVal hWnd As Long) As
Long
Private Declare Function GetNextWindow Lib "user32" Alias "GetWindow" (ByVal
hWnd As Long, ByVal wFlag As Long) As Long
Private Declare Function EnumProcessModules Lib "PSAPI.DLL" (ByVal hProcess
As Long, ByRef lphModule As Long, ByVal cb As Long, ByRef cbNeeded As Long)
As Long
Private Declare Function OpenProcess Lib "kernel32.dll" (ByVal
dwDesiredAccessas As Long, ByVal bInheritHandle As Long, ByVal dwProcId As
Long) As Long
Private Declare Function GetModuleFileNameEx Lib "PSAPI" Alias
"GetModuleFileNameExA" (ByVal hProcess As Long, ByVal hModule As Long, ByVal
lpFileName As String, nSize As Long) As Long
does anyone know what might be causing the slowdown or how to stop the
slowdown?
Thanks