Leaked source code of windows server 2003
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

  1. /* MODS.C - stubs, asm substitutes etc. for 32-bit port of pifedit.exe */
  2. #include "windows.h"
  3. #include "stdio.h"
  4. #include "memory.h"
  5. #include "mods.h"
  6. int MemCopy(LPSTR src, LPSTR dest, int cb)
  7. {
  8. memcpy(dest, src, cb);
  9. return(1);
  10. }
  11. BOOL SetInitialMode(void)
  12. {
  13. return(1);
  14. }
  15. int CountLines(LPSTR lpstr)
  16. {
  17. return(0);
  18. }
  19. DWORD GetTextExtent(HDC hdc, LPSTR lpszStr, int cbStr)
  20. {
  21. SIZE size;
  22. if(GetTextExtentPoint(hdc, lpszStr, cbStr, &size)) {
  23. return( MAKELONG( (LOWORD(size.cy)), (LOWORD(size.cx)) ) );
  24. }
  25. else
  26. return(0);
  27. }
  28. int delete(LPSTR lpszPath)
  29. {
  30. return(unlink(lpszPath));
  31. }