IBizDeskSecurity::CanUserAccess

Ee800132.c++_off(en-US,CS.10).gifEe800132.vb_on(en-US,CS.10).gif

Use this method to determine whether the current user has read access rights to the specified Commerce Server Business Desk module.

Definition

HRESULT IBizDeskSecurity::CanUserAccess(BSTRbstrPath,VARIANT_BOOL*pbAccessOK);

Parameters

bstrPath

[in] A BSTR that contains the file name and path for a Business Desk module.

pbAccessOK

[out, retval] The address of a VARIANT_BOOL used to return either TRUE or FALSE. A value of TRUE indicates that the current user has read access rights to the specified file. A value of FALSE indicates that the current user does not have read access rights to the specified file.

Return Values

This method returns an HRESULT indicating whether or not it completed successfully. See the Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

Whether the user has read access to the specified Business Desk module is determined from the entries in the access control lists (ACLs) set for the file.

The pbAccessOK parameter contains valid data only if the method returns successfully.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

BizDeskSecurity Object


All rights reserved.