Skip to content

Commit 59e8ac0

Browse files
authored
Merge pull request #2039 from ben-zen/winhttpcrackurl-extrainfo
Explained how WinHttpCrackUrl uses the ExtraInfo field
2 parents 3468157 + 8588966 commit 59e8ac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk-api-src/content/winhttp/nf-winhttp-winhttpcrackurl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ The required components are indicated by members of the
183183
If the pointer contains the address of the user-supplied buffer, the length member must contain the size of the buffer. The
184184
<b>WinHttpCrackUrl</b> function copies the component into the buffer, and the length member is set to the length of the copied component, minus 1 for the trailing string terminator. If a user-supplied buffer is not large enough, <b>WinHttpCrackUrl</b> returns <b>FALSE</b>, and <a href="/windows/desktop/api/errhandlingapi/nf-errhandlingapi-getlasterror">GetLastError</a> returns <b>ERROR_INSUFFICIENT_BUFFER</b>.
185185

186+
When _lpszExtraInfo_ is not set or _dwExtraInfoLength_ is left as 0 in _lpUrlComponents_, if _lpszUrlPath_ is set the query and/or fragment component of the URL will be included in that field.
187+
186188
For
187189
<b>WinHttpCrackUrl</b> to work properly, the size of the
188190
<a href="/windows/win32/api/winhttp/ns-winhttp-url_components">URL_COMPONENTS</a> structure must be stored in the

0 commit comments

Comments
 (0)