Computer Science, asked by dksreekamali, 8 months ago

Which is the parameter of the WinMain():
a.HInstance

b.hPrecInstance

c.Int nCmdShow

d.All of these

Answers

Answered by vinod04jangid
0

Answer:

d.All of these

Explanation:

A take care of to the preceding example of the utility. This parameter is usually NULL. If you want to locate whether or not some other example already exists, create a uniquely named mutex the usage of the CreateMutex feature. CreateMutex will be triumphant even though the mutex already exists, however the feature will go back ERROR_ALREADY_EXISTS. This shows that some other example of your utility exists, as it created the mutex first. However, a malicious consumer can create this mutex earlier than you do and save you your utility from starting. To save you this situation, create a randomly named mutex and shop the call in order that it could most effective be acquired with the aid of using a certified consumer. Alternatively, you may use a record for this purpose. To restrict your utility to 1 example in line with consumer, create a locked record withinside the consumer's profile directory.

[in] lpCmdLine

Type: LPSTR.

#spj2

Answered by kartavyaguptasl
0

Answer:

The correct option for the parameters for WinMain( ) is found to be (d) All of these.

Explanation:

All Windows programs include an entry point function called WinMain or wWinMain. This is the signature of wWinMain.  

int  WINAPI  wWinMain(HINSTANCE hInstance,  HINSTANCE hPrevInstance,  PWSTR pCmdLine,  int nCmdShow ) ;

The four parameters are:

  • hInstance is what is called a "handle to an instance" or a "handle to a module". The operating system uses this value to identify when loading an executable (EXE) file into memory. Instance handles are required for certain Windows functions, such as loading icons and bitmaps.  
  • hPrevInstance has no meaning. Used on 16-bit Windows, it is now always null.
  • pCmdLine contains command line arguments as a Unicode string.  
  • nCmdShow is a flag that indicates whether the main application window is minimized, maximized, or displayed normally.

#SPJ3

Similar questions