IRemoteComputer::Initialize method (shobjidl_core.h)

Used by Windows Explorer or Windows Internet Explorer when it is initializing or enumerating a namespace extension invoked on a remote computer.

Syntax

HRESULT Initialize(
  LPCWSTR pszMachine,
  BOOL    bEnumerating
);

Parameters

pszMachine

Type: LPCWSTR

A pointer to a buffer containing the machine name of the remote computer.

bEnumerating

Type: BOOL

A value that is set to TRUE if Windows Explorer is enumerating the namespace extension, or FALSE if it is initializing it.

Return value

Type: HRESULT

Returns S_OK if successful, or standard OLE error values otherwise.

Remarks

If failure is returned, the extension won't appear for the specified computer. Otherwise, the extension will appear and target the remote computer.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.0 or later)