Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SdbInitDatabase function

Opens the shim database.

Syntax


HSDB WINAPI SdbInitDatabase(
  _In_  DWORD dwFlags,
  _In_  LPCTSTR pszDatabasePath
);

Parameters

dwFlags [in]

This parameter specifies the format of the path in the pszDatabasePath parameter. It can be one of the following values.

ValueMeaning
HID_DOS_PATHS
0x00000001

An MS-DOS style path.

HID_DATABASE_FULLPATH
0x00000002

A full path.

HID_NO_DATABASE
0x00000004

The pszDatabasePath parameter is ignored and no database is opened.

HID_DATABASE_TYPE_MASK
0xF00F0000

This parameter specifies a predefined database. The pszDatabasePath parameter is ignored.

 

If dwFlags contains HID_DATA_TYPE_MASK, this parameter can also include one of the following values.

ValueMeaning
SDB_DATABASE_MAIN_SHIM
0x80030000

Application shim database.

SDB_DATABASE_MAIN_MSI
0x80020000

MSI database.

SDB_DATABASE_MAIN_DRIVERS
0x80040000

Database of drivers to be blocked.

 

pszDatabasePath [in]

The path to the database. This parameter can be NULL if the dwFlags parameter specifies a predefined database.

Return value

The function returns a handle to the opened database.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

DLL

Apphelp.dll

See also

SdbGetAppPatchDir
SdbGetMatchingExe
SdbReleaseMatchingExe
SdbTagRefToTagID

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.