调用 IRtlKey
来源:互联网 发布:linux 输出文件夹大小 编辑:程序博客网 时间:2024/06/07 07:43
调用 IRtlKey
voidGetInterfaceAndObject(LPWSTRpszKey,IRtlKey **pIKey,CKey **pKey)
{
IRtlSystemIsolationLayer *pSystem = NULL;
RtlGetSystem(0,NULL, &pSystem);
unsignedlongr = 2;
LUNICODE_STRINGkey,ntKey = { 0 };
RtlInitLUnicodeString(&key,pszKey);
RtlConvertWin32RegistryPathToNtRegistryPath(&key, &ntKey);
pSystem->OpenRegistryKey(1, 0xF003F, ntKey,pIKey, &r);
//unsigned long, flag0 - 4
//ACCESS_MASK, DesiredAccessF003F
//_LUNICODE_STRING const &,
// attribues, 4
//IRtlFile **, 创建的接口对象
//unsigned long * 返回值
if (pIKey)
*pKey = *(CKey **)(pIKey);
}
IRtlKey *pIKey =NULL;
CKey *pKey =NULL;
//HKEY_LOCAL_MACHINE\\SYSTEM
//ACCESS DENIED Desired Access: All Access
GetInterfaceAndObject(L"HKCU\\CSITEST", &pIKey, &pKey);
LUNICODE_STRING *KeyName =newLUNICODE_STRING();
pIKey->GetName(2,KeyName);
标志值只能为2或 3,但结果一样。
- 调用 IRtlKey
- 调用
- 调用
- 调用
- 调用
- 调用
- 调用
- 调用
- 同步调用、异步调用
- 库调用,系统调用
- 调用CSS,调用JS
- 标准调用 C调用
- 系统调用、函数调用
- 系统调用&函数调用
- 链式调用-普通调用
- 本地调用, “本地调用”和远程调用!
- 调用word
- 调用约定
- java常用的第三方组件
- 深入理解ThreadLocal
- 设计模式之单例模式(java语言)
- LightOJ-1066-bfs
- 开发ROS 程序包控制机械臂
- 调用 IRtlKey
- 关于MapReduce传参数
- Spring 与 ActiveMq的集成配置使用
- 【Android - 进阶】之图片三级缓存的原理及实现
- [数据结构与算法]#ifndef/#define/#endif使用详解
- dpkg详解
- Android中的Handler的机制与用法详解
- 遇到麻烦问题的解决~
- ER图