public Register(string p, REGTYPE t) { name = p; type = t; Debug.Assert(t >= 0 && t < REGTYPE.NUMTYPES); regCount = REGCOUNT[(int)t]; enabled = type == REGTYPE.STRING ? false : true; var = null; }
public void ReadFromDemoFile(VFileDemo f) { f.ReadBool(out enabled); f.ReadShort(out short type); this.type = (REGTYPE)type; f.ReadInt(out regCount); for (var i = 0; i < 4; i++) { f.ReadUnsignedShort(out regs[i]); } name = f.ReadHashString(); }
public static extern int CeRegSetValueEx(IntPtr hKey, string lpValueName, int Reserved, REGTYPE dwType, ref int lpData, int cbData);
public static extern int CeRegQueryValueEx(IntPtr hKey, string lpValueName, int lpReserved, ref REGTYPE lpType, ref int piData, ref int lpcbData);
public static extern int CeRegQueryValueEx(IntPtr hKey, string lpValueName, int Res1, ref REGTYPE lpType, IntPtr iptrData, ref int lpcbData);
public static extern int CeRegEnumValue(IntPtr hKey, int dwIndex, string lpszName, ref int lpcbName, int Res, ref REGTYPE lpType, IntPtr lpData, ref int lpcbData);
RegSetValueEx(IntPtr hKey, string lpValueName, int Res1, REGTYPE dwType, string strData, int cbData);
RegQueryValueEx(IntPtr hKey, string lpValueName, int Res1, ref REGTYPE lpType, ref int piData, ref int lpcbData);