Changeset 6288
- Timestamp:
- Jul 10, 2001, 7:26:52 AM (24 years ago)
- Location:
- trunk/src/win32k/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/win32k/test/fake.c ¶
r5110 r6288 1 /* $Id: fake.c,v 1. 8 2001-02-11 15:27:25bird Exp $1 /* $Id: fake.c,v 1.9 2001-07-10 05:26:51 bird Exp $ 2 2 * 3 3 * Fake stubs for the ldr and kernel functions we imports or overloads. … … 723 723 } 724 724 725 726 /** 727 * Creates a pseudo handle for a given memory address. 728 * @returns OS/2 return code. NO_ERROR on success. 729 * @param pvData Pointer to the data which the handle should represent. 730 * @param hobOwner Owner of the pseudo handle. 731 * @param phob Pointer to object handle variable. Upon successful return 732 * this will hold the handle value of the crated pseudo handle. 733 * @remark Used for many types of handles within the kernel. 734 * Among them are the loader HMTEs. The loader uses usOwner = 0xffa6 (ldrmte). 735 */ 736 APIRET KRNLCALL fakeVMCreatePseudoHandle( 737 PVOID pvData, 738 VMHOB usOwner, 739 PVMHOB phob) 740 { 741 DUMMY(); 742 printf("fakeVMCreatePseudoHandle: - not implemented\n"); 743 return ERROR_NOT_SUPPORTED; 744 } 745 746 747 /** 748 * This call frees a pseudo handle pointer previously allocated by 749 * VMCreatePseudoHandle. 750 * @returns OS/2 return code. 751 * @param hob Handle to be freed. 752 */ 753 APIRET KRNLCALL fakeVMFreePseudoHandle( 754 VMHOB hob) 755 { 756 DUMMY(); 757 printf("fakeVMFreePseudoHandle: - not implemented\n"); 758 return ERROR_NOT_SUPPORTED; 759 } 725 760 726 761 … … 2065 2100 } 2066 2101 2102 /** 2103 * Force a thread to be made ready. 2104 * @param flFlag Which flag(s?) to set. 2105 * @param pTCB Pointer to the thread control block of the thread to be forced. 2106 */ 2107 void KRNLCALL fakeTKForceThread(ULONG flFlag, PTCB pTCB) 2108 { 2109 DUMMY(); 2110 printf("fakeTKForceThread: - not implemented\n"); 2111 } 2112 2113 /** 2114 * Set force flag on a task. 2115 * @param flFlag Which flag(s?) to set. 2116 * @param pPTDA Pointer to the PTDA of the task to be processed. 2117 * @param fForce FALSE Just set the flag on all threads. 2118 * TRUE Force all threads ready by calling TKForceThread. 2119 */ 2120 void KRNLCALL fakeTKForceTask(ULONG flFlag, PPTDA pPTDA, BOOL fForce) 2121 { 2122 DUMMY(); 2123 printf("fakeTKForceTask: - not implemented\n"); 2124 } 2125 2126 /** 2127 * Get priotity of a thread. 2128 * @returns Thread priority. 2129 * @param pTCB pointer to the TCB of the thread in question. 2130 */ 2131 ULONG KRNLCALL fakeTKGetPriority(PTCB pTCB) 2132 { 2133 DUMMY(); 2134 printf("fakeTKGetPriority: - not implemented\n"); 2135 return -1; 2136 } 2137 2138 /** 2139 * Make current thread sleep. 2140 * @returns NO_ERROR on success. 2141 * ERROR_INTERRUPT if a signal is forced on the thread. 2142 * ERROR_TIMEOUT if we timeout. 2143 * @param ulSleepId 32-bit sleep id which TKWakeup will be called with. 2144 * @param ulTimeout Number of milliseconds to sleep. (0 is not yield) 2145 * -1 means forever or till wakeup. 2146 * @param fUnint TRUE: may not interrupt sleep. 2147 * FALSE: may interrupt sleep. 2148 * @param flSleepType ??? 2149 */ 2150 ULONG KRNLCALL fakeTKSleep(ULONG ulSleepId, ULONG ulTimeout, ULONG fUnInterruptable, ULONG flWakeupType) 2151 { 2152 DUMMY(); 2153 printf("fakeTKSleep: - not implemented\n"); 2154 return ERROR_NOT_SUPPORTED; 2155 } 2156 2157 /** 2158 * Wakeup sleeping thread(s). 2159 * @returns NO_ERROR on succes. 2160 * Appropriate error code on failure. 2161 * @param ulSleepId 32-bit sleep id which threads are sleeping on. 2162 * @param flWakeUpType How/what to wakeup. 2163 * @param pcWakedUp Pointer to variable which is to hold the count of 2164 * thread waked up. 2165 */ 2166 ULONG KRNLCALL fakeTKWakeup(ULONG ulSleepId, ULONG flWakeupType, PULONG cWakedUp) 2167 { 2168 DUMMY(); 2169 printf("fakeTKWakeup: - not implemented\n"); 2170 return ERROR_NOT_SUPPORTED; 2171 } 2172 2173 2174 /** 2175 * Wake up a single thread. 2176 * @returns NO_ERROR on succes. 2177 * Appropriate error code on failure. 2178 * @param pTCB Pointer to the TCB of the thread to be waken. 2179 */ 2180 ULONG KRNLCALL fakeTKWakeThread(PTCB pTCB) 2181 { 2182 DUMMY(); 2183 printf("fakeTKWakeThread: - not implemented\n"); 2184 return ERROR_NOT_SUPPORTED; 2185 } 2186 2187 /** 2188 * See which thread will be Wakeup. 2189 * @returns Pointer to TCB of the thread on success. 2190 * NULL on failure or no threads. 2191 * @param ulSleepId 32-bit sleep id which threads are sleeping on. 2192 * @param flWakeUpType How/what to wakeup. 2193 */ 2194 PTCB KRNLCALL fakeTKQueryWakeup(ULONG ulSleepId, ULONG flWakeupType) 2195 { 2196 DUMMY(); 2197 printf("fakeTKQueryWakeup: - not implemented\n"); 2198 return ERROR_NOT_SUPPORTED; 2199 } 2067 2200 2068 2201 /** -
TabularUnified trunk/src/win32k/test/fakea.asm ¶
r5247 r6288 1 ; $Id: fakea.asm,v 1. 5 2001-02-23 02:57:55bird Exp $1 ; $Id: fakea.asm,v 1.6 2001-07-10 05:26:52 bird Exp $ 2 2 ; 3 3 ; Fake assembly imports. … … 46 46 public fakeRASRST 47 47 public fakedh_SendEvent 48 public fakeh_POST_SIGNAL 48 49 49 50 … … 285 286 int 3 286 287 fakedh_SendEvent endp 288 289 290 ;; 291 ; POST_SIGNAL faker 292 fakeh_POST_SIGNAL proc near 293 ; dummy prolog. 294 mov ax, ds 295 mov ax, ds 296 mov ax, ds 297 mov ax, ds 298 int 3 299 fakeh_POST_SIGNAL endp 287 300 288 301
Note:
See TracChangeset
for help on using the changeset viewer.