Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

WLAN_NOTIFICATION_DATA (Structures)
 
.
Summary
TODO - a short description

C# Definition:

/// <summary>
/// Contains information provided when registering for notifications.
/// </summary>
/// <remarks>
/// Corresponds to the native <c>WLAN_NOTIFICATION_DATA</c> type.
/// </remarks>
[StructLayout(LayoutKind.Sequential)]
public struct WLAN_NOTIFICATION_DATA
{
    /// <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 WLAN_NOTIFICATION_SOURCE 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 NotificationCode
    {
    get
    {
        if (notificationSource == WLAN_NOTIFICATION_SOURCE.MSM)
        return (WLAN_NOTIFICATION_CODE_MSM)notificationCode;
        else if (notificationSource == WLAN_NOTIFICATION_SOURCE.ACM)
        return (WLAN_NOTIFICATION_CODE_ACM)notificationCode;
        else
        return notificationCode;
    }

    }
}

VB Definition:

<StructLayout(LayoutKind.Sequential)> _
    Public Structure WLAN_NOTIFICATION_DATA
        Public notificationSource As WLAN_NOTIFICATION_SOURCE
        Public m_notificationCode As Integer
        Public interfaceGuid As Guid
        Public dataSize As Integer
        Public dataPtr As IntPtr

        Public ReadOnly Property NotificationCode() As Object
        Get
            If notificationSource = WLAN_NOTIFICATION_SOURCE.ACM Then
            Return DirectCast(m_notificationCode, WLAN_NOTIFICATION_CODE_ACM)
            Else
            Return m_notificationCode
            End If
        End Get
        End Property

    End Structure

WLAN_NOTIFICATION_SOURCE

WLAN_NOTIFICATION_CODE_MSM

WLAN_NOTIFICATION_CODE_ACM

Structure WLAN_NOTIFICATION_DATA
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions