added stubs for NeedCurrentDirectoryForExePathA/W()

svn path=/trunk/; revision=13511
This commit is contained in:
Thomas Bluemel 2005-02-12 17:15:04 +00:00
parent 5d99bb07ca
commit a780838c2e
5 changed files with 56 additions and 0 deletions

View file

@ -1107,6 +1107,12 @@ GetCurrentDirectoryA(
LPSTR lpBuffer
);
BOOL
STDCALL
NeedCurrentDirectoryForExePathA(
LPCSTR ExeName
);
WINBOOL
STDCALL
GetDiskFreeSpaceA(

View file

@ -358,6 +358,7 @@ typedef PPROGRESS_ROUTINE LPPROGRESS_ROUTINE;
#define GetWindowsDirectory GetWindowsDirectoryW
#define SetCurrentDirectory SetCurrentDirectoryW
#define GetCurrentDirectory GetCurrentDirectoryW
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathW
#define GetDiskFreeSpace GetDiskFreeSpaceW
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExW
#define CreateDirectory CreateDirectoryW
@ -878,6 +879,7 @@ typedef PPROGRESS_ROUTINE LPPROGRESS_ROUTINE;
#define GetWindowsDirectory GetWindowsDirectoryA
#define SetCurrentDirectory SetCurrentDirectoryA
#define GetCurrentDirectory GetCurrentDirectoryA
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathA
#define GetDiskFreeSpace GetDiskFreeSpaceA
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExA
#define CreateDirectory CreateDirectoryA

View file

@ -1118,6 +1118,12 @@ GetCurrentDirectoryW(
LPWSTR lpBuffer
);
BOOL
STDCALL
NeedCurrentDirectoryForExePathW(
LPCWSTR ExeName
);
WINBOOL
STDCALL
GetDiskFreeSpaceW(

View file

@ -1059,4 +1059,44 @@ GetDllDirectoryA(
return Ret;
}
/*
* @unimplemented
*/
BOOL STDCALL
NeedCurrentDirectoryForExePathW(LPCWSTR ExeName)
{
DPRINT1("NeedCurrentDirectoryForExePathW(0x%x) not implemented!\n", ExeName);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @implemented
*/
BOOL STDCALL
NeedCurrentDirectoryForExePathA(LPCSTR ExeName)
{
ANSI_STRING ExeNameA;
UNICODE_STRING ExeNameU;
BOOL Ret;
RtlInitAnsiString(&ExeNameA, ExeName);
if(bIsFileApiAnsi)
{
RtlAnsiStringToUnicodeString(&ExeNameU, &ExeNameA, TRUE);
}
else
{
RtlOemStringToUnicodeString(&ExeNameU, &ExeNameA, TRUE);
}
Ret = NeedCurrentDirectoryForExePathW(ExeNameU.Buffer);
RtlFreeUnicodeString(&ExeNameU);
return Ret;
}
/* EOF */

View file

@ -641,6 +641,8 @@ MoveFileW@8
MoveFileWithProgressW@20
MulDiv@12
MultiByteToWideChar@24
NeedCurrentDirectoryForExePathA@4
NeedCurrentDirectoryForExePathW@4
NlsConvertIntegerToString@20
;NlsGetCacheUpdateCount
;NlsResetProcessLocale