Some library interface functions and COM initialization.