Changeset 3849 for trunk/src


Ignore:
Timestamp:
Jul 18, 2000, 8:00:01 PM (25 years ago)
Author:
bird
Message:

Corrected typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/url.cpp

    r3687 r3849  
    1 /* $Id: url.cpp,v 1.3 2000-06-12 08:09:48 phaller Exp $ */
     1/* $Id: url.cpp,v 1.4 2000-07-18 18:00:01 bird Exp $ */
    22
    33/*
     
    5454  BOOL  flagNoHistory; /* usually not in history of browsers */
    5555  DWORD dwType;        /* URL type                           */
    56  
     56
    5757} URLSCHEME, *PURLSCHEME;
    5858
     
    9090/*****************************************************************************
    9191 * Name      : UrlApplyScheme
    92  * Purpose   : Takes a URL string, determines a scheme for it, and returns a 
     92 * Purpose   : Takes a URL string, determines a scheme for it, and returns a
    9393 *             string with an appropriate prefix.
    9494 * Parameters: pszIn   [in]     A NULL-terminated URL string.
    95  *             pszOut  [out]    A buffer to receive a NULL-terminated string, 
    96  *                              set to the URL specified by pszIn, converted 
     95 *             pszOut  [out]    A buffer to receive a NULL-terminated string,
     96 *                              set to the URL specified by pszIn, converted
    9797 *                              to the standard scheme://URL_string format.
    98  *             pcchOut [in/out] Address of a value set to the number of 
    99  *                              characters in the pszOut buffer. When the 
    100  *                              function returns, the value depends on whether 
    101  *                              the function is successful or returns 
    102  *                              E_POINTER. For other return values, the value 
     98 *             pcchOut [in/out] Address of a value set to the number of
     99 *                              characters in the pszOut buffer. When the
     100 *                              function returns, the value depends on whether
     101 *                              the function is successful or returns
     102 *                              E_POINTER. For other return values, the value
    103103 *                              of this parameter is meaningless.
    104  *             dwFlags [in]     Flags that specify how to determine the 
     104 *             dwFlags [in]     Flags that specify how to determine the
    105105 *                              scheme. The following flags can be combined.
    106106 *                              URL_APPLY_DEFAULT
     
    122122 *                       string, not counting the terminating NULL character.
    123123 *             S_FALSE   There were no errors, but no prefix was prepended.
    124  *             E_POINTER The buffer was too small. The value of pcchOut is 
    125  *                       set to the minimum number of characters that the 
    126  *                       buffer must be able to contain, including the 
     124 *             E_POINTER The buffer was too small. The value of pcchOut is
     125 *                       set to the minimum number of characters that the
     126 *                       buffer must be able to contain, including the
    127127 *                       terminating NULL character.
    128128 *             Other errors - A standard OLE error value is returned.
    129  * Remark    : If the URL has a valid scheme, the string will not be modified. 
    130  *             However, almost any combination of two or more characters 
    131  *             followed by a colon will be parsed as a scheme. Valid 
    132  *             characters include some common punctuation marks, such as ".". 
    133  *             If your input string fits this description, UrlApplyScheme may 
    134  *             treat it as valid and not apply a scheme. To force the function 
    135  *             to apply a scheme to a URL, set the URL_APPLY_FORCEAPPLY and 
    136  *             URL_APPLY_DEFAULT flags in dwFlags. This combination of flags 
    137  *             forces the function to apply a scheme to the URL. Typically, 
    138  *             the function will not be able to determine a valid scheme. The 
    139  *             second flag guarantees that, if no valid scheme can be 
     129 * Remark    : If the URL has a valid scheme, the string will not be modified.
     130 *             However, almost any combination of two or more characters
     131 *             followed by a colon will be parsed as a scheme. Valid
     132 *             characters include some common punctuation marks, such as ".".
     133 *             If your input string fits this description, UrlApplyScheme may
     134 *             treat it as valid and not apply a scheme. To force the function
     135 *             to apply a scheme to a URL, set the URL_APPLY_FORCEAPPLY and
     136 *             URL_APPLY_DEFAULT flags in dwFlags. This combination of flags
     137 *             forces the function to apply a scheme to the URL. Typically,
     138 *             the function will not be able to determine a valid scheme. The
     139 *             second flag guarantees that, if no valid scheme can be
    140140 *             determined, the function will apply the default scheme to the URL.
    141141 * Status    : UNTESTED
    142142 *
    143  * Autor     : Patrick Haller [Thu, 2000/04/20 19:46]
     143 * Author    : Patrick Haller [Thu, 2000/04/20 19:46]
    144144 *****************************************************************************/
    145145
     
    151151{
    152152  dprintf(("not implemented."));
    153  
     153
    154154  strncpy(pszOut,
    155155          pszIn,
    156156          *pcchOut);
    157157  *pcchOut = 0;
    158  
     158
    159159  return S_OK;
    160160}
     
    168168{
    169169  dprintf(("not implemented."));
    170  
     170
    171171  wcsncpy((wchar_t*)pszOut,
    172172          (wchar_t*)pszIn,
    173173          *pcchOut);
    174174  *pcchOut = 0;
    175  
     175
    176176  return S_OK;
    177177}
     
    181181 * Name      : UrlCanonicalize
    182182 * Purpose   : Takes a URL string and converts it into canonical form.
    183  * Parameters: pszUrl [in]     Pointer to a URL string. If it does not refer 
    184  *                             to a file, it must include a valid scheme such 
     183 * Parameters: pszUrl [in]     Pointer to a URL string. If it does not refer
     184 *                             to a file, it must include a valid scheme such
    185185 *                             as "http://".
    186186 *             pszCanonicalized  [out] A pointer to a NULL-terminated string
    187187 *                                     used to return the converted URL.
    188  *             pcchCanonicalized [out] The number of characters in 
     188 *             pcchCanonicalized [out] The number of characters in
    189189 *                                     pszCanonicalized.
    190  *             dwFlags           [in]  Flags that specify how the URL will be 
    191  *                                     converted to canonical form. The 
     190 *             dwFlags           [in]  Flags that specify how the URL will be
     191 *                                     converted to canonical form. The
    192192 *                                     following flags can be combined.
    193193 *                                     URL_DONT_SIMPLIFY
     
    226226 *                                       escaped.
    227227 * Variables :
    228  * Result    : Returns S_OK if successful, or a standard OLE error 
     228 * Result    : Returns S_OK if successful, or a standard OLE error
    229229 *             value otherwise.
    230  * Remark    : This function will do such tasks as replacing unsafe characters 
     230 * Remark    : This function will do such tasks as replacing unsafe characters
    231231 *             with their escape sequences and collapsing sequences like "..\...".
    232  *             If a URL string contains '/../' or '/./', UrlCanonicalize 
     232 *             If a URL string contains '/../' or '/./', UrlCanonicalize
    233233 *             will normally treat the characters as indicating navigation in
    234  *             the URL hierarchy. The function will simplify the URLs before 
    235  *             combining them. For instance "/hello/cruel/../world" will be 
    236  *             simplified to "/hello/world". If the URL_DONT_SIMPLIFY flag is 
    237  *             set in dwFlags, the function will not simplify URLs. In this 
     234 *             the URL hierarchy. The function will simplify the URLs before
     235 *             combining them. For instance "/hello/cruel/../world" will be
     236 *             simplified to "/hello/world". If the URL_DONT_SIMPLIFY flag is
     237 *             set in dwFlags, the function will not simplify URLs. In this
    238238 *             case, "/hello/cruel/../world" will be left as is.
    239  * Status    : 
     239 * Status    :
    240240 *
    241241 * Author    : Patrick Haller [Thu, 2000/04/20 19:49]
     
    249249{
    250250  dprintf(("not implemented."));
    251  
     251
    252252  return S_OK;
    253253}
     
    261261{
    262262  dprintf(("not implemented."));
    263  
     263
    264264  return S_OK;
    265265}
     
    269269/*****************************************************************************
    270270 * Name      : UrlCombine
    271  * Purpose   : Takes a relative URL and its base and returns a URL in canonical form. 
     271 * Purpose   : Takes a relative URL and its base and returns a URL in canonical form.
    272272 * Parameters: pszBase     [in]  Pointer to a string with the base URL.
    273273 *             pszRelative [in]  Pointer to a string with the relative URL.
    274  *             pszCombined [out] Pointer to a buffer to receive a 
     274 *             pszCombined [out] Pointer to a buffer to receive a
    275275 *                               NULL-terminated string containing the combined URL.
    276  *             pcchCombined [in/out] Pointer to a value set to the number of 
     276 *             pcchCombined [in/out] Pointer to a value set to the number of
    277277 *                               characters in the pszCombined buffer. When the
    278  *                               function returns, the value depends on whether 
     278 *                               function returns, the value depends on whether
    279279 *                               the function is successful or returns E_POINTER.
    280  *                               For other return values, the value of this 
     280 *                               For other return values, the value of this
    281281 *                               parameter is meaningless.
    282  *             dwFlags     [in]  Flags that specify how the URL will be converted 
     282 *             dwFlags     [in]  Flags that specify how the URL will be converted
    283283 *                               to canonical form. The following flags can be combined.
    284284 *                               URL_DONT_SIMPLIFY
    285  *                                 Treat '/./' and '/../' in a URL string as literal 
     285 *                                 Treat '/./' and '/../' in a URL string as literal
    286286 *                                 characters, not as shorthand for
    287287 *                                 navigation. See Remarks for further discussion.
     
    289289 *                                 Convert any occurrence of '%' to its escape sequence.
    290290 *                               URL_ESCAPE_SPACES_ONLY
    291  *                                 Replace only spaces with escape sequences. This flag 
     291 *                                 Replace only spaces with escape sequences. This flag
    292292 *                                 takes precedence over
    293293 *                                 URL_ESCAPE_UNSAFE, but does not apply to opaque URLs.
    294294 *                               URL_ESCAPE_UNSAFE
    295  *                                 Replace unsafe values with their escape sequences. 
     295 *                                 Replace unsafe values with their escape sequences.
    296296 *                                 This flag applies to all URLs,
    297297 *                                 including opaque URLs.
    298298 *                               URL_PLUGGABLE_PROTOCOL
    299  *                                 Combine URLs with client-defined pluggable protocols, 
    300  *                                 according to the W3C specification. This flag does not 
    301  *                                 apply to standard protocols such as ftp, http, 
    302  *                                 gopher, and so on. If this flag is set, 
    303  *                                 UrlCombine will not simplify URLs, so there is 
     299 *                                 Combine URLs with client-defined pluggable protocols,
     300 *                                 according to the W3C specification. This flag does not
     301 *                                 apply to standard protocols such as ftp, http,
     302 *                                 gopher, and so on. If this flag is set,
     303 *                                 UrlCombine will not simplify URLs, so there is
    304304 *                                 no need to also set URL_DONT_SIMPLIFY.
    305305 *                               URL_UNESCAPE
    306  *                                 Unescape any escape sequences that the URLs contain, 
    307  *                                 with two exceptions. The escape sequences 
    308  *                                 for '?' and '#' will not be unescaped. 
    309  *                                 If one of the URL_ESCAPE_XXX flags is also 
    310  *                                 set, the two URLs will unescaped, then 
     306 *                                 Unescape any escape sequences that the URLs contain,
     307 *                                 with two exceptions. The escape sequences
     308 *                                 for '?' and '#' will not be unescaped.
     309 *                                 If one of the URL_ESCAPE_XXX flags is also
     310 *                                 set, the two URLs will unescaped, then
    311311 *                                 combined, then escaped.
    312312 * Variables :
    313  * Result    : S_OK      pszCombined points to a string containing the 
     313 * Result    : S_OK      pszCombined points to a string containing the
    314314 *                       combined URLs. The value of pcchCombined is set to
    315  *                       the number of characters in the string, not counting 
     315 *                       the number of characters in the string, not counting
    316316 *                       the terminating NULL character.
    317  *             E_POINTER The buffer was too small. The value of pcchCombined 
    318  *                       is set to the minimum number of characters that the 
    319  *                       buffer must be able to contain, including the 
     317 *             E_POINTER The buffer was too small. The value of pcchCombined
     318 *                       is set to the minimum number of characters that the
     319 *                       buffer must be able to contain, including the
    320320 *                       terminating NULL character.
    321321 *             Other errors A standard OLE error value is returned.
     
    334334{
    335335  dprintf(("not implemented."));
    336  
     336
    337337  return S_OK;
    338338}
     
    347347{
    348348  dprintf(("not implemented."));
    349  
     349
    350350  return S_OK;
    351351}
     
    357357 * Parameters: pszURL1      [in] NULL-terminated string with the first URL.
    358358 *             pszURL2      [in] NULL-terminated string with the second URL.
    359  *             fIgnoreSlash [in] Value that is set to TRUE to have UrlCompare 
     359 *             fIgnoreSlash [in] Value that is set to TRUE to have UrlCompare
    360360 *                               ignore a trailing '/' character on either or
    361361 *                               both URLs.
    362362 * Variables :
    363  * Result    : Returns zero if the two strings are equal, apart from a 
     363 * Result    : Returns zero if the two strings are equal, apart from a
    364364 *             trailing '\' character if fIgnoreSlash is set to TRUE.
    365  *             Returns a negative integer if the string pointed to by pszURL1 
    366  *             is less than the string pointed to by pszURL2. Otherwise, it 
     365 *             Returns a negative integer if the string pointed to by pszURL1
     366 *             is less than the string pointed to by pszURL2. Otherwise, it
    367367 *             returns a positive integer.
    368368 * Remark    : SHLWAPI.
    369  *             For the best results, you should first canonicalize the URLs 
    370  *             with UrlCanonicalize. Then, compare the canonicalized URLs with 
     369 *             For the best results, you should first canonicalize the URLs
     370 *             with UrlCanonicalize. Then, compare the canonicalized URLs with
    371371 *             UrlCompare.
    372372 * Status    : UNTESTED
     
    381381{
    382382  dprintf(("not correctly implemented."));
    383  
     383
    384384  return strcmp(pszURL1,
    385385                pszURL2);
     
    392392{
    393393  dprintf(("not correctly implemented."));
    394  
     394
    395395  return wcscmp((const wchar_t *)pszURL1,
    396396                (const wchar_t *)pszURL2);
     
    400400/*****************************************************************************
    401401 * Name      : UrlCreateFromPath
    402  * Purpose   : Takes a DOS path and converts it to a canonicalized URL. 
     402 * Purpose   : Takes a DOS path and converts it to a canonicalized URL.
    403403 * Parameters: pszPath    Pointer to the string with the DOS path.
    404404 *             pszUrl     Value used to return the URL.
     
    406406 *             dwReserved Reserved. Set this parameter to NULL.
    407407 * Variables :
    408  * Result    : Returns S_FALSE if pszPath is already in URL format. In this 
    409  *             case, pszPath will simply be copied to pszUrl. Otherwise, it 
     408 * Result    : Returns S_FALSE if pszPath is already in URL format. In this
     409 *             case, pszPath will simply be copied to pszUrl. Otherwise, it
    410410 *             returns S_OK if successful or a standard OLE error value if not.
    411411 * Remark    : SHLWAPI.
     
    422422{
    423423  dprintf(("not implemented."));
    424  
     424
    425425  return S_FALSE;
    426426}
     
    434434{
    435435  dprintf(("not implemented."));
    436  
     436
    437437  return S_FALSE;
    438438}
     
    441441/*****************************************************************************
    442442 * Name      : UrlEscape
    443  * Purpose   : Converts unsafe characters, such as spaces, into their 
     443 * Purpose   : Converts unsafe characters, such as spaces, into their
    444444 *             corresponding escape sequences.
    445445 * Parameters: pszURL     [in]  Pointer to a NULL-terminated string with the URL.
    446  *             pszEscaped [out] Pointer to a NULL-terminated string containing 
     446 *             pszEscaped [out] Pointer to a NULL-terminated string containing
    447447 *                              the string pointed to by pszURL, with unsafe
    448448 *                              characters converted to their escape sequences.
    449  *             pcchEscaped [in/out] Number of characters in the buffer pointed 
    450  *                              to by pszEscaped. On entry, the value pcchEscaped 
    451  *                              points to is set to the size of the buffer. 
    452  *                              When the function returns, the value pcchEscaped 
    453  *                              points to is set to the number of characters 
    454  *                              written to that buffer, not counting the terminating 
    455  *                              NULL character. If an E_POINTER error code is 
    456  *                              returned, the buffer was too small, and the 
    457  *                              value pcchEscaped points to is set to the 
     449 *             pcchEscaped [in/out] Number of characters in the buffer pointed
     450 *                              to by pszEscaped. On entry, the value pcchEscaped
     451 *                              points to is set to the size of the buffer.
     452 *                              When the function returns, the value pcchEscaped
     453 *                              points to is set to the number of characters
     454 *                              written to that buffer, not counting the terminating
     455 *                              NULL character. If an E_POINTER error code is
     456 *                              returned, the buffer was too small, and the
     457 *                              value pcchEscaped points to is set to the
    458458 *                              required number of characters in the buffer. If
    459  *                              any other errors are returned, the value that 
     459 *                              any other errors are returned, the value that
    460460 *                              pcchEscaped points to is undefined.
    461  *             dwFlags     [in] Flags that control which characters are escaped. 
     461 *             dwFlags     [in] Flags that control which characters are escaped.
    462462 *                              It can be a combination of the following flags.
    463463 *               Flag           Description
     
    480480 *                              ? character.
    481481 * Variables :
    482  * Result    : Returns an OLE success code if successful. The value pointed to 
    483  *             by pcchEscaped will be set to the number of characters written 
    484  *             to the output buffer, excluding the terminating NULL. If the 
    485  *             buffer was too small, E_POINTER is returned, and the value 
    486  *             pointed to by pcchEscaped will be set to the required buffer 
     482 * Result    : Returns an OLE success code if successful. The value pointed to
     483 *             by pcchEscaped will be set to the number of characters written
     484 *             to the output buffer, excluding the terminating NULL. If the
     485 *             buffer was too small, E_POINTER is returned, and the value
     486 *             pointed to by pcchEscaped will be set to the required buffer
    487487 *             size. Otherwise, an OLE error value is returned.
    488488 * Remark    : SHLWAPI.
    489  *             Unsafe characters are those characters that may be altered 
    490  *             during transport across the internet. This functions converts 
     489 *             Unsafe characters are those characters that may be altered
     490 *             during transport across the internet. This functions converts
    491491 *             unsafe characters into their equivalent "%xy" escape sequences.
    492492 * Status    : UNTESTED
     
    502502{
    503503  dprintf(("not implemented."));
    504  
     504
    505505  return S_FALSE;
    506506}
     
    514514{
    515515  dprintf(("not implemented."));
    516  
     516
    517517  return S_FALSE;
    518518}
     
    522522 * Name      : UrlGetLocation
    523523 * Purpose   : Retrieves the location from a URL.
    524  * Parameters: pszURL [in] Pointer to a NULL-terminated string that contains 
     524 * Parameters: pszURL [in] Pointer to a NULL-terminated string that contains
    525525 *             the location.
    526526 * Variables :
    527  * Result    : Returns a pointer to a NULL-terminated string with the 
     527 * Result    : Returns a pointer to a NULL-terminated string with the
    528528 *             location, or NULL otherwise.
    529529 * Remark    : SHLWAPI.
    530  *             The location is the segment of the URL starting with a ? or # 
    531  *             character. If a file URL has a query string, the returned 
     530 *             The location is the segment of the URL starting with a ? or #
     531 *             character. If a file URL has a query string, the returned
    532532 *             string includes the query string.
    533533 * Status    : UNTESTED
     
    540540{
    541541  dprintf(("not implemented."));
    542  
     542
    543543  return pszURL;
    544544}
     
    549549{
    550550  dprintf(("not implemented."));
    551  
     551
    552552  return pszURL;
    553553}
     
    558558 * Purpose   : Takes a URL string and returns a specified part.
    559559 * Parameters: pszIn   [in]     NULL-terminated string that contains the URL.
    560  *             pszOut  [out]    A buffer that will receive a NULL-terminated 
     560 *             pszOut  [out]    A buffer that will receive a NULL-terminated
    561561 *                              string with the specified part.
    562  *             pcchOut [in/out] Address of a value set to the number of 
     562 *             pcchOut [in/out] Address of a value set to the number of
    563563 *                              characters in the pszOut buffer. When the
    564  *                              function returns, the value depends on whether 
     564 *                              function returns, the value depends on whether
    565565 *                              the function is successful or returns E_POINTER.
    566  *                              For other return values, the value of this 
     566 *                              For other return values, the value of this
    567567 *                              parameter is meaningless.
    568568 *             dwPart  [in]     Flags that specify which part of the URL to retrieve.
     
    576576 *               URL_PART_USERNAME   The username.
    577577 *
    578  *             dwFlags [in]     Flag that can be set to keep the URL scheme, 
     578 *             dwFlags [in]     Flag that can be set to keep the URL scheme,
    579579 *                              in addition to the part that is specified by dwPart.
    580580 *               Flag                    Description
    581581 *               URL_PARTFLAG_KEEPSCHEME Keep the URL scheme.
    582582 * Variables :
    583  * Result    : 
    584  * Remark    : SHLWAPI.
    585  *             Returns an OLE success code if successful. The value pointed to 
    586  *             by pcchOut will be set to the number of characters written to 
    587  *             the output buffer, excluding the terminating NULL. If the buffer 
    588  *             was too small, E_POINTER is returned, and the value pointed to 
    589  *             by pcchOut will be set to the minimum number of characters that 
    590  *             the buffer must be able to contain, including the terminating 
     583 * Result    :
     584 * Remark    : SHLWAPI.
     585 *             Returns an OLE success code if successful. The value pointed to
     586 *             by pcchOut will be set to the number of characters written to
     587 *             the output buffer, excluding the terminating NULL. If the buffer
     588 *             was too small, E_POINTER is returned, and the value pointed to
     589 *             by pcchOut will be set to the minimum number of characters that
     590 *             the buffer must be able to contain, including the terminating
    591591 *             NULL character. Otherwise, an OLE error value is returned.
    592592 * Status    : UNTESTED
     
    603603{
    604604  dprintf(("not implemented."));
    605  
     605
    606606  return S_OK;
    607607}
     
    616616{
    617617  dprintf(("not implemented."));
    618  
     618
    619619  return S_OK;
    620620}
     
    626626 * Parameters: pszURL [in]  Pointer to a NULL-terminated string with the URL.
    627627 *             pbHash [out] Buffer to receive the hashed array.
    628  *             cbHash [in]  Number of elements in pbHash. It should be no larger 
     628 *             cbHash [in]  Number of elements in pbHash. It should be no larger
    629629 *                          than 256.
    630630 * Variables :
    631631 * Result    : Returns S_OK if successful, or a standard OLE error value otherwise.
    632632 * Remark    : SHLWAPI.
    633  *             For example, to hash a URL into a single byte, set 
    634  *             cbHash = sizeof(BYTE) and 
    635  *             pbHash = (LPBYTE)&bHashedValue, where bHashedValue is a 
    636  *             one-byte buffer. To hash a URL into a DWORD, set 
    637  *             cbHash = sizeof(DWORD) and 
     633 *             For example, to hash a URL into a single byte, set
     634 *             cbHash = sizeof(BYTE) and
     635 *             pbHash = (LPBYTE)&bHashedValue, where bHashedValue is a
     636 *             one-byte buffer. To hash a URL into a DWORD, set
     637 *             cbHash = sizeof(DWORD) and
    638638 *             pbHash = (LPBYTE)&dwHashedValue, where dwHashedValue is a
    639639 *             DWORD buffer.
     
    649649{
    650650  dprintf(("not implemented."));
    651  
     651
    652652  return S_OK;
    653653}
     
    660660{
    661661  dprintf(("not implemented."));
    662  
     662
    663663  return S_OK;
    664664}
     
    667667/*****************************************************************************
    668668 * Name      : UrlIs
    669  * Purpose   : Tests whether or not a URL is a specified type. 
     669 * Purpose   : Tests whether or not a URL is a specified type.
    670670 * Parameters: pszUrl [in] Pointer to a string containing the URL.
    671  *             UrlIs  [in] Type of URL to be tested for. 
     671 *             UrlIs  [in] Type of URL to be tested for.
    672672 *                         UrlIs can take one of the following values:
    673673 *               URLIS_APPLIABLE Attempt to determine a valid scheme for the URL.
     
    679679 *               URLIS_URL       Is the URL valid?
    680680 * Variables :
    681  * Result    : For all but one of the URL types, UrlIs returns TRUE if the URL 
    682  *             is the specified type, or FALSE if not. If UrlIs is set to 
    683  *             URLIS_APPLIABLE, UrlIs will attempt to determine the URL scheme. 
    684  *             If the function is able to determine a scheme, it returns TRUE, 
     681 * Result    : For all but one of the URL types, UrlIs returns TRUE if the URL
     682 *             is the specified type, or FALSE if not. If UrlIs is set to
     683 *             URLIS_APPLIABLE, UrlIs will attempt to determine the URL scheme.
     684 *             If the function is able to determine a scheme, it returns TRUE,
    685685 *             or FALSE otherwise.
    686686 * Remark    : SHLWAPI.
     
    695695{
    696696  dprintf(("not implemented."));
    697  
     697
    698698  return TRUE;
    699699}
     
    705705{
    706706  dprintf(("not implemented."));
    707  
     707
    708708  return TRUE;
    709709}
     
    716716 * Result    : Returns a non-zero value if the URL is a No History URL, or zero otherwise.
    717717 * Remark    : SHLWAPI.
    718  *             A No History URL is a URL that browsers typically do not 
     718 *             A No History URL is a URL that browsers typically do not
    719719 *             include in their navigation history.
    720720 * Status    : UNTESTED
     
    742742 * Parameters: pszURL [in] NULL-terminated string with the URL.
    743743 * Variables :
    744  * Result    : Returns a non-zero value if the URL is opaque, or zero 
     744 * Result    : Returns a non-zero value if the URL is opaque, or zero
    745745 *             otherwise.
    746746 * Remark    : SHLWAPI.
    747  *             A URL that has a scheme that is not followed by two slashes (//) 
    748  *             is opaque. For example, mailto:xyz@somecompany.com is an opaque 
     747 *             A URL that has a scheme that is not followed by two slashes (//)
     748 *             is opaque. For example, mailto:xyz@somecompany.com is an opaque
    749749 *             URL. Opaque URLs cannot be separated into the standard
    750750 *             URL heirarchy.
     
    775775 *                                the converted string is returned through this
    776776 *                                parameter.
    777  *             pszUnEscaped [out] Pointer to a buffer that will receive a 
    778  *                                NULL-terminated string containing the 
    779  *                                unescaped version of pszURL. If 
    780  *                                URL_UNESCAPE_INPLACE is set in dwFlags, this 
     777 *             pszUnEscaped [out] Pointer to a buffer that will receive a
     778 *                                NULL-terminated string containing the
     779 *                                unescaped version of pszURL. If
     780 *                                URL_UNESCAPE_INPLACE is set in dwFlags, this
    781781 *                                parameter is ignored.
    782  *             pcchUnEscaped [in/out] Number of characters in the buffer 
    783  *                                pointed to by pcchUnEscaped. On entry, the 
    784  *                                value pcchUnEscaped points to is set to the 
    785  *                                size of the buffer. If the function returns 
    786  *                                a success code, the value that pcchUnEscaped 
    787  *                                points to is set to the number of characters 
    788  *                                written to that buffer, not counting the 
    789  *                                terminating NULL character. If an E_POINTER 
    790  *                                error code is returned, the buffer was too 
    791  *                                small, and the value pcchUnEscaped points to 
    792  *                                is set to the required number of characters 
    793  *                                that the buffer must be able to contain. If 
    794  *                                any other errors are returned, the value 
     782 *             pcchUnEscaped [in/out] Number of characters in the buffer
     783 *                                pointed to by pcchUnEscaped. On entry, the
     784 *                                value pcchUnEscaped points to is set to the
     785 *                                size of the buffer. If the function returns
     786 *                                a success code, the value that pcchUnEscaped
     787 *                                points to is set to the number of characters
     788 *                                written to that buffer, not counting the
     789 *                                terminating NULL character. If an E_POINTER
     790 *                                error code is returned, the buffer was too
     791 *                                small, and the value pcchUnEscaped points to
     792 *                                is set to the required number of characters
     793 *                                that the buffer must be able to contain. If
     794 *                                any other errors are returned, the value
    795795 *                                that pcchUnEscaped points to is undefined.
    796  *             dwFlags      [in]  Flags that control which characters are 
    797  *                                unescaped. It can be a combination of the 
     796 *             dwFlags      [in]  Flags that control which characters are
     797 *                                unescaped. It can be a combination of the
    798798 *                                following flags.
    799799 *               Flag              Description
     
    805805 *                                 string instead of pszUnEscaped.
    806806 * Variables :
    807  * Result    : Returns an OLE success code if successful. If the 
    808  *             URL_UNESCAPE_INPLACE flag is not set, the value pointed to by 
    809  *             pcchUnEscaped will be set to the number of characters in the 
    810  *             output buffer pointed to by pszUnEscaped. Returns E_POINTER if 
     807 * Result    : Returns an OLE success code if successful. If the
     808 *             URL_UNESCAPE_INPLACE flag is not set, the value pointed to by
     809 *             pcchUnEscaped will be set to the number of characters in the
     810 *             output buffer pointed to by pszUnEscaped. Returns E_POINTER if
    811811 *             the URL_UNESCAPE_INPLACE flag is not set and the output buffer
    812  *             is too small. The pcchUnEscaped parameter will be set to the 
     812 *             is too small. The pcchUnEscaped parameter will be set to the
    813813 *             required buffer size. Otherwise, returns an OLE error value.
    814814 * Remark    : SHLWAPI.UrlUnEscape
     
    826826{
    827827  dprintf(("not implemented."));
    828  
     828
    829829  return S_OK;
    830830}
     
    838838{
    839839  dprintf(("not implemented."));
    840  
    841   return S_OK;
    842 }
     840
     841  return S_OK;
     842}
Note: See TracChangeset for help on using the changeset viewer.