No, it's not possible. Sure, you can have the dll export a function named main, but it won't be the entry point for the process.