F
F. Janse Kok
I have to write an array of little-endian shorts to the registry of my
pocket-pc
for example the value's 2 , 5 and 10 but I don't know how to work with
chr(0).
In my example below the string stops after the first character.
if (RegCreateKeyEx(HKEY_LOCAL_MACHINE,
L"SOFTWARE\\Microsoft\\MSMQ\\SimpleClient\\" , 0, NULL, 0, 0, NULL, &hKey,
&disp)== ERROR_SUCCESS)
{
char MyString[] = "\x02" "\x00" "\x05" "\x00" "\x0A" "\x00" ;
RegSetValueEx(hKey, L"RetrySchedule", 0, REG_BINARY ,
(BYTE*)MyString, strlen(MyString) );
}
Regard,
Frits Janse Kok
pocket-pc
for example the value's 2 , 5 and 10 but I don't know how to work with
chr(0).
In my example below the string stops after the first character.
if (RegCreateKeyEx(HKEY_LOCAL_MACHINE,
L"SOFTWARE\\Microsoft\\MSMQ\\SimpleClient\\" , 0, NULL, 0, 0, NULL, &hKey,
&disp)== ERROR_SUCCESS)
{
char MyString[] = "\x02" "\x00" "\x05" "\x00" "\x0A" "\x00" ;
RegSetValueEx(hKey, L"RetrySchedule", 0, REG_BINARY ,
(BYTE*)MyString, strlen(MyString) );
}
Regard,
Frits Janse Kok