HELPER_ATTRIBUTE structure (ndattrib.h)
The HELPER_ATTRIBUTE structure contains all NDF supported data types.
Syntax
typedef struct tagHELPER_ATTRIBUTE {
LPWSTR pwszName;
ATTRIBUTE_TYPE type;
union {
BOOL Boolean;
char Char;
byte Byte;
short Short;
WORD Word;
int Int;
DWORD DWord;
LONGLONG Int64;
ULONGLONG UInt64;
LPWSTR PWStr;
GUID Guid;
LIFE_TIME LifeTime;
DIAG_SOCKADDR Address;
OCTET_STRING OctetString;
};
} HELPER_ATTRIBUTE, *PHELPER_ATTRIBUTE;
Members
pwszName
Type: [string] LPWSTR
A pointer to a null-terminated string that contains the name of the attribute.
type
Type: ATTRIBUTE_TYPE
The type of helper attribute.
Boolean
Type: BOOL
A True or False value. Used when type is AT_BOOLEAN.
Char
Type: char
A character value. Used when type is AT_INT8.
Byte
Type: byte
A byte value. Used when type is AT_UINT8.
Short
Type: short
A 16-bit signed value. Used when type is AT_INT16
Word
Type: WORD
A 2-byte unsigned value. Used when type is AT_UINT16.
Int
Type: int
A 4-byte signed value. Used when type is AT_INT32.
DWord
Type: DWORD
A 4-byte unsigned value. Used when type is AT_UINT32.
Int64
Type: LONGLONG
A 64-bit signed integer value. Used when type is AT_INT64.
UInt64
Type: ULONGLONG
A 64-bit unsigned integer value. Used when type is AT_UINT64.
PWStr
Type: LPWSTR
A null-terminated string value. Used when type is AT_STRING.
Guid
Type: GUID
A GUID structure. Used when type is AT_GUID.
LifeTime
Type: LIFE_TIME
A LIFE_TIME structure. Used when type is AT_LIFE_TIME.
Address
Type: DIAG_SOCKADDR
An IPv4 or IPv6 address. Used when type is AT_SOCKADDR.
OctetString
Type: OCTET_STRING
A byte array for undefined types. Used when type is AT_OCTET_STRING.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | ndattrib.h |