home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / winsock / wstim101 / src / ntime.rc < prev    next >
Encoding:
Text File  |  1995-05-19  |  6.9 KB  |  163 lines

  1. // Contents ---------------------------------------------------------------
  2. //
  3. //   ntime.rc -- Windows Resources for Network Time Client
  4. //
  5. //   Version 1.0.1, a Freeware Windows Socket Time Client
  6. //
  7. //   Copyright (C) Frederick W. Bent 1994
  8. //   All rights reserved.
  9. //
  10. //
  11. // Redistribution and use in source and binary forms are permitted provided
  12. // that the above copyright notice and this paragraph are duplicated in all
  13. // such forms and that any documentation, advertising materials, and other
  14. // materials related to such distribution and use acknowledge that the
  15. // software was developed by Frederick W. Bent.  The name of the author may
  16. // not be used to endorse or promote products derived from this software
  17. // without specific prior written permission.  THIS SOFTWARE IS PROVIDED
  18. // "AS IS" AND WITHOUT ANY EXPRESS OF IMPLIED WARRANTIES, INCLUDING,
  19. // WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS 
  20. // FOR A PARTICULAR PURPOSE.
  21. //
  22. // Ends -------------------------------------------------------------------
  23.  
  24. #include <windows.h>
  25. #include <winsock.h>
  26. #include <ver.h>
  27. #include "ntime.h"
  28. #include "ntime.dlg"
  29.  
  30. NTimeIcon ICON ntime.ico
  31.  
  32. NTimeMenu MENU
  33. BEGIN
  34.     POPUP   "H&ost"
  35.     BEGIN
  36.         MENUITEM "&Open",    IDM_OPEN
  37.         MENUITEM "&Setup...",   IDM_SETUP
  38.         MENUITEM SEPARATOR
  39.         MENUITEM "E&xit",       IDM_EXIT
  40.     END
  41.     POPUP    "&Help"
  42.     BEGIN
  43.         MENUITEM "&Index",    IDM_HELP_INDEX
  44.         MENUITEM SEPARATOR
  45.         MENUITEM "&About...",    IDM_ABOUT
  46.         END
  47. END
  48.  
  49.  
  50. STRINGTABLE
  51. BEGIN
  52.  
  53.    FE_INIT,     "Error occurred during initialization!"
  54.    FE_NOPORT,    "Cannot locate port for time service!"
  55.    FE_NOHOST,    "Unrecognized host name."
  56.    FE_NOSOCK,    "Cannot obtain socket for connection!"
  57.    FE_NOCONN,    "Cannot connect to remote server!"
  58.    FE_NOSEND,    "Cannot send query to remote server!"
  59.    FE_NORECV,    "Error occurred during retrieval!"
  60.    FE_SHUTDWN,   "Error occurred during shutdown!"
  61.    FE_INVLDTIME, "Unable to get the time from server."
  62.    FE_CANCEL,     "Error occurred attempting to cancel request!"
  63.    FE_NOBIND,     "Cannot bind socket to local port!"
  64.  
  65.     IDS_EXITING,    "Are you sure you want to exit Time Client?"
  66.     IDS_EXIT_ACTIVE,    "There is an active socket connection!"
  67.     IDS_BAD_VERSION,    "Windows Sockets version 1.1 needed!"
  68.     IDS_CTL3D_VER,    "Version 2.0.0 or later of CTL3D.DLL needed!"
  69.     IDS_BRK_WINSOCK,    "Oops... You may have a broken WinSock.DLL!"
  70.  
  71.     WSABASEERR,          "WSABASEERR: No error"
  72.     WSAEINTR,         "WSAEINTR: Interrupted system call"
  73.     WSAEBADF,         "WSAEBADF: Bad file number"
  74.     WSAEACCES,        "WSAEACCES: Permission denied"
  75.     WSAEFAULT,        "WSAEFAULT: Bad address"
  76.     WSAEINVAL,        "WSAEINVAL: Invalid parameter"
  77.     WSAEMFILE,        "WSAEMFILE: Out of file handles"
  78.     WSAEWOULDBLOCK,   "WSAEWOULDBLOCK: Operation would block"
  79.     WSAEINPROGRESS,   "WSAEINPROGRESS: Operation now in progress"
  80.     WSAEALREADY,      "WSAEALREADY: Operation already in progress"
  81.     WSAENOTSOCK,      "WSAENOTSOCK: Socket operation on non-socket"
  82.     WSAEDESTADDRREQ,  "WSAEDESTADDRREQ: Destination address required"
  83.     WSAEMSGSIZE,      "WSAEMSGSIZE: Message too long"
  84.     WSAEPROTOTYPE,    "WSAEPROTOTYPE: Protocol wrong type for socket"
  85.     WSAENOPROTOOPT,   "WSAENOPROTOOPT: Bad protocol option"
  86.     WSAEPROTONOSUPPORT,"WSAEPROTONOSUPPORT: Protocol not supported"
  87.     WSAESOCKTNOSUPPORT,"WSAESOCKTNOSUPPORT: Socket type not supported"
  88.     WSAEOPNOTSUPP,    "WSAEOPNOTSUPP: Operation not supported on socket"
  89.     WSAEPFNOSUPPORT,  "WSAEPFNOSUPPORT: Protocol family not supported"
  90.     WSAEAFNOSUPPORT,  "WSAEAFNOSUPPORT: Address family not supported by protocol family"
  91.     WSAEADDRINUSE,    "WSAEADDRINUSE: Address already in use"
  92.     WSAEADDRNOTAVAIL, "WSAEADDRNOTAVAIL: Cannot assign requested address"
  93.     WSAENETDOWN,      "WSAENETDOWN: Network is down"
  94.     WSAENETUNREACH,   "WSAENETUNREACH: Network in unreachable"
  95.     WSAENETRESET,     "WSANETRESET: Net dropped connection or reset"
  96.     WSAECONNABORTED,  "WSAECONNABORTED: Software caused connection abort"
  97.     WSAECONNRESET,    "WSAECONNRESET: Connection reset by peer"
  98.     WSAENOBUFS,       "WSAENOBUFS: No buffers space available"
  99.     WSAEISCONN,       "WSAEICONN: Socket is already connected"
  100.     WSAENOTCONN,      "WSAENOTCONN: Socket is not connected"
  101.     WSAESHUTDOWN,     "WSAESHUTDOWN: Cannot send after socket shutdown"
  102.     WSAETOOMANYREFS,  "WSAETOOMANYREFS: Too many references, cannot splice"
  103.     WSAETIMEDOUT,     "WSAETIMEDOUT: Connection timed out"
  104.     WSAECONNREFUSED,  "WSAECONNREFUSED: Connection refused"
  105.     WSAELOOP,         "WSAELOOP: Too many levels of symbolic links"
  106.     WSAENAMETOOLONG,  "WSAENAMETOOLONG: File name too long"
  107.     WSAEHOSTDOWN,     "WSAEHOSTDOWN: Host is down"
  108.     WSAEHOSTUNREACH,  "WSAEHOSTUNREACH: No Route to Host"
  109.     WSAENOTEMPTY,     "WSAENOTEMPTY: Directory not empty"
  110.     WSAEPROCLIM,      "WSAEPROCLIM: Too many processes"
  111.     WSAEUSERS,          "WSAEUSERS: Too many users"
  112.     WSAEDQUOT,          "WSAEDQUOT: Disc Quota Exceeded"
  113.     WSAESTALE,          "WSAESTALE: Stale NFS file handle"
  114.     WSAEREMOTE,          "WSAEREMOT: Too many levels of remote in path"
  115.     WSASYSNOTREADY,   "WSASYSNOTREADY: Network SubSystem is unavailable"
  116.     WSAVERNOTSUPPORTED,"WSAVERNOTSUPPORTED: WINSOCK DLL Version not supported"
  117.     WSANOTINITIALISED,"WSANOTINITIALISED: Windows Sockets API not initialized"
  118.     WSAHOST_NOT_FOUND,"WSAHOST_NOT_FOUND: Host not found"
  119.     WSATRY_AGAIN,     "WSATRY_AGAIN: Non-Authoritative Host not found"
  120.     WSANO_RECOVERY,   "WSANO_RECOVERY: Non-Recoverable errors: FORMERR, REFUSED, NOTIMP"
  121.     WSANO_DATA,       "WSANO_DATA: Valid name, no data record of requested type"
  122. END
  123.  
  124.  
  125. // The version information resource
  126. VS_VERSION_INFO         VERSIONINFO
  127. FILEVERSION             1, 0, 1
  128. PRODUCTVERSION          1, 0, 1
  129. FILEFLAGSMASK           VS_FFI_FILEFLAGSMASK
  130. FILEFLAGS               VS_FF_PRERELEASE
  131. FILEOS                  VOS_DOS_WINDOWS16
  132. FILETYPE                VFT_APP
  133. FILESUBTYPE             VFT2_UNKNOWN
  134. BEGIN
  135.    BLOCK "VarFileInfo"
  136.    BEGIN
  137.       VALUE "Translation", 0x0409, 1252
  138.    END
  139.  
  140.    BLOCK "StringFileInfo"
  141.    BEGIN
  142.       BLOCK "040904E4"
  143.       BEGIN
  144.      VALUE "Comments",         "This is program is freeware! - No commercial resale permitted in ANY way.\0"
  145.      VALUE "CompanyName",      "Frederick W. Bent\0"
  146.      VALUE "FileDescription",  "WSTime: Windows Sockets 1.1 Time Protocol (RFC868) Client\0"
  147.      VALUE "FileVersion",      "1.0.1\0"
  148.      VALUE "InternalName",     "NTIME\0"
  149.      VALUE "LegalCopyright",   "Copyright \251 1994 by Frederick W. Bent\0"
  150.      VALUE "LegalTrademarks",  "Windows\256 is a registered trademark of Microsoft Inc.\0"
  151.      VALUE "OriginalFilename", "WSNTIME.EXE\0"
  152. //       VALUE "PrivateBuild",     "\0"
  153.      VALUE "ProductName",      "WinSock 1.1 Compliant Internet Time Client\0"
  154.      VALUE "ProductVersion",   "1,0,1\0"
  155. //       VALUE "SpecialBuild",     "\0"
  156.       END
  157.    END
  158. END
  159.  
  160.  
  161.  
  162.  
  163.