Please refer to UniKey SDK\Samples\Win32.C++Helper Class for the latest sample.
UniKey SDK\Samples\Win32.C++Helper Class