reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
381 success = data.ValidOffsetForDataOfSize(0, sizeof(dos_header)); 384 dos_header.e_magic = data.GetU16(&offset); // Magic number 385 success = dos_header.e_magic == IMAGE_DOS_SIGNATURE; 388 dos_header.e_cblp = data.GetU16(&offset); // Bytes on last page of file 389 dos_header.e_cp = data.GetU16(&offset); // Pages in file 390 dos_header.e_crlc = data.GetU16(&offset); // Relocations 391 dos_header.e_cparhdr = 393 dos_header.e_minalloc = 395 dos_header.e_maxalloc = 397 dos_header.e_ss = data.GetU16(&offset); // Initial (relative) SS value 398 dos_header.e_sp = data.GetU16(&offset); // Initial SP value 399 dos_header.e_csum = data.GetU16(&offset); // Checksum 400 dos_header.e_ip = data.GetU16(&offset); // Initial IP value 401 dos_header.e_cs = data.GetU16(&offset); // Initial (relative) CS value 402 dos_header.e_lfarlc = 404 dos_header.e_ovno = data.GetU16(&offset); // Overlay number 406 dos_header.e_res[0] = data.GetU16(&offset); // Reserved words 407 dos_header.e_res[1] = data.GetU16(&offset); // Reserved words 408 dos_header.e_res[2] = data.GetU16(&offset); // Reserved words 409 dos_header.e_res[3] = data.GetU16(&offset); // Reserved words 411 dos_header.e_oemid = 413 dos_header.e_oeminfo = 415 dos_header.e_res2[0] = data.GetU16(&offset); // Reserved words 416 dos_header.e_res2[1] = data.GetU16(&offset); // Reserved words 417 dos_header.e_res2[2] = data.GetU16(&offset); // Reserved words 418 dos_header.e_res2[3] = data.GetU16(&offset); // Reserved words 419 dos_header.e_res2[4] = data.GetU16(&offset); // Reserved words 420 dos_header.e_res2[5] = data.GetU16(&offset); // Reserved words 421 dos_header.e_res2[6] = data.GetU16(&offset); // Reserved words 422 dos_header.e_res2[7] = data.GetU16(&offset); // Reserved words 423 dos_header.e_res2[8] = data.GetU16(&offset); // Reserved words 424 dos_header.e_res2[9] = data.GetU16(&offset); // Reserved words 426 dos_header.e_lfanew = 431 memset(&dos_header, 0, sizeof(dos_header)); 431 memset(&dos_header, 0, sizeof(dos_header));