OSDN Git Service
(root)
/
roast
/
roast_ex_windows.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
150301b
)
registory.hpp: 10102x_registory\9_get_value_name()実装
author
Myun2
<myun2@nwhite.info>
Fri, 15 Apr 2011 19:02:23 +0000
(
04:02
+0900)
committer
Myun2
<myun2@nwhite.info>
Fri, 15 Apr 2011 19:02:23 +0000
(
04:02
+0900)
roast_ex/include/roast/windows/registory.hpp
patch
|
blob
|
history
diff --git
a/roast_ex/include/roast/windows/registory.hpp
b/roast_ex/include/roast/windows/registory.hpp
index
f3f600c
..
16b36b9
100644
(file)
--- a/
roast_ex/include/roast/windows/registory.hpp
+++ b/
roast_ex/include/roast/windows/registory.hpp
@@
-234,6
+234,14
@@
namespace roast
return s;
}
::std::string get_value_name(unsigned int index){
+ _update_query_infos();
+
+ ::std::string s(m_dwMaxValueNameLen, 0);
+ DWORD dwBufSize = m_dwMaxValueNameLen;
+ LONG r = ::RegEnumValue(m_hKey,index,(LPSTR)s.data(),&dwBufSize, NULL,NULL,NULL,NULL);
+ if ( r != ERROR_SUCCESS )
+ return "";
+ return s;
}
unsigned int get_child_key_count(){ _update_query_infos(); return m_dwSubKeyCount; }