I am trying to use ESE/ESENT (esent.dll) through the Windows SDK. But, depending on the version of Windows, the esent.dll is not the same.
For example, in Windows 2000, the initialisation is different than in Windows Vista+, there are some interesting parameters that were added.
So, instead of programming our software differently depending on the client OS, could we just take the latest version of esent.dll and distribute it with our software ?
Most likely not. You are talking about system component here. Windows's EULA does not allow partual transfer of a Windows copy.
I suggest you to look for alternatives (e.g. MSDE) to see your requirement can be met on Windows 2000.