Skip to content

Commit 8b79ac8

Browse files
committed
Merge branch 'main' into drewbat/background-task-update
2 parents c6c5221 + e330a87 commit 8b79ac8

264 files changed

Lines changed: 12509 additions & 12141 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openpublishing.publish.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
{
7777
"path_to_root": "_themes",
7878
"url": "https://github.com/Microsoft/templates.docs.msft",
79-
"branch": "main",
79+
"branch": "master",
8080
"branch_mapping": {}
8181
},
8282
{
@@ -94,7 +94,7 @@
9494
{
9595
"path_to_root": "_themes.pdf",
9696
"url": "https://github.com/Microsoft/templates.docs.msft.pdf",
97-
"branch": "main",
97+
"branch": "master",
9898
"branch_mapping": {}
9999
}
100100
],
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
3-
description: Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
19-
20-
```csharp
21-
public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);
22-
```
23-
24-
### Parameters
25-
26-
`hmonitor` [IntPtr](/dotnet/api/system.intptr)
27-
28-
The handle of the display monitor for which to get the `DisplayId`.
29-
30-
### Returns
31-
32-
[DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
33-
34-
The display monitor identifier that corresponds to the specified *hmonitor*, if the provided *hmonitor* is valid. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
3+
description: Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
19+
20+
```csharp
21+
public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);
22+
```
23+
24+
### Parameters
25+
26+
`hmonitor` [IntPtr](/dotnet/api/system.intptr)
27+
28+
The handle of the display monitor for which to get the `DisplayId`.
29+
30+
### Returns
31+
32+
[DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
33+
34+
The display monitor identifier that corresponds to the specified *hmonitor*, if the provided *hmonitor* is valid. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetIconFromIconId(IconId) method
3-
description: Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetIconFromIconId(IconId) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
19-
20-
```csharp
21-
public static IntPtr GetIconFromIconId(IconId iconId);
22-
```
23-
24-
### Parameters
25-
26-
`iconId` [IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
27-
28-
The identifier for the icon.
29-
30-
### Returns
31-
32-
[IntPtr](/dotnet/api/system.intptr)
33-
34-
The icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetIconFromIconId(IconId) method
3+
description: Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetIconFromIconId(IconId) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
19+
20+
```csharp
21+
public static IntPtr GetIconFromIconId(IconId iconId);
22+
```
23+
24+
### Parameters
25+
26+
`iconId` [IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
27+
28+
The identifier for the icon.
29+
30+
### Returns
31+
32+
[IntPtr](/dotnet/api/system.intptr)
33+
34+
The icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetIconIdFromIcon(IntPtr) method
3-
description: Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetIconIdFromIcon(IntPtr) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
19-
20-
```csharp
21-
public static IconId GetIconIdFromIcon(IntPtr hicon);
22-
```
23-
24-
### Parameters
25-
26-
`hicon` [IntPtr](/dotnet/api/system.intptr)
27-
28-
The handle of the icon for which to get the `IconId`.
29-
30-
### Returns
31-
32-
[IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
33-
34-
The icon identifier that corresponds to the specified *hicon*, if the provided *hicon* is valid. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetIconIdFromIcon(IntPtr) method
3+
description: Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetIconIdFromIcon(IntPtr) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
19+
20+
```csharp
21+
public static IconId GetIconIdFromIcon(IntPtr hicon);
22+
```
23+
24+
### Parameters
25+
26+
`hicon` [IntPtr](/dotnet/api/system.intptr)
27+
28+
The handle of the icon for which to get the `IconId`.
29+
30+
### Returns
31+
32+
[IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
33+
34+
The icon identifier that corresponds to the specified *hicon*, if the provided *hicon* is valid. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetMonitorFromDisplayId(DisplayId) method
3-
description: Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetMonitorFromDisplayId(DisplayId) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
19-
20-
```csharp
21-
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
22-
```
23-
24-
### Parameters
25-
26-
`displayId` [DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
27-
28-
The identifier for the display.
29-
30-
### Returns
31-
32-
[IntPtr](/dotnet/api/system.intptr)
33-
34-
The display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetMonitorFromDisplayId(DisplayId) method
3+
description: Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetMonitorFromDisplayId(DisplayId) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
19+
20+
```csharp
21+
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
22+
```
23+
24+
### Parameters
25+
26+
`displayId` [DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
27+
28+
The identifier for the display.
29+
30+
### Returns
31+
32+
[IntPtr](/dotnet/api/system.intptr)
33+
34+
The display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)

0 commit comments

Comments
 (0)