Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Launches the Internet Properties dialog box with the Security tab displayed.
BOOL LaunchSecurityDialog(
HWND hParent
);
- hParent
A handle to the parent window of the Internet Properties dialog box. This parameter can be NULL.
Returns TRUE if successful, or FALSE otherwise.
Use the LoadLibrary function and the GetProcAddress function to export LaunchSecurityDialog from Inetcpl.cpl.
This example shows how to use LoadLibrary and GetProcAddress to load and call LaunchSecurityDialog.
Security Warning: Using LoadLibrary incorrectly can compromise the security of your application by loading the wrong DLL. Refer to the LoadLibrary documentation for information about how to correctly load DLLs with different versions of Windows.
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, "LaunchSecurityDialog");
if(cpl)
{
cpl(hParent);
}
FreeLibrary(hInetcpl);
Minimum supported client |
Windows 2000 Professional |
Minimum supported server |
Windows 2000 Server |
Header |
N/A |
DLL |
Inetcpl.cpl |