JewcalGetHebrewMonthName

The JewcalGetHebrewMonthName function gets the name of the Hebrew month corresponding to the month number retrieved by JewcalGregorianDateToHebrewDate.

DWORD JewcalGetHebrewMonthName(UINT uMonth, UINT uYear,
                               LPTSTR lpString, UINT cbMax,
                               LPTSTR lpLanguage,
                               LPTSTR lpNameFile);

Parameters

uMonth
Specifies the Hebrew month.

uMonth
Specifies the Hebrew year.

lpString
Must point to a string buffer which will contain the name of the Hebrew month after execution of this function.

cbMax
Must contain the size of the buffer lpString in characters.

lpLanguage
If it is not NULL, it must point to a language defined in NAMES.TXT.
If it is NULL, the entry with no language, that means without a dot, is retrieved if present (by default, not).

lpNameFile
If it is not NULL, it must point to the filename with full path of the NAMES.TXT file.
If it is NULL, the NAMES.TXT file is assumed to have its original name and present in the same directory where JEWCAL.DLL is located.
File format of NAMES.TXT

Return values

If the function succeeds, the return value is JEWCAL_ERROR_OK.

If the function fails, the return value is other than JEWCAL_ERROR_OK. The function fails if the passed Hebrew month is invalid, if the Hebrew year is out of range or if the buffer is too small.

Remarks

The assignment of the Hebrew month number to its name is

1Nissan
2Iyyar
3Sivan
4Tammuz
5Av
6Elul
7Tishri
8Heshvan
9Kislev
10Tevet
11Shevat
12Adar (in non-leap years) or Adar I (in leap years)
13Adar II (in leap years)

See Also

JewcalGetHebrewDateToGregorianDate, JewcalGetGregorianDateToHebrewDate