This topic has not yet been rated - Rate this topic

GetProfileType function

Applies to: desktop apps only

Retrieves the type of profile loaded for the current user.

Syntax

BOOL WINAPI GetProfileType(
  __out  DWORD *pdwFlags
);

Parameters

pdwFlags [out]

Type: DWORD*

Pointer to a variable that receives the profile type. If the function succeeds, it sets one or more of the following values:

PT_MANDATORY

The user has a Mandatory User Profiles.

PT_ROAMING

The user has a Roaming User Profiles.

PT_TEMPORARY

The user has a Temporary User Profiles; it will be deleted at logoff.

Return value

Type: BOOL

TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.

Remarks

If the user profile is not already loaded, the function fails.

Note that the caller must have KEY_READ access to HKEY_LOCAL_MACHINE. This access right is granted by default. For more information, see Registry Key Security and Access Rights.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Userenv.h

Library

Userenv.lib

DLL

Userenv.dll

See also

User Profiles Overview
User Profiles Reference
LoadUserProfile

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ