« February 2007 »
S M T W T F S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28
You are not logged in. Log in

Programming Tips
Saturday, 24 February 2007
Displaying
Mood:  chillin'
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

View Latest Entries