public bool SetValue(byte[] aData) { uint changed; GCHandle h = GCHandle.Alloc(aData, GCHandleType.Pinned); changed = ServicePropertySetValueBinary(iHandle, h.AddrOfPinnedObject(), (uint)aData.Length); h.Free(); return (changed != 0); } }