Retrieves the type of profile loaded for the current user.
USERENVAPI BOOL GetProfileType( DWORD *dwFlags );
Pointer to a variable that receives the profile type. If the function succeeds, it sets one or more of the following values:
The user has a Mandatory User Profiles.
The user has a Roaming User Profiles.
The user has a Roaming User Profile that was created on another PC and is being downloaded. This profile type implies PT_ROAMING.
The user has a Temporary User Profiles; it will be deleted at logoff.
TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.
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.
If the profile type is PT_ROAMING_PREEXISTING, Explorer will not reinitialize default programs associations when a profile is loaded on a machine for the first time.
|Windows version||Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]|