NWUXSetByteFunctions

Specifies the functions to be used to handle unmappable bytes and special byte sequences during byte-to-unicode conversion

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <nunicode.h> 
    
   N_EXTERN_LIBRARY(nint) NWUXSetByteFunctions  ( 
      pCONVERT   byteUniHandle,  
      NMBYTE     noMapByteFunc,  
      SCBYTE     scanByteFunc,  
      PRBYTE     parseByteFunc);
   

Pascal Syntax

   uses netwin32 
    
   Function NWUXSetByteFunctions 
     (byteUniHandle : pCONVERT;
     noMapByteFunc : NMBYTE;
     scanByteFunc : SCBYTE;
     parseByteFunc : PRBYTE
   ): nint;
   

Parameters

byteUniHandle
(IN) Points to the converter handle.
noMapByteFunc
(IN) Specifies the function to be called when an unmappable byte is found.
scanByteFunc
(IN) Specifies the function to scan for special byte sequences.
parseByteFunc
(IN) Specifies the function to parse special byte sequences.

Return Values

0x0000

SUCCESSFUL

0xFDE9

NWU_NULL_HANDLE

0xFDEA

NWU_BAD_HANDLE

0xFDEB

NWU_HANDLE_MISMATCH

Remarks

NWUXSetByteFunctions will not set the action code to NWU_CALL_HANDLER.

Values for the noMapByteFunc, scanByteFunc, and parseByteFunc parameters follow:

See exsbfunc.c for sample code.

See Also

NWUXGetByteFunctions, NWUXGetUniFunctions, NWUXGetSubByte, NWUXGetSubUni, NWUXResetConverter, NWUXSetNoMapAction, NWUXSetUniFunctions, NWUXSetSubByte, NWUXSetSubUni