您的位置:首页 > 其它

CCRegistryKeys

2016-04-28 22:28 344 查看

CCRegistryKeys

struct CCRegistryKeys
{
int X0;
byte X1;
char keys[624];
CCRegistryKeys() {};

};
int CRegistryKeys(CCRegistryKeys* regKey)
{
WcpInitialize();
InitializeTracingSink();
//InitializeDeltaCompressor();
cout << endl;
cout << "调用 CRegistryKeys, 初始化" << endl;

int pfb = 0x10121B98;
int pfn = (int)phWCP - 0x10000000 + pfb;

typedef int(__thiscall * fnCRegistryKeys)(CCRegistryKeys*);
fnCRegistryKeys g_fnCRegistryKeys;

g_fnCRegistryKeys = (fnCRegistryKeys)pfn;

int result = -1;
//  CCRegistryKeys regKey;
result = g_fnCRegistryKeys(regKey);

cout <<hex<< "CRegistryKeys error: "<< GetLastError() << endl;
cout << hex<<"返回结果,也是 CRegistryKeys 对象的地址: " << result << endl;

cout << "调用 CRegistryKeys 结束" << endl;;
cout << endl;;

return result;
}

CCRegistryKeys regKey   = CCRegistryKeys();
CRegistryKeys(®Key);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: