2e2f3f58b5
http://codereview.appspot.com/5036044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2274 2bbb7eff-a529-9590-31e7-b0007b416f81
31 lines
547 B
C++
31 lines
547 B
C++
|
|
/*
|
|
* Copyright 2011 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
|
|
#ifndef SkAutoCo_DEFINED
|
|
#define SkAutoCo_DEFINED
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
#include "SkTemplates.h"
|
|
|
|
/**
|
|
* An instance of this class initializes COM on creation
|
|
* and closes the COM library on destruction.
|
|
*/
|
|
class SkAutoCoInitialize : SkNoncopyable {
|
|
private:
|
|
HRESULT fHR;
|
|
public:
|
|
SkAutoCoInitialize();
|
|
~SkAutoCoInitialize();
|
|
bool succeeded();
|
|
};
|
|
|
|
#endif
|