237 |
|
|
238 |
rc = RegCreateKey( HKEY_CLASSES_ROOT, ext, ® ); |
rc = RegCreateKey( HKEY_CLASSES_ROOT, ext, ® ); |
239 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
240 |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (byte *)extname, strlen( extname ) ); |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (BYTE *)extname, strlen( extname ) ); |
241 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
242 |
rc = RegCloseKey( reg ); |
rc = RegCloseKey( reg ); |
243 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
244 |
rc = RegCreateKey( HKEY_CLASSES_ROOT, extname, ® ); |
rc = RegCreateKey( HKEY_CLASSES_ROOT, extname, ® ); |
245 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
246 |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (byte *) extname, strlen( extname ) ); |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (BYTE *) extname, strlen( extname ) ); |
247 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
248 |
rc = RegCloseKey( reg ); |
rc = RegCloseKey( reg ); |
249 |
if( !rc_ok( rc ) ) { |
if( !rc_ok( rc ) ) { |
260 |
|
|
261 |
rc = RegCreateKey( HKEY_CLASSES_ROOT, deficon, ® ); |
rc = RegCreateKey( HKEY_CLASSES_ROOT, deficon, ® ); |
262 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
263 |
rc = RegSetValueEx(reg, NULL, 0, REG_SZ, (byte *)iconfile, strlen( iconfile ) ); |
rc = RegSetValueEx(reg, NULL, 0, REG_SZ, (BYTE *)iconfile, strlen( iconfile ) ); |
264 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
265 |
rc = RegCloseKey( reg ); |
rc = RegCloseKey( reg ); |
266 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
267 |
rc = RegCreateKey( HKEY_CLASSES_ROOT, defexec, ® ); |
rc = RegCreateKey( HKEY_CLASSES_ROOT, defexec, ® ); |
268 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
269 |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (byte *)p_exefile, strlen( exefile ) ); |
rc = RegSetValueEx( reg, NULL, 0, REG_SZ, (BYTE *)p_exefile, strlen( exefile ) ); |
270 |
if( rc_ok( rc ) ) |
if( rc_ok( rc ) ) |
271 |
rc = RegCloseKey( reg ); |
rc = RegCloseKey( reg ); |
272 |
if( !rc_ok( rc ) ) { |
if( !rc_ok( rc ) ) { |