Ignore:
Timestamp:
Mar 22, 2001, 7:16:54 PM (24 years ago)
Author:
sandervl
Message:

thread handler call workaround for app bugs + GetBinaryTypeA/W port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.CPP

    r5308 r5354  
    1 /* $Id: KERNEL32.CPP,v 1.59 2001-03-13 18:45:32 sandervl Exp $ */
     1/* $Id: KERNEL32.CPP,v 1.60 2001-03-22 18:16:40 sandervl Exp $ */
    22
    33/*
     
    238238    dprintf(("dwAvailVirtual  %X\n", arg1->dwAvailVirtual));
    239239}
    240 VOID WIN32API Sleep(DWORD arg1)
    241 {
    242     dprintf2(("KERNEL32:  Sleep %d\n", arg1));
    243     O32_Sleep(arg1);
    244 }
    245 //******************************************************************************
    246 //******************************************************************************
    247 DWORD WIN32API GetPriorityClass(HANDLE arg1)
    248 {
    249     dprintf(("KERNEL32:  GetPriorityClass\n"));
    250     return O32_GetPriorityClass(arg1);
    251 }
    252 //******************************************************************************
    253 //******************************************************************************
    254 BOOL WIN32API SetPriorityClass(HANDLE arg1, DWORD  arg2)
    255 {
    256     dprintf(("KERNEL32:  SetPriorityClass\n"));
    257     return O32_SetPriorityClass(arg1, arg2);
    258 }
    259 //******************************************************************************
    260 //******************************************************************************
    261240BOOL WIN32API Beep( DWORD arg1, DWORD  arg2)
    262241{
     
    370349}
    371350//******************************************************************************
    372 //TODO: Not complete or correct, but sufficient for now
    373 //******************************************************************************
    374 BOOL WIN32API GetBinaryTypeA(LPCTSTR lpApplicationName, LPDWORD lpBinaryType)
    375 {
    376   dprintf(("KERNEL32:  OS2GetBinaryTypeA %s\n", lpApplicationName));
    377   if(strstr(lpApplicationName, ".EXE") ||   strstr(lpApplicationName, ".exe"))
    378         *lpBinaryType = SCS_32BIT_BINARY;
    379   else
    380   if(strstr(lpApplicationName, ".COM") ||   strstr(lpApplicationName, ".com"))
    381         *lpBinaryType = SCS_DOS_BINARY;
    382   else
    383   if(strstr(lpApplicationName, ".PIF") ||   strstr(lpApplicationName, ".pif"))
    384         *lpBinaryType = SCS_PIF_BINARY;
    385   else  return(FALSE);
    386   return(TRUE);
    387 }
    388 //******************************************************************************
    389 //******************************************************************************
    390 BOOL WIN32API GetBinaryTypeW(LPCWSTR lpApplicationName, LPDWORD lpBinaryType)
    391 {
    392  BOOL rc;
    393  char  *astring;
    394 
    395     dprintf(("KERNEL32:  OS2GetBinaryTypeW\n"));
    396     astring = UnicodeToAsciiString((LPWSTR)lpApplicationName);
    397     rc = GetBinaryTypeA(astring, lpBinaryType);
    398     FreeAsciiString(astring);
    399     return(rc);
    400 }
    401 //******************************************************************************
    402351//******************************************************************************
    403352BOOL WIN32API FlushInstructionCache(     /*PLF Mon  98-02-09 23:56:49 : STUB STUB STUB STUB STUB */
Note: See TracChangeset for help on using the changeset viewer.