4

Is there any reason at all why lpOptional parameter of WinHttpSendRequest function is not const? Is it safe to assume that the data pointed to by lpOptional parameter will not be modified by WinHttpSendRequest function (and pass a pointer to readonly memory to this function)?

PowerGamer
  • 2,106
  • 2
  • 17
  • 33
  • I don't think API changes the data block or otherwise requires write access. Looks like it's missing for no reason (since times when `const`ness was not given much attention). – Roman R. Apr 15 '13 at 16:15
  • @Roman "Looks like it's missing for no reason" - my thoughts exactly, I should have went straigh to MS Connect to post a bug report. – PowerGamer Apr 15 '13 at 16:34
  • If you attach Connect ticket number/link here, I will go vote up for it. – Roman R. Apr 15 '13 at 16:41
  • @Roman http://connect.microsoft.com/VisualStudio/feedback/details/783691/lpoptional-parameter-of-winhttpsendrequest-function-is-not-const I'll update this question once MS clarifies the issue. – PowerGamer Apr 15 '13 at 19:32

0 Answers0