The libAdikted dynamic library contains all you need to load, edit and write Dungeon Keeper 1 maps. Written in Ansi-C, it provides complete API for maintaining the map files and modifying the map in every way you can imagine.
To install libAdikted, just copy it into your sources folder and use 'make'. After that, you're ready to use the library in your projects.
Under Windows OSes you don't even need to recompile the library - just use it, including some of the header files and calling the functions.
To learn how to use libAdikted, look at the examples provided. Also, look at the ADiKtEd executable sources.