Skip to content

API for native window handle #233106

@TylerLeonhardt

Description

@TylerLeonhardt

For Broker support in Microsoft Authentication (#229431) we need the window handle for this API:
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/brokering.md#window-parenting

So, I need to be able to access the window handle from Main alllll the way in an extension.

Here's the proposal:

	export namespace env {
		/**
		 * Retrieves the native window handle of the current window.
		 *
		 * @returns A promise that resolves to a Buffer containing the native window handle.
		 */
		export function getNativeWindowHandle(): Thenable<Buffer | undefined>;
	}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions