www.pudn.com > whois.zip > WINWHOIS.H


#include "mitcpyrt.h" 
// 
#define IDC_STATIC                      -1 
 
#define _APS_NEXT_RESOURCE_VALUE        101 
#define _APS_NEXT_COMMAND_VALUE         101 
#define _APS_NEXT_CONTROL_VALUE         1000 
#define _APS_NEXT_SYMED_VALUE           101 
 
 
#define IDM_CUT 	101 + WM_USER 
#define IDM_COPY        102 + WM_USER 
#define IDM_ABOUT       104 + WM_USER 
#define IDM_CLEAR       105 + WM_USER 
#define IDC_NAMEINPUT   109 + WM_USER 
#define IDC_RESPONSES   110 + WM_USER 
#define IDC_MAKEQUERY   111 + WM_USER 
#define IDC_EXIT        112 + WM_USER 
#define IDC_CLEAR       113 + WM_USER 
#define IDC_HELP        114 + WM_USER 
#define IDC_STATUS      115 + WM_USER 
#define IDM_CHANGEHOST  116 + WM_USER 
#define IDC_CHANGEHOST  117 + WM_USER 
#define IDC_HOSTINPUT   118 + WM_USER 
#define IDC_GOTADDR     119 + WM_USER 
#define IDC_GOTSERVER   120 + WM_USER 
#define IDC_GOTCONNECT  121 + WM_USER 
#define IDC_GOTRESPONSE 122 + WM_USER 
#define IDC_RESETDISPLAY 123 + WM_USER 
#define SET_NAME        124 + WM_USER 
#define SET_HOST        125 + WM_USER 
#define START_QUERY     126 + WM_USER 
#define IDC_GETLIST     127 + WM_USER 
#define IDC_WHOISLISTSERVER 128 + WM_USER 
#define IDC_STARTDIALOG 200 + WM_USER 
 
BOOL InitApplication(HANDLE); 
 
// int PASCAL WinMain(H, HINSTANCE, LPSTR, int); 
BOOL InitInstance(HANDLE, int, LPHANDLE); 
 
LONG FAR PASCAL MainWndProc(HWND, UINT, WPARAM, LPARAM); 
BOOL FAR PASCAL About(HWND, UINT, WPARAM, LPARAM); 
BOOL FAR PASCAL MainDialog(HWND, UINT, WPARAM, LPARAM); 
 
void CutText (HWND, WORD); 
void CopyText (HWND, WORD); 
void ClearText (HWND, WORD); 
void DoWhoIsQuery (HWND hDlg, LPSTR lpszName, LPSTR lpszQHost); 
LONG FAR PASCAL QueryWndProc (HWND hWind, UINT message, WPARAM wParam, LPARAM lParam); 
 
/*  Why this isn't defined anywhere, I have no idea, 
    but it's a good one;  it's so good, people like the writers 
    of the WinSock spec actually thought it existed :-)   */ 
//#define MAKEWORD(low, high) ((WORD)(((BYTE)(low)) | (((UINT)((BYTE)(high))) << 8))) 
 
typedef struct request 
{ 
    HWND hWin; 
    struct sockaddr_in sock_in; 
    int s; 
    HANDLE hHost, hQuery; 
    HANDLE hbuffer; 
    HANDLE sphandle; 
    HANDLE hNextReq; 
    LPSTR lpHost, lpQuery; 
    struct hostent FAR *lpbuffer; 
    struct servent FAR *sp; 
    struct request FAR *NextReq; 
} REQUEST; 
 
REQUEST FAR* FindRequest (HWND hWind); 
void CleanRequest (HWND hWind); 
 
 
void GRelease (HANDLE FAR *h);