Export (0) Print
Expand All

IOlkAccountHelper::GetIdentity

Office 2007

Gets the profile name of the account.

Quick Info

See IOlkAccountHelper.

HRESULT IOlkAccountHelper::GetIdentity ( 
	LPWSTR pwszIdentity,
	DWORD *pcch
);

Parameters

pwszIdentity

[in][out] Returns the profile name.

pcch

[in] [out]Upon calling this method, this is the size (in number of characters) of pwszIdentity that has been allocated. Upon return, this is the actual length of the returned profile name.

Return Values

E_OUTOFMEMORY

The returned profile name is longer than the size of pwszIdentity.

E_INVALIDARG

pcch is NULL.

Remarks

If pwszIdentity is too small to hold the profile name, it will not be set on return and pcch will point to the size required for pwszIdentity.

See Also

Constants for the Account Management API
PR_PROFILE_NAME


Community Additions

ADD
Show:
© 2014 Microsoft