Functions for retrieving network adapter address!

Following functions can be used to retrieve network adapter info… GetAdaptersInfo GetAdaptersAddresses Netbios NetWkstaTransportEnum So what’s the easiest and reliable way to achieve this? IMO use GetAdaptersInfo. By the way from XP onwards MSDN recommends using GetAdaptersAddresses.
Continue reading…

 

Retrieving face name of font selected into a DC!

Use GetTextFace function! Function signature is as follows… [sourcecode language=’cpp’] // MFC int GetTextFace( CString& rString ) const; // SDK int GetTextFace( HDC hdc, // handle to DC               int nCount, //length of typeface name buffer                  LPTSTR lpFaceName // typeface name buffer                );[/sourcecode]
Continue reading…