NWUSByteToUnicodePath
Converts a NULL-terminated file path byte string into a Unicode string
#include <nunicode.h> N_EXTERN_LIBRARY(nint) NWUSByteToUnicodePath ( punicode unicodeOutput, nuint outputBufferLen, const nuint8 N_FAR *byteInput, pnuint actualLength);
uses netwin32 Function NWUSByteToUnicodePath (unicodeOutput : punicode; outputBufferLen : nuint; byteInput : const nuint8; actualLength : pnuint ): nint;
Call NWUSByteToUnicodePath whenever the byte string to be converted is a file path.
NWUSByteToUnicodePath converts an unmappable byte into the substitute Unicode character.
NWUSByteToUnicodePath converts a special byte sequence into a Unicode character. For example, "[2620]" is converted to the single Unicode character, 0x2620.
Call NWUSByteToUnicodePath to determine the size of the string before it is converted by setting the unicodeOutput parameter to NULL. The outputBufferLen parameter will be ignored, a converted string will not be returned, and the length of the string if it were converted will be returned in the actualLength parameter.
See esbunip.c for sample code.