终端机器重启动

PDA终端程序冷启动或热启动

HINSTANCE hCommDll = NULL;

         hCommDll = LoadLibrary(_T("Coredll.dll"));

         if(hCommDll != NULL)

         {

                   KernelIoControl func = NULL;

                   func = (KernelIoControl)GetProcAddress(hCommDll,_T("KernelIoControl"));

                   if(func == NULL)

                   {

                            AfxMessageBox(_T("未找到函数KernelIoControl"));

                   }

 

                   func(0x101003C,NULL,0,NULL,0,NULL);

         }

         FreeLibrary(hCommDll);

 

//IOCTL_HAL_REBOOT 0x101003C   热启动

//IOCTL_COLD_BOOT              冷启动

猜你喜欢

转载自blog.csdn.net/xjcwzp/article/details/6582108