ACE_Predefined_Naming_Contexts(3)

ACE_Predefined_Naming_Contexts3

A factory for predefined registries, which exist by default on win32 platforms

Usage

#include <ace/Registry.h>
class ACE_Predefined_Naming_Contexts
{
  public:
    static int connect (
        ACE_Registry::Naming_Context &naming_context,
        HKEY predefined = HKEY_LOCAL_MACHINE,
        LPCTSTR machine_name = 0
        );
  private:
    static int is_local_host (LPCTSTR machine_name);
};

Overview

This factory can connect to both local and remote predefined registries.

Public members

static int connect (
    ACE_Registry::Naming_Context &naming_context,
    HKEY predefined = HKEY_LOCAL_MACHINE,
    LPCTSTR machine_name = 0
    );

Factory method for connecting to predefined registries. This method works for both remote and local machines. However, for remote machines, HKEY_CLASSES_ROOT and HKEY_CURRENT_USER types are not allowed

Private members

static int is_local_host (LPCTSTR machine_name);

Check if machine_name is the local host

Library

ace

Author

Irfan Pyarali ([email protected])

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.