github.com/iDigitalFlame/xmt@v0.5.4/device/winapi/registry/consts.go (about) 1 // Copyright (C) 2020 - 2023 iDigitalFlame 2 // 3 // This program is free software: you can redistribute it and/or modify 4 // it under the terms of the GNU General Public License as published by 5 // the Free Software Foundation, either version 3 of the License, or 6 // any later version. 7 // 8 // This program is distributed in the hope that it will be useful, 9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // GNU General Public License for more details. 12 // 13 // You should have received a copy of the GNU General Public License 14 // along with this program. If not, see <https://www.gnu.org/licenses/>. 15 // 16 17 // Package registry contains code to handle common Windows registry operations. 18 // 19 // Optimized copy from sys/windows/registry to work with Crypt. 20 package registry 21 22 import "github.com/iDigitalFlame/xmt/util/xerr" 23 24 // Registry value types. 25 const ( 26 TypeString = 1 27 TypeExpandString = 2 28 TypeBinary = 3 29 TypeDword = 4 30 TypeStringList = 7 31 TypeQword = 11 32 ) 33 34 var ( 35 // ErrUnexpectedSize is returned when the key data size was unexpected. 36 ErrUnexpectedSize = xerr.Sub("unexpected key size", 0x15) 37 // ErrUnexpectedType is returned by Get*Value when the value's type was 38 // unexpected. 39 ErrUnexpectedType = xerr.Sub("unexpected key type", 0x16) 40 )