45 lines
641 B
C
45 lines
641 B
C
|
/* MODS.C - stubs, asm substitutes etc. for 32-bit port of pifedit.exe */
|
||
|
#include "windows.h"
|
||
|
#include "stdio.h"
|
||
|
#include "memory.h"
|
||
|
#include "mods.h"
|
||
|
|
||
|
int MemCopy(LPSTR src, LPSTR dest, int cb)
|
||
|
{
|
||
|
memcpy(dest, src, cb);
|
||
|
return(1);
|
||
|
}
|
||
|
|
||
|
|
||
|
BOOL SetInitialMode(void)
|
||
|
{
|
||
|
return(1);
|
||
|
}
|
||
|
|
||
|
|
||
|
int CountLines(LPSTR lpstr)
|
||
|
{
|
||
|
return(0);
|
||
|
}
|
||
|
|
||
|
|
||
|
DWORD GetTextExtent(HDC hdc, LPSTR lpszStr, int cbStr)
|
||
|
{
|
||
|
SIZE size;
|
||
|
|
||
|
if(GetTextExtentPoint(hdc, lpszStr, cbStr, &size)) {
|
||
|
return( MAKELONG( (LOWORD(size.cy)), (LOWORD(size.cx)) ) );
|
||
|
}
|
||
|
|
||
|
else
|
||
|
return(0);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
int delete(LPSTR lpszPath)
|
||
|
{
|
||
|
return(unlink(lpszPath));
|
||
|
|
||
|
}
|