次の方法で共有


SetURL method

Sets an object's URL.

Syntax

HRESULT retVal = object.SetURL(pcszURL, dwInFlags);

Parameters

pcszURL

Type: LPCSTR

Address of a zero-terminated string that contains the URL to set. The protocol scheme may be included as part of the URL.

dwInFlags

Type: DWORD

Flag value that specifies the behavior for setting the protocol scheme. This field can contain one of the following values.

IURL_SETURL_FL_GUESS_PROTOCOL

If the protocol scheme is not specified in pcszURL, the system automatically chooses a scheme and adds it to the URL.

IURL_SETURL_FL_USE_DEFAULT_PROTOCOL

If the protocol scheme is not specified in pcszURL, the system adds the default protocol scheme to the URL.