1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4# Copyright (c) 2009-2014, Mario Vilas
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:
9#
10#     * Redistributions of source code must retain the above copyright notice,
11#       this list of conditions and the following disclaimer.
12#     * Redistributions in binary form must reproduce the above copyright
13#       notice,this list of conditions and the following disclaimer in the
14#       documentation and/or other materials provided with the distribution.
15#     * Neither the name of the copyright holder nor the names of its
16#       contributors may be used to endorse or promote products derived from
17#       this software without specific prior written permission.
18#
19# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29# POSSIBILITY OF SUCH DAMAGE.
30
31"""
32Debugging API wrappers in ctypes.
33"""
34
35__revision__ = "$Id$"
36
37from winappdbg.win32 import defines
38from winappdbg.win32 import kernel32
39from winappdbg.win32 import user32
40from winappdbg.win32 import advapi32
41from winappdbg.win32 import wtsapi32
42from winappdbg.win32 import shell32
43from winappdbg.win32 import shlwapi
44from winappdbg.win32 import psapi
45from winappdbg.win32 import dbghelp
46from winappdbg.win32 import ntdll
47
48from winappdbg.win32.defines    import *
49from winappdbg.win32.kernel32   import *
50from winappdbg.win32.user32     import *
51from winappdbg.win32.advapi32   import *
52from winappdbg.win32.wtsapi32   import *
53from winappdbg.win32.shell32    import *
54from winappdbg.win32.shlwapi    import *
55from winappdbg.win32.psapi      import *
56from winappdbg.win32.dbghelp    import *
57from winappdbg.win32.ntdll      import *
58
59# This calculates the list of exported symbols.
60_all = set()
61_all.update(defines._all)
62_all.update(kernel32._all)
63_all.update(user32._all)
64_all.update(advapi32._all)
65_all.update(wtsapi32._all)
66_all.update(shell32._all)
67_all.update(shlwapi._all)
68_all.update(psapi._all)
69_all.update(dbghelp._all)
70_all.update(ntdll._all)
71__all__ = [_x for _x in _all if not _x.startswith('_')]
72__all__.sort()
73