WcsGetUsePerUserProfiles function

The WcsGetUsePerUserProfiles function determines whether the user has chosen to use a per-user profile association list for the specified device.

Syntax

BOOL WcsGetUsePerUserProfiles(
  LPCWSTR pDeviceName,
  DWORD   dwDeviceClass,
  PBOOL   pUsePerUserProfiles
);

Parameters

pDeviceName

A pointer to a string that contains the friendly name of the device.

dwDeviceClass

A flag value that specifies the class of the device. This parameter must take one of the following values:

CLASS_MONITOR

Specifies a display device.

CLASS_PRINTER

Specifies a printer.

CLASS_SCANNER

Specifies an image capture device.

pUsePerUserProfiles

A pointer to a location to receive a Boolean value that is TRUE if the user has chosen to use a per-user profile association list for the specified device; otherwise FALSE.

Return Value

None

Remarks

This function will fail if the device pointed to by pDeviceName is not of the class specified by dwDeviceClass.

This function is executable in Least-Privileged User Account (LUA) context.

Requirements

   
Windows version Included in Windows Vista and later.
Target Platform Universal
Header icm.h
Library Mscms.lib
DLL Mscms.dll

See Also

WcsSetUsePerUserProfiles