44 lines
878 B
C++
44 lines
878 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
// PARTICULAR PURPOSE.
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <new>
|
|
#include <windows.h>
|
|
#include <windowsx.h>
|
|
#include <d3d9.h>
|
|
|
|
#include <mfapi.h>
|
|
#include <mfidl.h>
|
|
#include <mfreadwrite.h>
|
|
#include <mferror.h>
|
|
|
|
#include <strsafe.h>
|
|
#include <assert.h>
|
|
|
|
#include <ks.h>
|
|
#include <ksmedia.h>
|
|
#include <Dbt.h>
|
|
|
|
template <class T> void SafeRelease(T **ppT)
|
|
{
|
|
if (*ppT)
|
|
{
|
|
(*ppT)->Release();
|
|
*ppT = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
#include "device.h"
|
|
#include "preview.h"
|
|
|
|
|
|
|