IActiveDesktopP::SetSafeMode method (shlobj.h)

Sets or updates the Microsoft Active Desktop to safe mode.

Syntax

HRESULT SetSafeMode(
  DWORD dwFlags
);

Parameters

dwFlags

Type: DWORD

One of the following flags.

SSM_SET

Set to safe mode.

SSM_UPDATE

Update to safe mode.

Return value

Type: HRESULT

Returns S_OK if successful, or an error code otherwise.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj.h
DLL Shell32.dll (version 5.00 or later)

See also

IActiveDesktopP

Using the Active Desktop Object