What action should you perform in DllMain?

You are the IT professional who work in an International company named Wiikigo. You are experienced in troubleshooting operating systems and applications that are not working correctly, identifying code defects and so on. You have enough knowledge on windows internals and you provide technical support for the company. You are in charge of an application. Two processes are contained in this application. Several custom dynamic link libraries (DLLs) need to be loaded by both of the processes. The DLL entry point is named DllMain. A third-party DLL is loaded by DllMain.

You have to avoid loader deadlock and make sure that the application is able to use the third-party DLL at all times. What action should you perform in DllMain?

You are the IT professional who work in an International company named Wiikigo. You are experienced in troubleshooting operating systems and applications that are not working correctly, identifying code defects and so on. You have enough knowledge on windows internals and you provide technical support for the company. You are in charge of an application. Two processes are contained in this application. Several custom dynamic link libraries (DLLs) need to be loaded by both of the processes. The DLL entry point is named DllMain. A third-party DLL is loaded by DllMain.

You have to avoid loader deadlock and make sure that the application is able to use the third-party DLL at all times. What action should you perform in DllMain?

A.
A COM thread should be initialized to load the third-party DLL by using CoInitializeEx.

B.
LoadLibraryEx should be called indirectly to load the third-party DLL.

C.
Loading the third-party DLL should be deferred to another export function.

D.
CreateProcess should be called and the third-party DLL should be loaded by using this new process.



Leave a Reply 0

Your email address will not be published. Required fields are marked *