home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. CD ROM (Annual Premium Edition)
/
premium.zip
/
premium
/
IBMOS2_2
/
APPTYPE.ZIP
/
patches.os2
< prev
next >
Wrap
Text File
|
1993-06-11
|
2KB
|
77 lines
diff -c old/apptype.c new/apptype.c
*** old/apptype.c Wed Mar 24 09:23:04 1993
--- new/apptype.c Fri Jun 11 15:36:34 1993
***************
*** 5,16 ****
#define INCL_DOSSESMGR
#define INCL_DOSERRORS
#include <os2.h>
#include <stdio.h>
int main (int argc, char *argv[])
{
! int result, i;
! ULONG rc, type;
#ifdef __EMX__
_wildcard (&argc, &argv);
--- 5,24 ----
#define INCL_DOSSESMGR
#define INCL_DOSERRORS
#include <os2.h>
+ #if defined (MSC)
+ #include "fapptyp.h"
+ typedef USHORT APPTYPE;
+ #define DosQueryAppType(filename, type) DosQAppType(filename, type)
+ #else
+ typedef ULONG APPTYPE;
+ #endif
+
#include <stdio.h>
int main (int argc, char *argv[])
{
! int result, i;
! APPTYPE rc, type;
#ifdef __EMX__
_wildcard (&argc, &argv);
***************
*** 57,64 ****
printf (" PM executable");
else
printf (" OS/2 executable");
- putchar ('\n');
}
}
return (0);
}
--- 65,84 ----
printf (" PM executable");
else
printf (" OS/2 executable");
}
+ switch(type & (FAPPTYP_NOTWINDOWCOMPAT |
+ FAPPTYP_WINDOWCOMPAT | FAPPTYP_WINDOWAPI)) {
+ case FAPPTYP_NOTWINDOWCOMPAT:
+ printf(" [NOTWINDOWCOMPAT]");
+ break;
+ case FAPPTYP_WINDOWCOMPAT:
+ printf(" [WINDOWCOMPAT]");
+ break;
+ case FAPPTYP_WINDOWAPI:
+ printf(" [WINDOWAPI]");
+ break;
+ }
+ putchar ('\n');
}
return (0);
}
Only in new: apptype.def
Only in new: apptype.exe
Only in new: apptype32.def
Only in new: fapptyp.h
Only in new: makefile.os2
Only in new: notes.txt
Only in new: readme.txt