Skip to content

Adress Public API review comments#2106

Merged
hulumane merged 4 commits intofeature/WNP_ToastNotifications_L1from
user/pavanh/rename-part2
Feb 17, 2022
Merged

Adress Public API review comments#2106
hulumane merged 4 commits intofeature/WNP_ToastNotifications_L1from
user/pavanh/rename-part2

Conversation

@hulumane
Copy link
Copy Markdown
Member

This addresses a bunch of comments that came out of the Public API review process

@ghost ghost added the needs-triage label Feb 16, 2022
@loneursid loneursid added the area-Notifications Toast notification, badges, Live Tiles, push notifications label Feb 16, 2022
Comment thread test/TestApps/ToastNotificationsTestApp/main.cpp Outdated
Comment thread dev/AppNotifications/AppNotificationManager.cpp
Comment thread test/TestApps/ToastNotificationsTestApp/main.cpp Outdated
Comment thread test/TestApps/ToastNotificationsTestApp/main.cpp Outdated
@hulumane hulumane force-pushed the user/pavanh/rename-part2 branch from a9c3478 to 313807d Compare February 16, 2022 23:18
@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hulumane hulumane enabled auto-merge (squash) February 17, 2022 00:18
winrt::Windows::Foundation::IAsyncAction RemoveWithTagAsync(hstring const tag);
winrt::Windows::Foundation::IAsyncAction RemoveWithTagGroupAsync(hstring const tag, hstring const group);
winrt::Windows::Foundation::IAsyncAction RemoveGroupAsync(hstring const group);
winrt::Windows::Foundation::IAsyncAction RemoveByTagAsync(hstring tag);
Copy link
Copy Markdown
Contributor

@loneursid loneursid Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we losing the constness?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Will fix.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't on purpose. I promise :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll send a new PR out addressing this in a bit.

Copy link
Copy Markdown
Contributor

@loneursid loneursid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: const was removed from some APIs. It seems like it was by accident, if so, please re-introduce them before merging

@hulumane hulumane merged commit 82c1f0f into feature/WNP_ToastNotifications_L1 Feb 17, 2022
@hulumane hulumane deleted the user/pavanh/rename-part2 branch February 17, 2022 01:02
std::wstring subKey{ c_appIdentifierPath + ConvertPathToKey(wideStringProcessName) };

wil::unique_hkey hKey;
THROW_IF_FAILED(RegCreateKeyEx(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RegCreateKeyEx returns a Win32 error code, not an HRESULT, so this is a bug. use THROW_IF_WIN32_ERROR


WCHAR registeredGuidBuffer[GUID_LENGTH];
DWORD bufferLength = sizeof(registeredGuidBuffer);
HRESULT status = RegGetValueW(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RegGetValueW returns a win32 error code, not an HRESULT. use the correct type.
also, status sounds like NTSTATUS, use hr or result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Notifications Toast notification, badges, Live Tiles, push notifications needs-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants