Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

csrtask.c File Reference

#include "csrdll.h"

Go to the source code of this file.

Functions

NTSTATUS CsrNewThread (VOID)
NTSTATUS CsrIdentifyAlertableThread (VOID)
NTSTATUS CsrSetPriorityClass (IN HANDLE ProcessHandle, IN OUT PULONG PriorityClass)


Function Documentation

NTSTATUS CsrIdentifyAlertableThread VOID   ) 
 

Definition at line 51 of file csrtask.c.

References CsrClientCallServer(), NTSTATUS(), NULL, and Status.

00052 { 00053 NTSTATUS Status; 00054 CSR_API_MSG m; 00055 PCSR_IDENTIFY_ALERTABLE_MSG a = &m.u.IndentifyAlertable; 00056 00057 a->ClientId = NtCurrentTeb()->ClientId; 00058 00059 Status = CsrClientCallServer( 00060 &m, 00061 NULL, 00062 CSR_MAKE_API_NUMBER( CSRSRV_SERVERDLL_INDEX, 00063 CsrpIdentifyAlertable 00064 ), 00065 sizeof( *a ) 00066 ); 00067 00068 return Status; 00069 }

NTSTATUS CsrNewThread VOID   ) 
 

Definition at line 24 of file csrtask.c.

References CsrPortHandle, and NtRegisterThreadTerminatePort().

00030 : 00031 00032 This function is called by each new thread (except the first thread in 00033 a process.) It's function is to call the subsystem to notify it that 00034 a new thread is starting. 00035 00036 Arguments: 00037 00038 None. 00039 00040 Return Value: 00041 00042 Status Code from either client or server 00043 00044 --*/ 00045 00046 { 00047 return NtRegisterThreadTerminatePort( CsrPortHandle ); 00048 }

NTSTATUS CsrSetPriorityClass IN HANDLE  ProcessHandle,
IN OUT PULONG  PriorityClass
 

Definition at line 73 of file csrtask.c.

References CsrClientCallServer(), NTSTATUS(), NULL, and Status.

00077 { 00078 NTSTATUS Status; 00079 CSR_API_MSG m; 00080 PCSR_SETPRIORITY_CLASS_MSG a = &m.u.PriorityClass; 00081 00082 a->ProcessHandle = ProcessHandle; 00083 a->PriorityClass = *PriorityClass; 00084 00085 Status = CsrClientCallServer( 00086 &m, 00087 NULL, 00088 CSR_MAKE_API_NUMBER( CSRSRV_SERVERDLL_INDEX, 00089 CsrpSetPriorityClass 00090 ), 00091 sizeof( *a ) 00092 ); 00093 00094 if ( *PriorityClass == 0 ) { 00095 *PriorityClass = a->PriorityClass; 00096 } 00097 00098 return Status; 00099 00100 }


Generated on Sat May 15 19:43:20 2004 for test by doxygen 1.3.7