Test_DBCS_Lead_Byte

include vmm.inc

mov eax, Value ; value to test

VMMcall Test_DBCS_Lead_Byte

jc not_valid ; carry flag set if value not legal DBCS lead byte


The Test_DBCS_Lead_Byte service tests whether the given value is in the legal range for a DBCS lead byte.

Parameters

Value

Specifies the value to test.

Return Value

The carry flag is clear if the specified value is in the legal range for DBCS lead bytes. Otherwise, the carry flag is set.

Comments

For non-DBCS versions of Windows, this service always sets the carry flag.

Uses

Flags