20 May
2013
20 May
'13
9:46 p.m.
Hi George, static void test_classesroot(void)
{ + static const WCHAR reg_user[] = { '\\','R','E','G','I','S','T','R','Y','\\','U','S','E','R' }; + static const WCHAR reg_machine[] = { '\\','R','E','G','I','S','T','R','Y','\\','M','A','C','H','I','N','E' };
Almost, but these have to be NULL terminated, i.e.
+ static const WCHAR reg_user[] = { '\\','R','E','G','I','S','T','R','Y','\\','U','S','E','R',0 }; + static const WCHAR reg_machine[] = { '\\','R','E','G','I','S','T','R','Y','\\','M','A','C','H','I','N','E',0 };
--Juan