#define IDM_CONNECT 1003 #define IDM_EXIT 1002 #define IDM_ABOUT 1004 #define IDC_CONNECT 1000 #define IDC_EXIT 1001 #define IDC_EDIT1 3000 #define IDC_OK 3001 #define IDC_CANCEL 3002 #define IDC_PROGRESS 3003 #define IDC_NAME 1004 #define DS_MODALFRAME 0x80L /* Can be combined with WS_CAPTION */ #define WS_CAPTION 0x00C00000L /* WS_BORDER | WS_DLGFRAME */ #define WS_SYSMENU 0x00080000L #define WS_VISIBLE 0x10000000L #define WS_POPUP 0x80000000L #define ES_AUTOHSCROLL 0x0080L #define ES_LEFT 0x0000L #define WS_TABSTOP 0x10000L #define WS_MINIMIZEBOX 0x00020000L #define DS_CENTER 0x0800L #define WS_EX_CLIENTEDGE 0x200L #define WS_BORDER 0x800000L #define SS_CENTERIMAGE 0x200L #define SS_SUNKEN 0x1000L #define WS_EX_DLGMODALFRAME 0x1L http ICON http.ico STRINGTABLE DISCARDABLE BEGIN 1 "Undefined Error" 10000 "No Error" 10004 "Interrupted function call" 10009 "Bad file descriptor" 10013 "Permission denied to the file" 10014 "Bad address" 10022 "Invalid argument" 10024 "Too many open files" 10035 "Resource temporarily unavailable" 10036 "Operation now in progress" 10037 "Operation already in progress" 10038 "Socket operation on non-socket" 10039 "Destination address required" 10040 "Message too long" 10041 "Protocol wrong type for socket" 10042 "Bad protocol option" 10043 "Protocol not supported" 10044 "Socket type not supported" 10045 "Operation not supported" 10046 "Protocol family not supported" 10047 "Address family not supported by protocol family" 10048 "Address already in use" 10049 "Can't assign requested address" 10050 "Network is down" 10051 "Socket is unreachable" 10052 "Network dropped connection on reset" 10053 "Software caused connection abort" 10054 "Connection reset by peer" 10055 "No buffer space available" 10056 "Socket is already connected" 10057 "Socket is not connected" 10058 "Cannot send after socket shutdown" 10059 "Too many references: can't splice" 10060 "Connection time out" 10061 "Connection refused" 10062 "Too many levels of symbolic links" 10063 "File name too long" 10064 "Host is down" 10065 "No route to host" 10066 "Directory not empty" 10067 "Too many processes" 10068 "Too many users" 10069 "Disk quota exceeded" 10070 "Stale NFS file handle" 10071 "Too many levels of remote in path" 10091 "Network subsystem is unavailable" 10092 "WINSOCK.DLL version out of range" 10093 "Successful WSAStartup() not yet performed" 11001 "Host not found" 11002 "Non-authoritative host not found" 11003 "This is a non-recoverable error" 11004 "Valid name, no data record of requested type" END WinSock MENU { POPUP "Socket" { MENUITEM "Connect",IDM_CONNECT MENUITEM SEPARATOR MENUITEM "Exit",IDM_EXIT } MENUITEM "About",IDM_ABOUT } URLDIALOG DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 10, 10, 155, 47, 0 STYLE DS_MODALFRAME | 0x0004 | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_POPUP CAPTION "Enter URL" FONT 8, "MS Sans Serif", 700, 0 /*FALSE*/ BEGIN EDITTEXT IDC_EDIT1, 16,7,123,12, ES_AUTOHSCROLL | ES_LEFT, , 0 DEFPUSHBUTTON "OK", IDC_OK, 27,26,44,14, 0, , 0 PUSHBUTTON "Cancel", IDC_CANCEL, 84,26,44,14, 0, , 0 END MAINDLG DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 10, 10, 222, 100, 0 STYLE DS_MODALFRAME | 0x0004 | DS_CENTER | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE | WS_POPUP EXSTYLE WS_EX_CLIENTEDGE CAPTION "Win32asm HTTP download version 1.5" CLASS "WINSOCKDLG" FONT 8, "MS Sans Serif", 700, 0 /*FALSE*/ BEGIN DEFPUSHBUTTON "Connect",IDC_CONNECT,47,52,56,15 PUSHBUTTON "Exit",IDC_EXIT,119,52,56,15 CONTROL "Progress1",IDC_PROGRESS,"msctls_progress32",WS_BORDER, 36,35,149,6 CTEXT "",IDC_NAME,21,5,186,25,WS_BORDER | SS_CENTERIMAGE,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE END