home *** CD-ROM | disk | FTP | other *** search
- // Contents ---------------------------------------------------------------
- //
- // ntime.rc -- Windows Resources for Network Time Client
- //
- // Version 1.0.1, a Freeware Windows Socket Time Client
- //
- // Copyright (C) Frederick W. Bent 1994
- // All rights reserved.
- //
- //
- // Redistribution and use in source and binary forms are permitted provided
- // that the above copyright notice and this paragraph are duplicated in all
- // such forms and that any documentation, advertising materials, and other
- // materials related to such distribution and use acknowledge that the
- // software was developed by Frederick W. Bent. The name of the author may
- // not be used to endorse or promote products derived from this software
- // without specific prior written permission. THIS SOFTWARE IS PROVIDED
- // "AS IS" AND WITHOUT ANY EXPRESS OF IMPLIED WARRANTIES, INCLUDING,
- // WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS
- // FOR A PARTICULAR PURPOSE.
- //
- // Ends -------------------------------------------------------------------
-
- #include <windows.h>
- #include <winsock.h>
- #include <ver.h>
- #include "ntime.h"
- #include "ntime.dlg"
-
- NTimeIcon ICON ntime.ico
-
- NTimeMenu MENU
- BEGIN
- POPUP "H&ost"
- BEGIN
- MENUITEM "&Open", IDM_OPEN
- MENUITEM "&Setup...", IDM_SETUP
- MENUITEM SEPARATOR
- MENUITEM "E&xit", IDM_EXIT
- END
- POPUP "&Help"
- BEGIN
- MENUITEM "&Index", IDM_HELP_INDEX
- MENUITEM SEPARATOR
- MENUITEM "&About...", IDM_ABOUT
- END
- END
-
-
- STRINGTABLE
- BEGIN
-
- FE_INIT, "Error occurred during initialization!"
- FE_NOPORT, "Cannot locate port for time service!"
- FE_NOHOST, "Unrecognized host name."
- FE_NOSOCK, "Cannot obtain socket for connection!"
- FE_NOCONN, "Cannot connect to remote server!"
- FE_NOSEND, "Cannot send query to remote server!"
- FE_NORECV, "Error occurred during retrieval!"
- FE_SHUTDWN, "Error occurred during shutdown!"
- FE_INVLDTIME, "Unable to get the time from server."
- FE_CANCEL, "Error occurred attempting to cancel request!"
- FE_NOBIND, "Cannot bind socket to local port!"
-
- IDS_EXITING, "Are you sure you want to exit Time Client?"
- IDS_EXIT_ACTIVE, "There is an active socket connection!"
- IDS_BAD_VERSION, "Windows Sockets version 1.1 needed!"
- IDS_CTL3D_VER, "Version 2.0.0 or later of CTL3D.DLL needed!"
- IDS_BRK_WINSOCK, "Oops... You may have a broken WinSock.DLL!"
-
- WSABASEERR, "WSABASEERR: No error"
- WSAEINTR, "WSAEINTR: Interrupted system call"
- WSAEBADF, "WSAEBADF: Bad file number"
- WSAEACCES, "WSAEACCES: Permission denied"
- WSAEFAULT, "WSAEFAULT: Bad address"
- WSAEINVAL, "WSAEINVAL: Invalid parameter"
- WSAEMFILE, "WSAEMFILE: Out of file handles"
- WSAEWOULDBLOCK, "WSAEWOULDBLOCK: Operation would block"
- WSAEINPROGRESS, "WSAEINPROGRESS: Operation now in progress"
- WSAEALREADY, "WSAEALREADY: Operation already in progress"
- WSAENOTSOCK, "WSAENOTSOCK: Socket operation on non-socket"
- WSAEDESTADDRREQ, "WSAEDESTADDRREQ: Destination address required"
- WSAEMSGSIZE, "WSAEMSGSIZE: Message too long"
- WSAEPROTOTYPE, "WSAEPROTOTYPE: Protocol wrong type for socket"
- WSAENOPROTOOPT, "WSAENOPROTOOPT: Bad protocol option"
- WSAEPROTONOSUPPORT,"WSAEPROTONOSUPPORT: Protocol not supported"
- WSAESOCKTNOSUPPORT,"WSAESOCKTNOSUPPORT: Socket type not supported"
- WSAEOPNOTSUPP, "WSAEOPNOTSUPP: Operation not supported on socket"
- WSAEPFNOSUPPORT, "WSAEPFNOSUPPORT: Protocol family not supported"
- WSAEAFNOSUPPORT, "WSAEAFNOSUPPORT: Address family not supported by protocol family"
- WSAEADDRINUSE, "WSAEADDRINUSE: Address already in use"
- WSAEADDRNOTAVAIL, "WSAEADDRNOTAVAIL: Cannot assign requested address"
- WSAENETDOWN, "WSAENETDOWN: Network is down"
- WSAENETUNREACH, "WSAENETUNREACH: Network in unreachable"
- WSAENETRESET, "WSANETRESET: Net dropped connection or reset"
- WSAECONNABORTED, "WSAECONNABORTED: Software caused connection abort"
- WSAECONNRESET, "WSAECONNRESET: Connection reset by peer"
- WSAENOBUFS, "WSAENOBUFS: No buffers space available"
- WSAEISCONN, "WSAEICONN: Socket is already connected"
- WSAENOTCONN, "WSAENOTCONN: Socket is not connected"
- WSAESHUTDOWN, "WSAESHUTDOWN: Cannot send after socket shutdown"
- WSAETOOMANYREFS, "WSAETOOMANYREFS: Too many references, cannot splice"
- WSAETIMEDOUT, "WSAETIMEDOUT: Connection timed out"
- WSAECONNREFUSED, "WSAECONNREFUSED: Connection refused"
- WSAELOOP, "WSAELOOP: Too many levels of symbolic links"
- WSAENAMETOOLONG, "WSAENAMETOOLONG: File name too long"
- WSAEHOSTDOWN, "WSAEHOSTDOWN: Host is down"
- WSAEHOSTUNREACH, "WSAEHOSTUNREACH: No Route to Host"
- WSAENOTEMPTY, "WSAENOTEMPTY: Directory not empty"
- WSAEPROCLIM, "WSAEPROCLIM: Too many processes"
- WSAEUSERS, "WSAEUSERS: Too many users"
- WSAEDQUOT, "WSAEDQUOT: Disc Quota Exceeded"
- WSAESTALE, "WSAESTALE: Stale NFS file handle"
- WSAEREMOTE, "WSAEREMOT: Too many levels of remote in path"
- WSASYSNOTREADY, "WSASYSNOTREADY: Network SubSystem is unavailable"
- WSAVERNOTSUPPORTED,"WSAVERNOTSUPPORTED: WINSOCK DLL Version not supported"
- WSANOTINITIALISED,"WSANOTINITIALISED: Windows Sockets API not initialized"
- WSAHOST_NOT_FOUND,"WSAHOST_NOT_FOUND: Host not found"
- WSATRY_AGAIN, "WSATRY_AGAIN: Non-Authoritative Host not found"
- WSANO_RECOVERY, "WSANO_RECOVERY: Non-Recoverable errors: FORMERR, REFUSED, NOTIMP"
- WSANO_DATA, "WSANO_DATA: Valid name, no data record of requested type"
- END
-
-
- // The version information resource
- VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1, 0, 1
- PRODUCTVERSION 1, 0, 1
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
- FILEFLAGS VS_FF_PRERELEASE
- FILEOS VOS_DOS_WINDOWS16
- FILETYPE VFT_APP
- FILESUBTYPE VFT2_UNKNOWN
- BEGIN
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x0409, 1252
- END
-
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904E4"
- BEGIN
- VALUE "Comments", "This is program is freeware! - No commercial resale permitted in ANY way.\0"
- VALUE "CompanyName", "Frederick W. Bent\0"
- VALUE "FileDescription", "WSTime: Windows Sockets 1.1 Time Protocol (RFC868) Client\0"
- VALUE "FileVersion", "1.0.1\0"
- VALUE "InternalName", "NTIME\0"
- VALUE "LegalCopyright", "Copyright \251 1994 by Frederick W. Bent\0"
- VALUE "LegalTrademarks", "Windows\256 is a registered trademark of Microsoft Inc.\0"
- VALUE "OriginalFilename", "WSNTIME.EXE\0"
- // VALUE "PrivateBuild", "\0"
- VALUE "ProductName", "WinSock 1.1 Compliant Internet Time Client\0"
- VALUE "ProductVersion", "1,0,1\0"
- // VALUE "SpecialBuild", "\0"
- END
- END
- END
-
-
-
-
-