ISharingConfigurationManager::ArePrintersShared method

Determines whether any printers connected to this computer are shared.

Syntax


HRESULT ArePrintersShared();

Parameters

This method has no parameters.

Return value

Type: HRESULT

Returns standard HRESULT values, including the following:

Return codeDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: