Stub for SetVolumeLabel().

This commit is contained in:
Dave Pickles 1999-06-05 15:19:30 +00:00 committed by Alexandre Julliard
parent 991fc35847
commit 18d3ad837c
3 changed files with 25 additions and 2 deletions

View File

@ -1202,7 +1202,27 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label,
return ret; return ret;
} }
BOOL WINAPI SetVolumeLabelA(LPCSTR rootpath,LPCSTR volname) { /***********************************************************************
* SetVolumeLabelA (KERNEL32.675)
*/
BOOL WINAPI SetVolumeLabelA(LPCSTR rootpath,LPCSTR volname)
{
FIXME_(dosfs)("(%s,%s),stub!\n",rootpath,volname); FIXME_(dosfs)("(%s,%s),stub!\n",rootpath,volname);
return TRUE; return TRUE;
} }
/***********************************************************************
* SetVolumeLabelW (KERNEL32.676)
*/
BOOL WINAPI SetVolumeLabelW(LPCWSTR rootpath,LPCWSTR volname)
{
LPSTR xroot, xvol;
BOOL ret;
xroot = HEAP_strdupWtoA( GetProcessHeap(), 0, rootpath);
xvol = HEAP_strdupWtoA( GetProcessHeap(), 0, volname);
ret = SetVolumeLabelA( xroot, xvol );
HeapFree( GetProcessHeap(), 0, xroot );
HeapFree( GetProcessHeap(), 0, xvol );
return ret;
}

View File

@ -1680,6 +1680,9 @@ BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes) #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
UINT WINAPI SetHandleCount(UINT); UINT WINAPI SetHandleCount(UINT);
#define SetSwapAreaSize(w) (w) #define SetSwapAreaSize(w) (w)
BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
DWORD WINAPI SizeofResource(HMODULE,HRSRC); DWORD WINAPI SizeofResource(HMODULE,HRSRC);
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle)) #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT); DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);

View File

@ -694,7 +694,7 @@ import ntdll.dll
673 stdcall SetTimeZoneInformation(ptr) SetTimeZoneInformation 673 stdcall SetTimeZoneInformation(ptr) SetTimeZoneInformation
674 stdcall SetUnhandledExceptionFilter(ptr) SetUnhandledExceptionFilter 674 stdcall SetUnhandledExceptionFilter(ptr) SetUnhandledExceptionFilter
675 stdcall SetVolumeLabelA(str str) SetVolumeLabelA 675 stdcall SetVolumeLabelA(str str) SetVolumeLabelA
676 stub SetVolumeLabelW 676 stdcall SetVolumeLabelW(wstr wstr) SetVolumeLabelW
677 stdcall SetupComm(long long long) SetupComm 677 stdcall SetupComm(long long long) SetupComm
678 stdcall SizeofResource(long long) SizeofResource 678 stdcall SizeofResource(long long) SizeofResource
679 stdcall Sleep(long) Sleep 679 stdcall Sleep(long) Sleep