2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 """This is a simple helper script to shut down the Chrome Frame helper process.
7 Requires Python Win32 extensions.
18 window
= win32gui
.FindWindow('ChromeFrameHelperWindowClass',
19 'ChromeFrameHelperWindowName')
21 print 'Chrome Frame helper process not running.'
24 win32gui
.PostMessage(window
, win32con
.WM_CLOSE
, 0, 0)
25 print 'Chrome Frame helper process shut down.'
26 except pywintypes
.error
as ex
:
27 print 'Failed to shutdown Chrome Frame helper process: '
33 if __name__
== '__main__':