Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Programming Languages > VC++ > Win32API

Win32API Win32API Interview Questions, Learn by sharing Win32API Interview Questions asked in various Companies, Get Career advices, Interview Procedures from Win32API experts, Post asked Win32API Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 06:24 PM
Senior Member
 
Join Date: Feb 2008
Posts: 1,210
Default What is the Function entry for DLL

What is the Function entry for DLL in win3.1 ?
Reply With Quote
  #2 (permalink)  
Old 06-27-2008, 03:44 AM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default

BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpReserved ) // reserved

Note that this is optional,DLL can optionally specify an entry-point function. If present, the system calls the entry-point function whenever a process or thread loads or unloads the DLL. It can be used to perform simple initialization and cleanup tasks. For example, it can set up thread local storage when a new thread is created, and clean it up when the thread is terminated.

If you are linking your DLL with the C run-time library, it may provide an entry-point function for you, and allow you to provide a separate initialization function.
Reply With Quote
Reply

Tags
programming language, software, vc++, win32api

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On