Source

replaceables / Win32s / _TMPPATH.C

Full commit
/* Platform specific - Win32s / Win32 / Win95 / WinNT / Win98
version of 'replacables_GetTempPath()'/ */

#include <Windows.H>
#pragma hdrstop

#include "Replace\Win32s\_TmpPath.H"

/* I seem to be havnig trouble with these routines, the message:
Unresolved external replaceables_GetTempPathA referenced from X
is buggering me.  I'll undefine the shortcut macros */

#ifdef replaceables_GetTempPath
#  undef replaceables_GetTempPath
#endif
#ifdef replaceables_GetTempPathA
#  undef replaceables_GetTempPathA
#endif
#ifdef replaceables_GetTempPathW
#  undef replaceables_GetTempPathW
#endif
/*-------------------------------------------------------------------------*/
void replaceables_GetTempPathA( /* ANSI version */
	DWORD nBufferLength, /* # chars buffer can take */
   char* lpBuffer /* Address of buffer to take string */
)
{
	/* We can use the new Win32 function GetTempPath() */
   GetTempPathA(nBufferLength, lpBuffer);
}
/*-------------------------------------------------------------------------*/
void replaceables_GetTempPathW( /* UNICODE version */
	DWORD nBufferLength, /* # chars buffer can take */
   wchar_t* lpwBuffer /* Address of buffer to take string */
)
{
	/* We can use the new Win32 function GetTempPath() */
   GetTempPathW(nBufferLength, lpwBuffer);
}
/*-------------------------------------------------------------------------*/