| 
            Last change
 on this file since 21732 was             21596, checked in by dmik, 15 years ago           | 
        
        
          | 
             
user32: Added internal helper RunOnAuxThread() API to perform function calls on a dedicated helper thread. 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
             
           | 
        
        
          | 
            File size:
            644 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | /*
 | 
|---|
| 2 |  * Auxiliary thread API
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  * Used to execute code on a dedicated thread.
 | 
|---|
| 5 |  *
 | 
|---|
| 6 |  * Project Odin Software License can be found in LICENSE.TXT
 | 
|---|
| 7 |  *
 | 
|---|
| 8 |  */
 | 
|---|
| 9 | 
 | 
|---|
| 10 | #ifndef __AUXTHREAD_H__
 | 
|---|
| 11 | #define __AUXTHREAD_H__
 | 
|---|
| 12 | 
 | 
|---|
| 13 | #ifndef VOID
 | 
|---|
| 14 | #define VOID void
 | 
|---|
| 15 | #endif
 | 
|---|
| 16 | 
 | 
|---|
| 17 | typedef PVOID (* PAUXTHREADFN)(PVOID arg1, PVOID arg2, PVOID arg3, PVOID arg4);
 | 
|---|
| 18 | 
 | 
|---|
| 19 | BOOL WIN32API RunOnAuxThread(PAUXTHREADFN pfn, PVOID arg1, PVOID arg2,
 | 
|---|
| 20 |                              PVOID arg3, PVOID arg4);
 | 
|---|
| 21 | 
 | 
|---|
| 22 | BOOL WIN32API RunOnAuxThreadAndWait(PAUXTHREADFN pfn, PVOID arg1, PVOID arg2,
 | 
|---|
| 23 |                                     PVOID arg3, PVOID arg4, PVOID *ret);
 | 
|---|
| 24 | 
 | 
|---|
| 25 | VOID StopAuxThread();
 | 
|---|
| 26 | 
 | 
|---|
| 27 | #endif //__AUXTHREAD_H__
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.