If the XLL is loaded not by Excel.exe, but by a HPC cluster container DLL,
then GetModuleHandle(null) would return the process EXE module handle.
In that case GetProcAddress would fail, since the process EXE doesn't
export EXCEL12ENTRYPT ( since it's not Excel.exe).
First try to fetch the known good entry point,
then set the passed in address.
This function explicitly sets EXCEL12ENTRYPT.
If the XLL is loaded not by Excel.exe, but by a HPC cluster container DLL, then GetModuleHandle(null) would return the process EXE module handle. In that case GetProcAddress would fail, since the process EXE doesn't export EXCEL12ENTRYPT ( since it's not Excel.exe).
First try to fetch the known good entry point, then set the passed in address.