internal static bool SetEntryString(string name, string value, bool force = false) { UIntPtr size; byte[] namePtr = CreateUTF8String(name, out size); UIntPtr stringSize; byte[] stringPtr = CreateUTF8String(value, out stringSize); int retVal = Interop.NT_SetEntryString(namePtr, size, stringPtr, stringSize, force ? 1 : 0); return(retVal != 0); }