I've got a little problem with this function when I'm trying to crack my URL in URL_COMPONENTS structure, the value of HostName and urlPath members stays on '\0' and meanwhile it's so, I have the true Length of both(HostName and urlPath members).
what is the problem.
Yea, So Sorry I just wrote it worng in here and in Real Code I tested both originUrl.Length() and 0 and they didn't work.
btw when I use GetLastError it Says :
ERROR_INSUFFICIENT_BUFFER
122 (0x7A)
The data area passed to a system call is too small.