Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Management
Network Management
 ALERT_VAR_DATA Macro

  Switch on low bandwidth view
ALERT_VAR_DATA Macro

The ALERT_VAR_DATA macro returns a pointer to the variable-length portion of an alert message. Variable-length data can follow an ADMIN_OTHER_INFO, a PRINT_OTHER_INFO, or a USER_OTHER_INFO structure.

Syntax

C++
LPBYTE ALERT_VAR_DATA(
    LPBYTE p
);

Parameters

p

Pointer to an ADMIN_OTHER_INFO, a PRINT_OTHER_INFO, or a USER_OTHER_INFO structure that was specified in a call to the NetAlertRaise function or the NetAlertRaiseEx function.

Return Value

The return value is a pointer to the variable-length data that follows the fixed-length structure in the alert message.

Remarks

The ALERT_VAR_DATA macro is defined as follows:

#include <windows.h>

#define ALERT_VAR_DATA(p)      ((LPBYTE)(p) + sizeof(*p))

See NetAlertRaise and NetAlertRaiseEx for code samples that use the ALERT_VAR_DATA macro to retrieve a pointer to the variable-length data in an alert message.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmalert.h (include Lm.h)

See Also

Network Management Overview
Network Management Macros
Alert Functions
ADMIN_OTHER_INFO
PRINT_OTHER_INFO
USER_OTHER_INFO
NetAlertRaise
NetAlertRaiseEx
ALERT_OTHER_INFO

Send comments about this topic to Microsoft

Build date: 7/9/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker