Package winappdbg :: Package win32
[hide private]
[frames] | no frames]

Source Code for Package winappdbg.win32

 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  """ 
32  Debugging API wrappers in ctypes. 
33  """ 
34   
35  __revision__ = "$Id: __init__.py 1299 2013-12-20 09:30:55Z qvasimodo $" 
36   
37  import defines 
38  import kernel32 
39  import user32 
40  import advapi32 
41  import wtsapi32 
42  import shell32 
43  import shlwapi 
44  import psapi 
45  import dbghelp 
46  import ntdll 
47   
48  from defines    import * 
49  from kernel32   import * 
50  from user32     import * 
51  from advapi32   import * 
52  from wtsapi32   import * 
53  from shell32    import * 
54  from shlwapi    import * 
55  from psapi      import * 
56  from dbghelp    import * 
57  from 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