sustaining_gazes/lib/local/CamCom/comet_auto_mf.h

21 lines
313 B
C
Raw Normal View History

2016-05-20 20:48:43 +00:00
#pragma once
#include "comet/handle_except.h"
#include <mfapi.h>
namespace comet
{
struct auto_mf
{
auto_mf(DWORD dwFlags = MFSTARTUP_FULL)
{
MFStartup(MF_VERSION) | comet::raise_exception;
}
~auto_mf()
{
MFShutdown();
}
};
}