请问我如何使用传输文件功能? [英] Please how do I use transmit file function?
问题描述
MSDN表示,必须在运行时通过使用指定的SIO_GET_EXTENSION_FUNCTION_POINTER操作码调用WSAIoctl函数来获取指向TransmitFile函数的指针,并且传递给WSAIoctl函数的输入缓冲区必须包含WSAID_TRANSMIT_FILE,这是一个全局唯一标识符(GUID)值标识rtransmit文件扩展功能.
我的挑战确实是如何使用WSAIoctl函数.我想知道我必须以哪种形式或方式传递WSAID_TRANSMIT_FILE GUID.我必须使用什么输入缓冲区字符数组,结构等.我要使用哪种输出.简而言之,如何在运行时使用WSAIoctl来获取指向TransmitFile函数的指针.
MSDN says one must obtain a pointer to TransmitFile function at run time by making a call to WSAIoctl function with the SIO_GET_EXTENSION_FUNCTION_POINTER opcode specified and that the input buffer passed to the WSAIoctl function must contain WSAID_TRANSMIT_FILE, a global unique identifier(GUID) whose value identifies the rtransmit file extension function.
My challenge is really how to use the WSAIoctl function. I wish to know in what form or way I must pass in the WSAID_TRANSMIT_FILE GUID. What can of input buffer must I use-character array,struct etc. What kind of output do I use. In short, how do I use WSAIoctl to get a pointer to TransmitFile function at run time.
推荐答案
像 ^ ]满足您的需求.
最好的问候
Espen Harlinn
Loos like this[^] has what you need.
Best regards
Espen Harlinn
这篇关于请问我如何使用传输文件功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!