Share via


IMsgrSessionManager::UnRegisterApplication method

[UnRegisterApplication is no longer available for use as of Windows Vista. See Windows Messenger for more information.]

Removes an application from the Messenger client list.

Syntax

HRESULT UnRegisterApplication(
  [in] BSTR bstrAppGUID
);

Parameters

bstrAppGUID [in]

Type: BSTR

The GUID of the application to unregister. Maximum character length is 39.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
The application was unregistered successfully.
E_INVALIDARG
One of the parameters passed to the method was not valid.
SR_APP_NOT_REGISTERED
You are attempting to unregister an application that is not yet registered.
REGDB_E_WRITEREGDB
The method failed to delete the information from the registry.

Remarks

To register an application, use the RegisterApplication method.

The following table lists the error codes returned by this method.

Error Code Meaning
0x80040151 The method failed to delete the information from the registry.
0x80070057 The parameter passed to the method was not valid.
SR_APP_NOT_REGISTERED (0x8100060e) You are attempting to unregister an application that is not yet registered.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
End of client support
Windows XP
End of server support
Windows Server 2003
Product
Messenger 4.5
Header
Msgrpriv.h
IDL
Msgrpriv.idl
DLL
Msgsc.dll

See also

IMsgrSessionManager

RegisterApplication

Messenger Session Invite and Messenger Private APIs

Messenger Lock and Key API