?
Habs endlich hinbekommen
danke nochmal für eure Hilfe
BOOLEAN
ExApisArePresent(
VOID
)
{
pAllocateAndGetTcpExTableFromStack = ( unsigned long (__stdcall*)(MIB_TCPEXTABLE ** ,int,void *,unsigned long,unsigned long)) GetProcAddress( LoadLibrary( "iphlpapi.dll"), "AllocateAndGetTcpExTableFromStack");
if( !pAllocateAndGetTcpExTableFromStack ) return FALSE;
pAllocateAndGetUdpExTableFromStack = ( unsigned long (__stdcall *)(MIB_UDPEXTABLE ** ,int,void *,unsigned long,unsigned long)) GetProcAddress( LoadLibrary( "iphlpapi.dll"), "AllocateAndGetUdpExTableFromStack" );
if( !pAllocateAndGetUdpExTableFromStack ) return FALSE;
pCreateToolhelp32Snapshot = (void *(__stdcall *)(unsigned long,unsigned long)) GetProcAddress( GetModuleHandle( "kernel32.dll" ), "CreateToolhelp32Snapshot" );
if( !pCreateToolhelp32Snapshot ) return FALSE;
pProcess32First = (int (__stdcall *)(void *,struct tagPROCESSENTRY32 *)) GetProcAddress( GetModuleHandle( "kernel32.dll" ), "Process32First" );
if( !pProcess32First ) return FALSE;
pProcess32Next = (int (__stdcall *)(void *,struct tagPROCESSENTRY32 *)) GetProcAddress( GetModuleHandle( "kernel32.dll" ), "Process32Next" );
if( !pProcess32Next ) return FALSE;
return TRUE;
}
MFG ch