Skip to content

API Review: Process Id#1763

Merged
dianaqu merged 12 commits intomasterfrom
api-child-process-info
Nov 4, 2021
Merged

API Review: Process Id#1763
dianaqu merged 12 commits intomasterfrom
api-child-process-info

Conversation

@dianaqu
Copy link
Copy Markdown

@dianaqu dianaqu commented Sep 25, 2021

This is an API review for WebView2 Process Id

* draft child process id spe

* remove white space

* add count

* modify c# section

* correct typo

* add sample code c+

* add comment to c#

* change wording of example

* rename and use updated template

* update sample

* modify c++ sample

* add c# sample

* update with moving to environment

* add background section

* update interface

* update API details section

* d

* modify enum and related change

* change API naming

* add custom type for .net

* update with ICoreWebView2StagingProcessInfo

* minor chang

* fix lower case issue

* change comment

* update .NET sample code

* remove staging prefix

* update .NET sample code

* update win32 sample code

* rename

* update sample code

* change naming

Co-authored-by: Diana Qu <xiaqu@microsoft.com>
@dianaqu dianaqu added the API Proposal Review WebView2 API Proposal for review. label Sep 25, 2021
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Copy link
Copy Markdown
Contributor

@david-risney david-risney left a comment

Choose a reason for hiding this comment

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

Please fix the issues in the IDL3 and I can create a review meeting. Thanks!

Diana Qu and others added 2 commits October 18, 2021 11:34
Co-authored-by: David Risney <dave@deletethis.net>
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
WCHAR id[4096] = L"";
StringCchPrintf(id, ARRAYSIZE(id), L"Process ID: %u", processId);

HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Handle is leaked. Save it in a wil::unique_process_handle.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes please update.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Would it be okay if I just CloseHandle(processHandle)?

Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Copy link
Copy Markdown
Contributor

@david-risney david-risney left a comment

Choose a reason for hiding this comment

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

Please update per feedback. Thanks!

Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md
Comment thread specs/ProcessInfo.md
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
WCHAR id[4096] = L"";
StringCchPrintf(id, ARRAYSIZE(id), L"Process ID: %u", processId);

HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes please update.

Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
Comment thread specs/ProcessInfo.md Outdated
@david-risney david-risney added the review completed WebView2 API Proposal that's been reviewed and now needs final update and push label Oct 28, 2021
@dianaqu dianaqu merged commit bd570e5 into master Nov 4, 2021
@peiche-ms peiche-ms deleted the api-child-process-info branch October 17, 2022 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Proposal Review WebView2 API Proposal for review. review completed WebView2 API Proposal that's been reviewed and now needs final update and push

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants