共用方式為


WSHGetProviderGuid function

[ This function is obsolete for Windows Server 2003, Windows Vista, and later, and is no longer supported. ]

The WSHGetProviderGuid function returns the GUID that identifies the protocols supported by the helper DLL. This function is called only during setup of the WSH DLL.

Syntax

INT WSHGetProviderGuid(
  _In_  LPWSTR ProviderName,
  _Out_ LPGUID ProviderGuid
);

Parameters

  • ProviderName [in]
    Pointer to a null-terminated string specifying the name of the provider.

  • ProviderGuid [out]
    Pointer to a variable in which WSHGetProviderGuid returns the GUID that identifies the protocols supported by the helper DLL. A GUID can be generated with UUIDGEN.EXE. For more information about this utility, see the Microsoft Windows SDK.

Return value

WSHGetProviderGuid returns NO_ERROR for success or WSAEINVAL if the string at ProviderName does not designate this helper DLL.

Requirements

Target platform

Desktop

Header

Wsahelp.h (include Wsahelp.h)

 

 

Send comments about this topic to Microsoft