Mood:

Topic: VC++
There is an exported function in ntlanman.dll that does this. The name of the function is ServerBrowseDialogA0.
HMODULE hModule = LoadLibrary( _T( "ntlanman.dll" ));
typedef DWORD ( WINAPI *FNNTBrowseDlg )( HWND hwnd,
CHAR *pchBuffer,
DWORD cchBufSize );
FNNTBrowseDlg lpfn = 0;
CHAR szT[UNCLEN + 1] = { 0 };
lpfn = ( FNNTBrowseDlg )GetProcAddress( hModule, "ServerBrowseDialogA0" );
lpfn( m_hWnd, szT, UNCLEN );
FreeLibrary( hModule );
Posted by Nibu babu thomas
at 1:35 PM
Updated: Saturday, 24 February 2007 1:42 PM