userenv: Implement stubbed userenv.dll.138.

This commit is contained in:
Andrey Turkin 2010-03-02 15:35:26 +03:00 committed by Alexandre Julliard
parent 6ee4a87ad6
commit baf86a13f3
2 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,5 @@
138 stdcall @(long str str str str long str long long str str long) USERENV_138
@ stdcall CreateEnvironmentBlock(ptr ptr long)
@ stdcall DestroyEnvironmentBlock(ptr)
@ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long)

View File

@ -176,3 +176,40 @@ BOOL WINAPI UnloadUserProfile( HANDLE hToken, HANDLE hProfile )
FIXME("(%p, %p): stub\n", hToken, hProfile);
return FALSE;
}
/******************************************************************************
* USERENV.138
*
* Create .lnk file
*
* PARAMETERS
* int csidl [in] well-known directory location to create link in
* LPCSTR lnk_dir [in] directory (relative to directory specified by csidl) to create link in
* LPCSTR lnk_filename [in] filename of the link file without .lnk extension
* LPCSTR lnk_target [in] file/directory pointed to by link
* LPCSTR lnk_iconfile [in] link icon resource filename
* DWORD lnk_iconid [in] link icon resource id in file referred by lnk_iconfile
* LPCSTR work_directory [in] link target's work directory
* WORD hotkey [in] link hotkey (virtual key id)
* DWORD win_state [in] initial window size (SW_SHOWMAXIMIZED to start maximized,
* SW_SHOWMINNOACTIVE to start minimized, everything else is default state)
* LPCSTR comment [in] comment - link's comment
* LPCSTR loc_filename_resfile [in] resource file which holds localized filename for this link file
* DWORD loc_filename_resid [in] resource id for this link file's localized filename
*
* RETURNS
* TRUE: Link file was successfully created
* FALSE: Link file was not created
*/
BOOL WINAPI USERENV_138( int csidl, LPCSTR lnk_dir, LPCSTR lnk_filename,
LPCSTR lnk_target, LPCSTR lnk_iconfile, DWORD lnk_iconid,
LPCSTR work_directory, WORD hotkey, DWORD win_state, LPCSTR comment,
LPCSTR loc_filename_resfile, DWORD loc_filename_resid)
{
FIXME("(%d,%s,%s,%s,%s,%d,%s,0x%x,%d,%s,%s,%d) - stub\n", csidl, debugstr_a(lnk_dir),
debugstr_a(lnk_filename), debugstr_a(lnk_target), debugstr_a(lnk_iconfile),
lnk_iconid, debugstr_a(work_directory), hotkey, win_state,
debugstr_a(comment), debugstr_a(loc_filename_resfile), loc_filename_resid );
return FALSE;
}