NWUXSetUniFunctions

Specifies the functions to be used to handle unmappable Unicode characters and special Unicode sequences during unicode-to-byte 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) NWUXSetUniFunctions  ( 
      pCONVERT   byteUniHandle,  
      NMUNI      noMapUniFunc,  
      SCUNI      scanUniFunc,  
      PRUNI      parseUniFunc);
   

Pascal Syntax

   uses netwin32 
    
   Function NWUXSetUniFunctions 
     (byteUniHandle : pCONVERT;
     noMapUniFunc : NMUNI;
     scanUniFunc : SCUNI;
     parseUniFunc : PRUNI
   ): nint;
   

Parameters

byteUniHandle
(IN) Points to the converter handle.
noMapUniFunc
(IN) Specifies the Unicode function to be called when unmappable Unicode characters are found.
scanUniFunc
(IN) Specifies the function to scan for special Unicode sequences.
parseUniFunc
(IN) Specifies the function to parse special Unicode sequences.

Return Values

0x0000

SUCCESSFUL

0xFDE9

NWU_NULL_HANDLE

0xFDEA

NWU_BAD_HANDLE

0xFDEB

NWU_HANDLE_MISMATCH

Remarks

NWUXSetUniFunctions will not set the action code to NWU_CALL_HANDLER.

Values for the noMapUniFunc, scanUniFunc, and parseUniFunc parameters follow:

See exsufunc.c for sample code.

See Also

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