RegInstall function

Loads an information (INF) file from a string resource, adds some entries to the INF string substitution table, and executes the INF.

Syntax

HRESULT WINAPI RegInstall(
   HMODULE     hm,
   LPCTSTR     pszSection,
   LPCSTRTABLE pstTable
);

Parameters

  • hm
    The handle of the module containing the INF to be installed. The INF file is extracted from this module's resources where the resource name and type is REGINST.

  • pszSection
    The section to execute in the INF file.

  • pstTable
    A table of string mappings to be executed as if they were in the INF file.

Return value

Returns one of the following values.

Return code Description
S_OK

The INF file is successfully installed.

E_FAIL

The INF file failed to install.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Advpub.h

Library

Advpack.lib

DLL

Advpack.dll

See also

Reference

LPSTRTABLE

Conceptual

About INF File Architecture