You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
685 B
44 lines
685 B
/* 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));
|
|
|
|
}
|