michael@0: michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkAutoCo_DEFINED michael@0: #define SkAutoCo_DEFINED michael@0: michael@0: #define WIN32_LEAN_AND_MEAN michael@0: #include michael@0: #include "SkTemplates.h" michael@0: michael@0: /** michael@0: * An instance of this class initializes COM on creation michael@0: * and closes the COM library on destruction. michael@0: */ michael@0: class SkAutoCoInitialize : SkNoncopyable { michael@0: private: michael@0: HRESULT fHR; michael@0: public: michael@0: SkAutoCoInitialize(); michael@0: ~SkAutoCoInitialize(); michael@0: bool succeeded(); michael@0: }; michael@0: michael@0: #endif