no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | en:docs:fapi:dosgetdbcsev [2018/08/31 02:21] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | This call obtains a DBCS (double byte character set) environmental vector that resides in the country information file. | ||
+ | |||
+ | ==Syntax== | ||
+ | | ||
+ | |||
+ | ==Parameters== | ||
+ | ;Length (USHORT) - input : Length, in bytes, of the data area (MemoryBuffer). This value should be at least 10. | ||
+ | ;Country (PCOUNTRYCODE) - input : Address of the country information structure: | ||
+ | | ||
+ | Country code identifier. 0 is the default country code. | ||
+ | | ||
+ | Code page identifier. 0 is the code page of the current process. | ||
+ | ; MemoryBuffer (PCHAR) - output : Address of the country dependent information for the DBCS environmental vector. This memory area is provided by the caller. The size of the area is provided by the input parameter Length. If it is too small to hold all the available information, | ||
+ | |||
+ | The format of the information returned in this buffer is: | ||
+ | | ||
+ | | ||
+ | High byte Binary start value (inclusive) for range one | ||
+ | Low byte Binary stop value (inclusive) for range one. | ||
+ | | ||
+ | High byte Binary start value for range two | ||
+ | Low byte Binary stop value for range two. | ||
+ | | ||
+ | High byte Binary start value for Nth range | ||
+ | Low byte Binary stop value for Nth range. | ||
+ | N + 1 Two bytes of binary 0 terminate list. | ||
+ | For example: | ||
+ | | ||
+ | | ||
+ | |||
+ | ==Return== | ||
+ | rc (USHORT) - return | ||
+ | |||
+ | Return code descriptions are: | ||
+ | * NO_ERROR | ||
+ | * 396 ERROR_NLS_NO_COUNTRY_FILE | ||
+ | * 397 ERROR_NLS_OPEN_FAILED | ||
+ | * 398 ERROR_NO_COUNTRY_OR_CODEPAGE | ||
+ | * 399 ERROR_NLS_TABLE_TRUNCATED | ||
+ | |||
+ | ==Remarks== | ||
+ | The returned DBCS environmental vector may be for the default country and current process code page or for a specific country and code page. For more information on code page see DosSetCp. | ||
+ | |||
+ | ==C Binding== | ||
+ | <PRE> | ||
+ | typedef struct _COUNTRYCODE { /* ctryc */ | ||
+ | |||
+ | USHORT country; | ||
+ | USHORT codepage; | ||
+ | |||
+ | } COUNTRYCODE; | ||
+ | |||
+ | #define INCL_DOSNLS | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | USHORT | ||
+ | PCOUNTRYCODE | ||
+ | PCHAR MemoryBuffer; | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ==MASM Binding== | ||
+ | <PRE> | ||
+ | COUNTRYCODE struc | ||
+ | ctryc_country | ||
+ | ctryc_codepage | ||
+ | COUNTRYCODE ends | ||
+ | |||
+ | EXTRN DosGetDBCSEv: | ||
+ | INCL_DOSNLS | ||
+ | |||
+ | PUSH | ||
+ | PUSH@ OTHER | ||
+ | PUSH@ OTHER | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ====== Note ====== | ||
+ | |||
+ | Text based on [[http:// | ||
+ | |||
+ | {{page> | ||