- Timestamp:
- 07/30/06 16:09:07 (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/reglookup.1.docbook
r64 r72 64 64 <command> 65 65 NONE, SZ, EXPAND_SZ, BINARY, DWORD, DWORD_BE, 66 LINK, MULTI_SZ, RSRC_LIST, RSRC_DESC, RSRC_REQ_LIST, 66 LINK, MULTI_SZ, RSRC_LIST, RSRC_DESC, RSRC_REQ_LIST, QWORD 67 67 </command> 68 68 and -
trunk/include/regfio.h
r61 r72 64 64 #define REG_FULL_RESOURCE_DESCRIPTOR 9 65 65 #define REG_RESOURCE_REQUIREMENTS_LIST 10 66 #define REG_QWORD 11 /* 64-bit little endian */ 67 /* XXX: Has MS defined a REG_QWORD_BE? */ 66 68 /* Not a real type in the registry */ 67 69 #define REG_KEY 255 -
trunk/lib/regfio.c
r65 r72 29 29 30 30 /* Registry types mapping */ 31 const unsigned int regfio_num_reg_types = 1 1;31 const unsigned int regfio_num_reg_types = 12; 32 32 static const char* regfio_type_names[] = 33 33 {"NONE", "SZ", "EXPAND_SZ", "BINARY", "DWORD", "DWORD_BE", "LINK", 34 "MULTI_SZ", "RSRC_LIST", "RSRC_DESC", "RSRC_REQ_LIST" };34 "MULTI_SZ", "RSRC_LIST", "RSRC_DESC", "RSRC_REQ_LIST", "QWORD"}; 35 35 36 36 -
trunk/src/reglookup.c
r71 r72 241 241 242 242 case REG_DWORD: 243 ascii_max = sizeof(char)* 11;243 ascii_max = sizeof(char)*(8+2+1); 244 244 ascii = malloc(ascii_max); 245 245 if(ascii == NULL) … … 252 252 253 253 case REG_DWORD_BE: 254 ascii_max = sizeof(char)* 11;254 ascii_max = sizeof(char)*(8+2+1); 255 255 ascii = malloc(ascii_max); 256 256 if(ascii == NULL) … … 261 261 return ascii; 262 262 break; 263 264 case REG_QWORD: 265 ascii_max = sizeof(char)*(16+2+1); 266 ascii = malloc(ascii_max); 267 if(ascii == NULL) 268 return NULL; 269 270 snprintf(ascii, ascii_max, "0x%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X", 271 datap[7], datap[6], datap[5], datap[4], 272 datap[3], datap[2], datap[1], datap[0]); 273 return ascii; 274 break; 275 263 276 264 277 /* XXX: this MULTI_SZ parser is pretty inefficient. Should be
Note: See TracChangeset
for help on using the changeset viewer.