diff options
author | Hennes Rohling <hro@openoffice.org> | 2001-07-30 13:34:29 +0000 |
---|---|---|
committer | Hennes Rohling <hro@openoffice.org> | 2001-07-30 13:34:29 +0000 |
commit | be86e31d3311d2f7a7b06616dffa409eab423bd4 (patch) | |
tree | 2dbf8441891adeb488322c19a94d8ae9d1f9d02d /sal/inc/systools | |
parent | 43ec3f6297ba160be8cdfb41f1c3dbd7b7f0c2f5 (diff) |
#88197# #88540# Added unicode wrapper for GetDiskFreeSpaceEx and GetVolumeInformation
Diffstat (limited to 'sal/inc/systools')
-rw-r--r-- | sal/inc/systools/win32/kernel9x.h | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/sal/inc/systools/win32/kernel9x.h b/sal/inc/systools/win32/kernel9x.h index 9224c555c2c7..c3f072b780e6 100644 --- a/sal/inc/systools/win32/kernel9x.h +++ b/sal/inc/systools/win32/kernel9x.h @@ -2,9 +2,9 @@ * * $RCSfile: kernel9x.h,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: tra $ $Date: 2001-07-17 07:21:02 $ + * last change: $Author: hro $ $Date: 2001-07-30 14:34:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -162,6 +162,19 @@ extern "C" { #undef SetCurrentDirectoryW #endif +#ifdef GetVolumeInformationW +#undef GetVolumeInformationW +#endif + + +#ifdef GetDiskFreeSpaceExA +#undef GetDiskFreeSpaceExA +#endif + +#ifdef GetDiskFreeSpaceExW +#undef GetDiskFreeSpaceExW +#endif + //------------------------------------------------------------------------ // set the compiler directives for the function pointer we declare below // if we build sal or sal will be used as static library we define extern @@ -334,6 +347,34 @@ KERNEL9X_API BOOL ( WINAPI * lpfnSetCurrentDirectoryW )( LPCWSTR lpPathName // new directory name ); +// GetVolumeInformation +KERNEL9X_API BOOL ( WINAPI* lpfnGetVolumeInformationW )( + LPCWSTR lpRootPathName, // root directory + LPWSTR lpVolumeNameBuffer, // volume name buffer + DWORD nVolumeNameSize, // length of name buffer + LPDWORD lpVolumeSerialNumber, // volume serial number + LPDWORD lpMaximumComponentLength, // maximum file name length + LPDWORD lpFileSystemFlags, // file system options + LPWSTR lpFileSystemName, // file system name buffer + DWORD nFileSystemNameSize // length of file system name buffer +); + +// GetDiskFreeSpaceExA +KERNEL9X_API BOOL (WINAPI *lpfnGetDiskFreeSpaceExA)( + LPCSTR lpDirectoryName, // directory name + PULARGE_INTEGER lpFreeBytesAvailable, // bytes available to caller + PULARGE_INTEGER lpTotalNumberOfBytes, // bytes on disk + PULARGE_INTEGER lpTotalNumberOfFreeBytes // free bytes on disk +); + +// GetDiskFreeSpaceExW +KERNEL9X_API BOOL (WINAPI *lpfnGetDiskFreeSpaceExW)( + LPCWSTR lpDirectoryName, // directory name + PULARGE_INTEGER lpFreeBytesAvailable, // bytes available to caller + PULARGE_INTEGER lpTotalNumberOfBytes, // bytes on disk + PULARGE_INTEGER lpTotalNumberOfFreeBytes // free bytes on disk +); + //------------------------------------------------------------------------ // redefine the above undefined macros so that the preprocessor replaces // all occurrences of this macros with our function pointer @@ -365,6 +406,10 @@ KERNEL9X_API BOOL ( WINAPI * lpfnSetCurrentDirectoryW )( #define GetCurrentDirectoryW lpfnGetCurrentDirectoryW #define SetCurrentDirectoryW lpfnSetCurrentDirectoryW +#define GetVolumeInformationW lpfnGetVolumeInformationW +#define GetDiskFreeSpaceExA lpfnGetDiskFreeSpaceExA +#define GetDiskFreeSpaceExW lpfnGetDiskFreeSpaceExW + #ifdef __cplusplus } #endif |