Freigeben über


UnregisterPage function

The UnregisterPage function removes a page from the Get Connected Wizard that was added with the RegisterPageWithPage function. This function also removes the links between the page and all other pages that linked to it.

Syntax

HRESULT WINAPI UnregisterPage(
  _In_ const GUID *pguidPage,
  _In_ const BOOL fUnregisterFromCOM
);

Parameters

pguidPage [in]

Pointer to a GUID that uniquely identifies the page to be removed from the Get Connected wizard.

fUnregisterFromCOM [in]

Specifies if the page module must be deregistered with COM. Set this parameter to TRUE if the page module must be deregistered with COM or FALSE if it has no module to deregister.

Return value

If the function succeeds, the return value is S_OK.

If the page is already deregistered, the return value is S_FALSE.

If the method fails, the return value is one of the standard error codes.

Return code Description
E_ACCESSDENIED
The page to deregister is currently in use.

Remarks

An import library containing the UnregisterPage function is not included in the Microsoft Windows Software Development Kit (SDK). Applications must use the GetModuleHandle and GetProcAddress functions to retrieve the function pointer from the corresponding DLL and call this function.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
DLL
Connect.dll