connect_registry


template<class character>
int connect_registry(const character* machine,
                     handle key,
                     handle* result)

This function establishes a connection with a registry on a specified machine.

Parameters

const character* machine

The name of the machine for which the connection is to be established.

handle key

The handle to which the connection is made. One of the standard top level handles may be specified.

handle* result

A pointer to a variable that is updated to hold the required key handle.

Return

int

0 The function succeeded.
Other The call failed - a Win32 error code is returned.

Notes

The name of the remote computer is of the form:

"\\Computername"

where, if null is specified, the local machine is used.