英语/计算机英语

[复制链接]
查看11 | 回复1 | 2010-7-15 18:05:21 | 显示全部楼层 |阅读模式
Handle to the current instance of the application
Handle to the previous instance of the application. This parameter is always NULL.
If you need to detect whether another instance already exists, create a uniquely named mutex using the CreateMutex function. CreateMutex will succeed even if the mutex already exists, but the GetLastError function will return ERROR_ALREADY_EXISTS. This indicates that another instance of your application exists, because it created the mutex first.
lpCmdLine
[in] Pointer to a null-terminated string specifying the command line for the application, excluding the program name. To retrieve the entire command line, use the GetCommandLine function
谢谢!帮解释下,还有specifying在这段话里我要怎么理解。万分感谢!

回复

使用道具 举报

千问 | 2010-7-15 18:05:21 | 显示全部楼层
程序中当前实例的句柄程序中上一实例的句柄参数(变量)通常为空假如你需要检测另一个实例是否已创建,通过调用CreateMutex函数创建一个唯一命名的互斥锁(mutex)。该函数在创建过程中会忽略是否存在互斥,但GetLastError函数会返回ERROR_ALREADY_EXISTS的错误说明。这就表明另一个实例已经存在于你的程序中,因为已存在的实例造成了互斥。lpCmdLine指向空终止字符串的指针,用于说明(specifying)程序应用控制命令行,但不包括主程序名称。调用GetCommandLine函数来检索所有的控制命令行语句。没有上下文只能逐字翻译成这样,专业术语尽力贴近计算机专业了,希望对你有用。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行