home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / LSW270SR.ZIP / resource / lswres.c < prev    next >
Text File  |  2004-02-07  |  1KB  |  26 lines

  1. /*
  2.  *      Copyright (C) 1997-2004 Andrei Los.
  3.  *      This file is part of the lSwitcher source package.
  4.  *      lSwitcher is free software; you can redistribute it and/or modify
  5.  *      it under the terms of the GNU General Public License as published
  6.  *      by the Free Software Foundation, in version 2 as it comes in the
  7.  *      "COPYING" file of the lSwitcher main distribution.
  8.  *      This program is distributed in the hope that it will be useful,
  9.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  *      GNU General Public License for more details.
  12.  */
  13.  
  14. #include "lswitch.h"
  15. #include "lswres.h"
  16.  
  17. APIENTRY QueryResourceVersion(UCHAR *NameString,USHORT usLen)
  18. { USHORT k;
  19.  
  20.   for (k=0; LANGUAGESTR[k]!='\0' && k<usLen-1; k++)
  21.     NameString[k]=LANGUAGESTR[k];
  22.   NameString[k] = '\0';
  23.  
  24.   return MAKEULONG(MAKEUSHORT(VERSIONMAJOR,VERSIONMINOR),MAKEUSHORT(REVISION,LANGUAGE));
  25. }
  26.