process-r0drv-nt.cpp revision dba6b8a60465a62d3e1ee74942535288802e2b79
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync/* $Id$ */
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync/** @file
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * InnoTek Portable Runtime - Process, Ring-0 Driver, NT.
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync */
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync/*
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * Copyright (C) 2006 InnoTek Systemberatung GmbH
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync *
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * available from http://www.virtualbox.org. This file is free software;
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * you can redistribute it and/or modify it under the terms of the GNU
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * General Public License as published by the Free Software Foundation,
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync *
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * If you received this file as part of a commercial VirtualBox
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * distribution, then only the terms of your commercial VirtualBox
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync * license agreement apply instead of the previous paragraph.
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync */
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync/*******************************************************************************
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync* Header Files *
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync*******************************************************************************/
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync#include "the-nt-kernel.h"
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync#include <iprt/process.h>
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsyncRTDECL(RTPROCESS) RTProcSelf(void)
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync{
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync return (RTPROCESS)PsGetCurrentProcessId();
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync}
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsyncRTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync{
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync return (RTR0PROCESS)PsGetCurrentProcess();
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync}
dba6b8a60465a62d3e1ee74942535288802e2b79vboxsync