C++ API创建进程
摘要:#include "stdafx.h"#include <windows.h>int main(int argc, char* argv[]){//创建进程char szCommandLine[]="cmd";STARTUPINFO si={sizeof(si)};PROCESS_INFORMATION pi;si.dwFlags=STARTF_USESHOWWINDOW;si.wShowWindow=true;bool bRet=::CreateProcess(NULL,szCommandLine,NULL,NULL,FALSE,CREAT
阅读全文
posted @
2012-03-16 16:12
IamScree
阅读(6099)
推荐(0) 编辑
C++ API消息框
摘要:#include "stdafx.h"#include <windows.h>int main(int argc, char* argv[]){//消息框int nSelect=::MessageBox(NULL,"hello,windows xp","Greetings",MB_OKCANCEL);if(nSelect==IDOK)printf("用户选择了“确定”按钮\n");elseprintf("用户选择了“取消”按钮\n");return 0;}
阅读全文
posted @
2012-03-16 16:10
IamScree
阅读(332)
推荐(0) 编辑