MCPcopy Create free account
hub / github.com/M2Team/NanaBox / OnQueryEndSession

Method OnQueryEndSession

NanaBox/MainWindow.cpp:501–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501BOOL NanaBox::MainWindow::OnQueryEndSession(
502 UINT nSource,
503 UINT uLogOff)
504{
505 UNREFERENCED_PARAMETER(nSource);
506 UNREFERENCED_PARAMETER(uLogOff);
507
508 ::ShutdownBlockReasonCreate(
509 this->m_hWnd,
510 Mile::WinRT::GetLocalizedString(
511 L"ExitConfirmationPage/GridTitleTextBlock/Text").c_str());
512
513 // Notify the OS to prevent shut down because shut down automatically
514 // without exiting NanaBox may corrupt the user's virtual machine.
515 return FALSE;
516}
517
518void NanaBox::MainWindow::InitializeVirtualMachine()
519{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected