mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
d84a13bb7e
Don't use reinterpret_cast. A cast from void* can use static_cast
28 lines
678 B
C++
28 lines
678 B
C++
#pragma once
|
|
#include <initguid.h>
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#include <dshow.h>
|
|
|
|
// disable warning 26471 - Don't use reinterpret_cast. A cast from void* can use static_cast
|
|
#pragma warning(push)
|
|
#pragma warning(disable: 26471)
|
|
#include <wil/com.h>
|
|
#pragma warning(push)
|
|
|
|
#include <winrt/Windows.Foundation.h>
|
|
|
|
#include <vector>
|
|
#include <fstream>
|
|
|
|
std::ofstream& log();
|
|
|
|
#define TRACE log() << __FUNCTION__ << '\n';
|
|
#define LOG(msg) log() << msg << '\n';
|
|
|
|
void DeleteMediaTypeHelper(AM_MEDIA_TYPE* pmt);
|
|
|
|
using unique_media_type_ptr =
|
|
wistd::unique_ptr<AM_MEDIA_TYPE, wil::function_deleter<decltype(&DeleteMediaTypeHelper), DeleteMediaTypeHelper>>;
|