本文整理汇总了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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)