This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" int WINAPI setup_assembly(const char* file_in, const char* file_out) | |
{ | |
FILE* fp_out = NULL, *fp_in = NULL; | |
fopen_s(&fp_in, file_in, "rb"); | |
fopen_s(&fp_out, file_out, "wb"); | |
//dos header | |
IMAGE_DOS_HEADER dos_header; | |
fread(&dos_header, sizeof(dos_header), 1, fp_in); | |
fwrite(&dos_header, sizeof(dos_header), 1, fp_out); |