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 冷启动