LONG RegCreateKeyEx(
  HKEY hKey,                                  // handle to open key
  LPCTSTR lpSubKey,                           // subkey name
  DWORD Reserved,                             // reserved
  LPTSTR lpClass,                             // class string
  DWORD dwOptions,                            // special options
  REGSAM samDesired,                          // desired security access
  LPSECURITY_ATTRIBUTES lpSecurityAttributes, // inheritance
  PHKEY phkResult,                            // key handle 
  LPDWORD lpdwDisposition                     // disposition value buffer
);lpClass究竟是什么意思,我知道可以传个NULL给它,但是这个究竟是干什么用的?望高手解答

解决方案 »

  1.   

    lpClass参数 
    No classes are currently defined; applications should pass a null string. 
    目前没有类别被定义,应用程序应该传进一个空字符串。
      

  2.   

    很多人都这么讲,可是MSDN中不是这么写的啊,No classes are currently defined; applications should pass a null string这句话在哪本权威的书上找的?
      

  3.   

    MSDN里说是用户自定义类型,可以为NULL。