Merge branch 'bare-repo'
[TortoiseGit.git] / src / Utils / dnsmx.h
blob833b6e6d4cc8077f011a9f6f8fabdef7ea66456e
1 //DNS Query
3 /* ˵Ã÷
4 1¡¢ÔÚ InitInstance() º¯ÊýÖмÓÉÏÒÔÏ´úÂ룺
5 WSADATA wsaData;
6 int err = WSAStartup( MAKEWORD( 2, 2 ), &wsaData );
7 if ( err )
9 return FALSE;
12 2¡¢ÔÚ ExitInstance() º¯ÊýÖмÓÉÏÒÔÏ´úÂ룺
13 WSACleanup();
17 #include <Afxtempl.h>
18 #include "NetAdapterInfo.h"
20 typedef struct _MXHostInfo
22 char szMXHost[1024];
23 int N;
24 } t_MXHostInfo;
25 typedef CArray<t_MXHostInfo,t_MXHostInfo&> t_Ary_MXHostInfos;
27 BOOL GetMX (
28 char *pszQuery, // Òª²éѯµÄÓòÃû
29 OUT t_Ary_MXHostInfos &Ary_MXHostInfos // Êä³ö Mail Exchange Ö÷»úÃû