This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a couple of APIs from user32.dll (#595)
* add a couple of APIs from user32.dll
- Loading branch information
1 parent
2634eea
commit e95629b
Showing
5 changed files
with
414 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright © .NET Foundation and Contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace PInvoke | ||
{ | ||
using System; | ||
|
||
/// <content> | ||
/// Contains the <see cref="ICONINFO"/> nested type. | ||
/// </content> | ||
public partial class User32 | ||
{ | ||
/// <summary> | ||
/// Contains information about an icon or a cursor. | ||
/// </summary> | ||
public struct ICONINFO | ||
{ | ||
/// <summary> | ||
/// Contains information about an icon or a cursor. | ||
/// </summary> | ||
public bool fIcon; | ||
|
||
/// <summary> | ||
/// The x-coordinate of a cursor's hot spot. If this structure defines an icon, | ||
/// the hot spot is always in the center of the icon, and this member is ignored. | ||
/// </summary> | ||
public int xHotspot; | ||
|
||
/// <summary> | ||
/// The y-coordinate of the cursor's hot spot. If this structure defines an icon, | ||
/// the hot spot is always in the center of the icon, and this member is ignored. | ||
/// </summary> | ||
public int yHotspot; | ||
|
||
/// <summary> | ||
/// The icon bitmask bitmap. If this structure defines a black and white icon, this bitmask | ||
/// is formatted so that the upper half is the icon AND bitmask and the lower half is the icon | ||
/// XOR bitmask. Under this condition, the height should be an even multiple of two. | ||
/// If this structure defines a color icon, this mask only defines the AND bitmask of the icon. | ||
/// </summary> | ||
public IntPtr hbmMask; | ||
|
||
/// <summary> | ||
/// A handle to the icon color bitmap. This member can be optional if this structure defines | ||
/// a black and white icon. The AND bitmask of hbmMask is applied with the SRCAND flag to the destination; | ||
/// subsequently, the color bitmap is applied (using XOR) to the destination by using the SRCINVERT flag. | ||
/// </summary> | ||
public IntPtr hbmColor; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright © .NET Foundation and Contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace PInvoke | ||
{ | ||
/// <content> | ||
/// Contains the <see cref="Icons"/> nested type. | ||
/// </content> | ||
public static partial class User32 | ||
{ | ||
/// <summary> | ||
/// Represents system predefined cursors. | ||
/// </summary> | ||
public enum Icons | ||
{ | ||
/// <summary>Default application icon.</summary> | ||
IDI_APPLICATION = 32512, | ||
|
||
/// <summary>Asterisk icon. Same as IDI_INFORMATION.</summary> | ||
IDI_ASTERISK = 32516, | ||
|
||
/// <summary>Hand-shaped icon.</summary> | ||
IDI_ERROR = 32513, | ||
|
||
/// <summary>Exclamation point icon.Same as IDI_WARNING.</summary> | ||
IDI_EXCLAMATION = 32515, | ||
|
||
/// <summary>Hand-shaped icon.Same as IDI_ERROR.</summary> | ||
IDI_HAND = 32513, | ||
|
||
/// <summary>Asterisk icon.</summary> | ||
IDI_INFORMATION = 32516, | ||
|
||
/// <summary>Question mark icon.</summary> | ||
IDI_QUESTION = 32514, | ||
|
||
/// <summary>Security Shield icon.</summary> | ||
IDI_SHIELD = 32518, | ||
|
||
/// <summary>Exclamation point icon.</summary> | ||
IDI_WARNING = 32515, | ||
|
||
/// <summary>Default application icon. Windows 2000: Windows logo icon.</summary> | ||
IDI_WINLOGO = 32517, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.