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…
Daily Archives: April 3, 2008
Retrieving current text color of a DC!
Use GetTextColor! Function signature is as follows… [sourcecode language=’cpp’] // MFC COLORREF GetTextColor() const; // SDK COLORREF GetTextColor( HDC hdc ); // handle to DC[/sourcecode]
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…