WindowsApi/Win32/Wlanapi/WlanapiBase.Struct.cs

(开头部分) 19KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Utils.WindowsApi
{
	[StructLayout(LayoutKind.Sequential)]
	public struct WlanNotificationData
	{
		/// <summary>
		/// Specifies where the notification comes from.
		/// </summary>
		/// <remarks>
		/// On Windows XP SP2, this field must be set to <see cref="WlanNotificationSource.None"/>, 
		/// <see cref="WlanNotificationSource.All"/> or <see cref="WlanNotificationSource.ACM"/>.
		/// </remarks>
		public WlanNotificationSource NotificationSource;
		/// <summary>
		/// Indicates the type of notification. The value of this field indicates what type of associated data will be present in <see cref="dataPtr"/>.
		/// </summary>
		public int NotificationCode;
		/// <summary>
		/// Indicates which interface the notification is for.
		/// </summary>
		public Guid InterfaceGuid;
		/// <summary>
		/// Specifies the size of <see cref="dataPtr"/>, in bytes.
		/// </summary>
		public int DataSize;
		/// <summary>
		/// Pointer to additional data needed for the notification, as indicated by <see cref="notificationCode"/>.
		/// </summary>
		public IntPtr DataPtr;

		/// <summary>
		/// Gets the notification code (in the correct enumeration type) according to the notification source.
		/// </summary>
		public object WlanNotificationCode
		{
			get
			{
				if (NotificationSource == WlanNotificationSource.WLAN_NOTIFICATION_SOURCE_MSM)
					return (WlanNotificationCodeMsm)NotificationCode;
				else if (NotificationSource == WlanNotificationSource.WLAN_NOTIFICATION_SOURCE_ACM)
					return (WlanNotificationCodeAcm)NotificationCode;
				else
					return NotificationCode;
			}

		}
	}

	/// <summary>
	/// Contains information about a LAN interface.
	/// </summary>
	[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
后面还有 522 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。