i have 2 questions about TransmitFile:
1) when i write 1 for the nNumberOfBytesPerSend argument, it should send the file byte by byte right? so why it doesn't send him this way? it sends the first 2 bytes in the first transmit, and all the rest in the second one.
2) i want to send some data before and after the file, so i'm using the lpTransmitBuffers parameter:
but it only sends the Head buffer and stops, it doesn't even send the file itself.
char buff = "start";
char buffb = "end";
tfb.Head = buff;
tfb.HeadLength = sizeof(buff);
tfb.Tail = buffb;
tfb.TailLength = sizeof(buffb);