STARTUPINFO结构的内容如下:
cb As Long
lpReserved As String
lpDesktop As String
lpTitle As String
dwX As Long
dwY As Long
dwXSize As Long
dwYSize As Long
dwXCountChars As Long
dwYCountChars As Long
dwFillAttribute As Long
dwFlags As Long
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Long
hStdInput As Long
hStdOutput As Long
hStdError As Long
希望大家谁可以解释一下这些参数都是什么意思呢?谢了先!
參考答案:在VB的帮助里index里打入STARTUPINFO可以阅读所有参数定义。
VC++里的参数同它一样。
如果要列出来,内容太多。一般来说,自己用时,用不了几个参数,不必全弄懂。
cb 定义结构大小,单位BYTE.
*Reserved* 都是保留变量,填NULL.
dwX dwY 窗位置偏移量,定义STARTF_USEPOSITION时用
dwXSize dwYSize 窗位的大小,定义STARTF_USESIZE时用
dwXCountChars dwYCountChars, 定义STARTF_USECOUNTCHARS时用
dwFlags : STARTF_FORCEONFEEDBACK,STARTF_FORCEOFFFEEDBACK,STARTF_RUNFULLSCREEN,STARTF_USECOUNTCHARS,STARTF_USEFILLATTRIBUTE,STARTF_USEPOSITION,STARTF_USESHOWWINDOW,STARTF_USESIZE,STARTF_USESTDHANDLES
wShowWindow 定义STARTF_USESHOWWINDOW时用
....