locked
AlarmApplicationManager does not work in Win81 Preview

    Question

  • Repro steps:

    1. Start Visual Studio 2013 Preview, create C++ Windows Store App - Blank App.

    2. Insert the following code at the top of App::OnLaunched():

    AlarmAccessStatus status = AlarmApplicationManager::GetAccessStatus();
    status;

    3. Build the app (I used Debug/Win32), set breakpoint on the first line above.

    4. Launch the app and step over AlarmApplicationManager::GetAccessStatus().

    5. EXPECTED: one of AlarmAccessStatus enumeration values returned. ACTUAL: exception with HRESULT = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND).

    6. Similarly, AlarmApplicationManager::RequestAccessAsync() fails immediately with HRESULT_FROM_WIN32(ERROR_NOT_FOUND) without creating async task.

    Is there a workaround?

    Thanks!

    Monday, August 5, 2013 12:00 AM

Answers