PerUserInit function (shlobj.h)

[This function is available through Windows XP with Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Creates My Documents and other special folders, initializes them as needed, and creates the Send To shortcut menu item for My Documents.

Syntax

void PerUserInit();

Return value

None

Remarks

Applications do not need to call this function because the operating system already does so.

This function does not have an associated header or library file so it must be called by ordinal value. Call LoadLibrary with the DLL name Mydocs.dll to obtain a module handle. Then call GetProcAddress with that module handle and the ordinal number 7 to use this function.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj.h
DLL Mydocs.dll (version 6.0 or later)