The AddFile method adds the contents of a file to the
specified form.
Parameters
lpszFieldName
A null-terminated string which specifies the name
of the field to add to the form. If this parameter is NULL or
points to an empty string, then a default field name will be
assigned.
lpszFileName
A null-terminated string which specifies the name
of the file. The contents of the file will be added to the form
data that is submitted to the server.
Return Value
If the method succeeds, the return value is zero. If the method
fails, the return value is HTTP_ERROR. To get extended error
information, call GetLastError.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1 Minimum Server Platform: Windows Server 2008 R2 Service Pack 1 Header File: cstools12.h Import Library: cshtpv12.lib Unicode: Implemented as Unicode and ANSI versions