Share via


LaunchPrivacyDialog function

Launches the Internet Properties dialog box with the Privacy tab displayed.

Syntax

BOOL LaunchPrivacyDialog(
   HWND hParent
);

Parameters

  • hParent
    A handle to the parent window of the Internet Properties dialog box. This parameter can be NULL.

Return value

Returns TRUE if successful, or FALSE otherwise.

Remarks

Use the LoadLibrary function and the GetProcAddress function to export LaunchPrivacyDialog from Inetcpl.cpl.

Examples

This example shows how to use LoadLibrary and GetProcAddress to load and call LaunchPrivacyDialog.

typedef BOOL (WINAPI *LAUNCHCPL) (HWND);
HMODULE hInetcpl;
HWND hParent;
LAUNCHCPL cpl;

hInetcpl = LoadLibrary("inetcpl.cpl");

if (hInetcpl == NULL)
{
   // Error loading module -- fail as securely as possible
   return;
}

cpl = (LAUNCHCPL)GetProcAddress(hInetcpl, "LaunchPrivacyDialog");
if(cpl)
{
  cpl(hParent);
}
FreeLibrary(hInetcpl);

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

N/A

DLL

Inetcpl.cpl