VRSPROCESS相关(未完) 线程中CreateEvent和SetEvent及WaitForSingleObject的用法

1.freopen( "CONOUT$","w",stdout);在操作系统中,命令行控制台(即键盘或者显示器)被视为一个文件,既然是文件,那么就有“文件名”。由于历史原因,命令行控制台文件在DOS操作系统和Windows操作系统中的文件名为"CON

win32程序启用控制台(控制台文件名:conout,conin,conerr) 
对stdin,stdout,stderr重新打开
    AllocConsole();
    freopen("conout$","w",stdout) ;
    printf("hello hplonline!-_-\n") ;
    std::cout<<"i'm cout"<<std::endl;
    freopen("conout$","w",stderr) ;
    std::cerr<<"i'm cerr"<<std::endl;
 

2.RegisterNotify,注册回调函数

操作是通过函数指针,把各个参数,赋值或者只返回0。

3.SetEvent  参考:线程中CreateEvent和SetEvent及WaitForSingleObject的用法

4.Basestation与VRS注册消息的不同:

Basestation:

VRS:

猜你喜欢

转载自www.cnblogs.com/liuliwei-leo/p/9895794.html