* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: handle.c,v 1.51 2003/09/25 20:07:46 ekohl Exp $
+/* $Id: handle.c,v 1.52 2003/10/05 16:57:39 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
POBJECT_TYPE ObjectType,
KPROCESSOR_MODE AccessMode,
PVOID* Object,
- POBJECT_HANDLE_INFORMATION HandleInformationPtr)
+ POBJECT_HANDLE_INFORMATION HandleInformation)
/*
* FUNCTION: Increments the reference count for an object and returns a
* pointer to its body
"ObjectType %x, AccessMode %d, Object %x)\n",Handle,DesiredAccess,
ObjectType,AccessMode,Object);
-
/*
* Handle special handle names
*/
return Status;
}
+ if (HandleInformation != NULL)
+ {
+ HandleInformation->HandleAttributes = 0; /* FIXME? */
+ HandleInformation->GrantedAccess = PROCESS_ALL_ACCESS;
+ }
+
*Object = PsGetCurrentProcess();
DPRINT("Referencing current process %x\n", PsGetCurrentProcess());
return STATUS_SUCCESS;
return Status;
}
+ if (HandleInformation != NULL)
+ {
+ HandleInformation->HandleAttributes = 0; /* FIXME? */
+ HandleInformation->GrantedAccess = THREAD_ALL_ACCESS;
+ }
+
*Object = PsGetCurrentThread();
CHECKPOINT;
return STATUS_SUCCESS;
return(STATUS_ACCESS_DENIED);
}
}
-
+
+ if (HandleInformation != NULL)
+ {
+ HandleInformation->HandleAttributes = 0; /* FIXME */
+ HandleInformation->GrantedAccess = GrantedAccess;
+ }
+
*Object = ObjectBody;
CHECKPOINT;