注册表

1、HKEY代表的是注册表。

LONG WINAPI RegCreateKeyEx(
  _In_       HKEY                  hKey,      //父键句柄,五个父键
  _In_       LPCTSTR               lpSubKey,    //相对路径
  _Reserved_ DWORD                 Reserved,    //null
  _In_opt_   LPTSTR                lpClass,     //null
  _In_       DWORD                 dwOptions,    //
  _In_       REGSAM                samDesired,
  _In_opt_   LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  _Out_      PHKEY                 phkResult,
  _Out_opt_  LPDWORD               lpdwDisposition
);
LONG WINAPI RegSetKeyValue(
  _In_     HKEY    hKey,
  _In_opt_ LPCTSTR lpSubKey,
  _In_opt_ LPCTSTR lpValueName,
  _In_     DWORD   dwType,
  _In_opt_ LPCVOID lpData,
  _In_     DWORD   cbData
);

 


 

posted @ 2017-09-16 01:00  _xiaohaige  阅读(154)  评论(0编辑  收藏  举报