Ignore:
Timestamp:
Jan 31, 2012, 10:16:33 PM (14 years ago)
Author:
dmik
Message:

Add a bunch of Win32 API stubs needed for Flash above 10.0.45.

This is mainly to prevent the plugin from hitting the breakpoints in
the debug version of Odin. These APIs seem to be only referenced
by some of the libraries built in to the Win32 plugin DLL but never
actually called at runtime. This is why the release version of Odin
does not complain and Flash actually works w/o them at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/dbgwrap.cpp

    r21916 r21953  
    1818#include <dbgwrap.h>
    1919
    20 extern "C" {
    21 
    2220BOOL WINAPI TryEnterCriticalSection( CRITICAL_SECTION *crit );
    2321void WINAPI ReinitializeCriticalSection( CRITICAL_SECTION *crit );
     
    2624BOOL WINAPI CloseProfileUserMapping(void);
    2725BOOL WINAPI OpenProfileUserMapping(void);
     26
     27HANDLE WIN32API OpenThread(DWORD dwDesiredAccess,
     28                           BOOL bInheritHandle,
     29                           DWORD dwThreadId);
    2830
    2931LPVOID WIN32API CreateFiber( DWORD dwStackSize,
     
    687689DEBUGWRAP28(CreateRemoteThread);
    688690DEBUGWRAP24(CreateThread);
     691DEBUGWRAP12(OpenThread);
    689692DEBUGWRAP4(ExitThread);
    690693DEBUGWRAP_LVL2_0(GetCurrentThread);
     
    702705DEBUGWRAP8(SetThreadPriority);
    703706DEBUGWRAP8(SetThreadPriorityBoost);
     707DEBUGWRAP12(QueueUserAPC);
    704708DEBUGWRAP4(SuspendThread);
    705709DEBUGWRAP8(TerminateThread);
     
    951955DEBUGWRAP_LVL2_12(OemToCharBuffW)
    952956DEBUGWRAP_LVL2_8(OemToCharW)
    953 
    954 } // extern "C"
Note: See TracChangeset for help on using the changeset viewer.