|
在WINDOWS95&WINDOWS98下如何关闭网络连接(4) DWORD (__stdcall * hookNetSessionDel)( LPSTR, LPSTR, DWORD );
HINSTANCE hMod = LoadLibrary( "SVRAPI.DLL" ); if( hMod != NULL ) { // Get the address of function hookNetSessionEnum = NetSessionEnum_PROFILE GetProcAddress ( hMod, TEXT("NetSessionEnum") ); hookNetSessionDel = NetSessionDel_PROFILE GetProcAddress ( hMod, TEXT("NetSessionDel") );
if( ( hookNetSessionDel != NULL ) && ( hookNetSessionEnum != NULL ) ) { dwNetRet = hookNetSessionEnum( NULL, 0x32, byBuff, NETBUFF_SIZE, &dwEntries, &dwTotalEntries );
|