Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SHRestricted
Collapse the table of content
Expand the table of content

SHRestricted function

[SHRestricted is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Determines whether a specified administrator policy is in effect. In many cases, applications need to modify certain behaviors to comply with the policies enacted by system administrators.

Syntax


DWORD SHRestricted(
   RESTRICTIONS rest
);

Parameters

rest

Type: RESTRICTIONS

Specifies one of the flags described in the RESTRICTIONS enumerated type.

Return value

Type: DWORD

Returns nonzero if the specified restriction is in effect, or zero otherwise.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft