Export (0) Print
Expand All
Expand Minimize

WcsSetUsePerUserProfiles function

Enables a user to specify whether or not to use a per-user profile association list for the specified device.

Syntax


BOOL WINAPI WcsSetUsePerUserProfiles(
  _In_  LPCWSTR pDeviceName,
  _In_  DWORD dwDeviceClass,
  _In_  BOOL usePerUserProfiles
);

Parameters

pDeviceName [in]

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

dwDeviceClass [in]

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

CLASS_MONITORSpecifies a display device.
CLASS_PRINTERSpecifies a printer.
CLASS_SCANNERSpecifies an image capture device.

 

usePerUserProfiles [in]

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

Return value

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE. For extended error information, call GetLastError.

Remarks

If usePerUserProfiles is TRUE, and the user is not already using a per-user profile association list for pDeviceName, then the per-user profile association list is initialized by making a copy of the system-wide profile association list for the same device. From then on, changes to the system-wide list are not included in the per-user list.

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Icm.h

Library

Mscms.lib

DLL

Mscms.dll

See also

Basic Color Management Concepts
Windows Color System Schemas and Algorithms
Functions
WcsGetUsePerUserProfiles

 

 

Community Additions

ADD
Show:
© 2014 Microsoft