ISharingConfigurationManager::ArePrintersShared method (shobjidl_core.h)

Determines whether any printers connected to this computer are shared.

Syntax

HRESULT ArePrintersShared();

Return value

Type: HRESULT

Returns standard HRESULT values, including the following:

Return code Description
S_OK
Shared printers were detected.
S_FALSE
No shared printers were found.
ERROR_FILE_NOT_FOUND
No printers capable of being shared were found.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)