Returns the Windows startup values.
call "PC_WIN_INIT" using hInst
hPrevInst
lpszCmdLine
nCmdShow
returning status-code
| Using call prototype (see Key) | Picture | |
|---|---|---|
| hInst | cblt-HINSTANCE | usage pointer. |
| hPrevInst | cblt-HINSTANCE | usage pointer. |
| lpszCmdLine | cblt-pointer | usage pointer. |
| nCmdShow | cblt-x4-comp5 | pic x(4) comp-5. |
| status-code | See Library Routines - Key |
None
| hInst | The handle of this instance. |
| hPrevInst | The handle of the previous instance. |
| lpszCmdLine | A pointer to the command line. Not for COBOL use. |
| nCmdShow | Flags to indicate the attributes attached to any windows created. |
Comments:
When starting a Windows application Windows returns four start-up values. These are required when calling a number of the Windows API routines. When using the shared run-time system, it is necessary to call this routine to get the start-up values so you can then use the Windows API.
You should not access the command line using the parameter passed here. Use ACCEPT ... FROM COMMAND-LINE instead.
This library routine is supported by the JVM runtime.