Пример #1
0
 public VMSChallengeResult(byte[] htmlpage)
 {
     byte[] decr = VMSFile.GetDataFromHTML(htmlpage);
     DataType   = (DataIDs)BitConverter.ToUInt32(decr, 0x04);
     UserData   = new PDATA(decr, 0x08);
     ResultData = new EventResultDataChild(decr, 0x44);
 }
Пример #2
0
        static void GetPdata(string filepath)
        {
            byte[] file = File.ReadAllBytes(filepath);
            byte[] data = VMSFile.GetDataFromHTML(file);
            PDATA  pd   = new PDATA(data, 8);

            File.WriteAllBytes(Path.ChangeExtension(filepath, ".pd"), pd.GetBytes());
            Application.Exit();
        }
Пример #3
0
 public VMSChallengeResult(byte[] rawdata, int startIndex)
 {
     DataType   = (DataIDs)BitConverter.ToUInt32(rawdata, 0x04);
     UserData   = new PDATA(rawdata, 0x08);
     ResultData = new EventResultDataChild(rawdata, 0x44);
 }