Port SDKDemo in C++ to C# for both 32bit and 64bit.