Add (unsigned) char event_data constructors
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
3a67cd04a4
commit
973890b11b
@ -98,6 +98,34 @@ namespace winstd
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Construct class pointing to an `char`.
|
||||||
|
///
|
||||||
|
/// \param[in] data Event data
|
||||||
|
///
|
||||||
|
/// \note This class saves a reference to the data only. Therefore, data must be kept available.
|
||||||
|
///
|
||||||
|
#pragma warning(suppress: 26495) // EventDataDescCreate() initializes all members of EVENT_DATA_DESCRIPTOR
|
||||||
|
inline event_data(_In_ const char &data)
|
||||||
|
{
|
||||||
|
EventDataDescCreate(this, &data, (ULONG)(sizeof(data)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Construct class pointing to an `unsigned char`.
|
||||||
|
///
|
||||||
|
/// \param[in] data Event data
|
||||||
|
///
|
||||||
|
/// \note This class saves a reference to the data only. Therefore, data must be kept available.
|
||||||
|
///
|
||||||
|
#pragma warning(suppress: 26495) // EventDataDescCreate() initializes all members of EVENT_DATA_DESCRIPTOR
|
||||||
|
inline event_data(_In_ const unsigned char &data)
|
||||||
|
{
|
||||||
|
EventDataDescCreate(this, &data, (ULONG)(sizeof(data)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Construct class pointing to an `int`.
|
/// Construct class pointing to an `int`.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user