Calico
 All Classes Namespaces Files Functions Variables Typedefs Friends Groups
wmain_args_type Struct Reference

Type of wmain_args. More...

#include <winentry.h>

Public Attributes

wchar_t ** argv
 Contains the arguments of the program in UTF-16. More...
 
void * hInstance
 Contains the instance handle of the program (GUI only). More...
 
wchar_t * lpCmdLine
 Command-line of the program, excluding its name (GUI only). More...
 
int nCmdShow
 Initial state of the main window (GUI only). More...
 

Detailed Description

Type of wmain_args.

Used to store the arguments of the Windows main function.

Member Data Documentation

wchar_t** wmain_args_type::argv

Contains the arguments of the program in UTF-16.

Note: unlike the standard C version of argv, attempting to read argv[argc] is undefined behavior.

void* wmain_args_type::hInstance

Contains the instance handle of the program (GUI only).

Note that void* may be cast to HINSTANCE.

wchar_t* wmain_args_type::lpCmdLine

Command-line of the program, excluding its name (GUI only).

Note that wchar_t* is equivalent to LPWSTR.

int wmain_args_type::nCmdShow

Initial state of the main window (GUI only).

The parameter should be passed to the first invocation of ShowWindow.