当前位置: 首页>>代码示例>>Python>>正文


Python DllRetracer.retraceApi方法代码示例

本文整理汇总了Python中dllretrace.DllRetracer.retraceApi方法的典型用法代码示例。如果您正苦于以下问题:Python DllRetracer.retraceApi方法的具体用法?Python DllRetracer.retraceApi怎么用?Python DllRetracer.retraceApi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dllretrace.DllRetracer的用法示例。


在下文中一共展示了DllRetracer.retraceApi方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print 'static const GUID GUID_D3DRETRACE = {0x7D71CAC9,0x7F58,0x432C,{0xA9,0x75,0xA1,0x9F,0xCF,0xCE,0xFD,0x14}};'
        print

        self.table_name = 'd3dretrace::%s_callbacks' % api.name.lower()

        Retracer.retraceApi(self, api)
开发者ID:RAOF,项目名称:apitrace,代码行数:9,代码来源:d3dretrace.py

示例2: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses'
        print 'typedef std::pair<void *, UINT> MappingKey;'
        print 'static std::map<MappingKey, void *> _maps;'
        print

        Retracer.retraceApi(self, api)
开发者ID:p-podsiadly,项目名称:apitrace,代码行数:9,代码来源:d3d9retrace.py

示例3: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses'
        print 'static std::map<void *, void *> _maps;'
        print
        self.table_name = 'd3dretrace::dxgi_callbacks'

        Retracer.retraceApi(self, api)
开发者ID:Acidburn0zzz,项目名称:apitrace,代码行数:9,代码来源:dxgiretrace.py

示例4: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses, mapping a (pDeviceContext, pResource, Subresource) -> void *'
        print 'typedef std::pair< IUnknown *, UINT > SubresourceKey;'
        print 'static std::map< IUnknown *, std::map< SubresourceKey, void * > > g_Maps;'
        print
        self.table_name = 'd3dretrace::dxgi_callbacks'

        Retracer.retraceApi(self, api)
开发者ID:AheadIO,项目名称:apitrace,代码行数:10,代码来源:dxgiretrace.py

示例5: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses'
        print 'static std::map<void *, void *> _maps;'
        print
        # TODO: Keep a table of windows
        print 'static HWND g_hWnd;'
        print

        Retracer.retraceApi(self, api)
开发者ID:Dhanasekahar,项目名称:apitrace,代码行数:11,代码来源:ddrawretrace.py

示例6: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses'
        print 'static std::map<void *, void *> _maps;'
        print
        print r'''
static void 
createWindow(DXGI_SWAP_CHAIN_DESC *pSwapChainDesc) {
    UINT Width  = pSwapChainDesc->BufferDesc.Width;
    UINT Height = pSwapChainDesc->BufferDesc.Height;
    if (!Width)  Width = 1024;
    if (!Height) Height = 768;
    pSwapChainDesc->OutputWindow = d3dretrace::createWindow(Width, Height);
}
'''

        self.table_name = 'd3dretrace::dxgi_callbacks'

        Retracer.retraceApi(self, api)
开发者ID:perftrace,项目名称:apitrace,代码行数:20,代码来源:dxgiretrace.py

示例7: retraceApi

# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import retraceApi [as 别名]
    def retraceApi(self, api):
        print '// Swizzling mapping for lock addresses'
        print 'static std::map<void *, void *> _maps;'
        print

        Retracer.retraceApi(self, api)
开发者ID:Acidburn0zzz,项目名称:apitrace,代码行数:8,代码来源:d3d9retrace.py


注:本文中的dllretrace.DllRetracer.retraceApi方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。