1998-11-01 15:00:21 +01:00
|
|
|
/*
|
|
|
|
* NT basis DLL
|
|
|
|
*
|
|
|
|
* This file contains the Nt* API functions of NTDLL.DLL.
|
1999-02-13 08:35:31 +01:00
|
|
|
* In the original ntdll.dll they all seem to just call int 0x2e (down to the HAL)
|
1998-11-01 15:00:21 +01:00
|
|
|
*
|
|
|
|
* Copyright 1996-1998 Marcus Meissner
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "wintypes.h"
|
1999-02-13 08:35:31 +01:00
|
|
|
#include "windef.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "ntdll.h"
|
1999-02-13 08:35:31 +01:00
|
|
|
#include "ntdef.h"
|
|
|
|
#include "ntddk.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "debugstr.h"
|
|
|
|
#include "debug.h"
|
1999-02-13 08:35:31 +01:00
|
|
|
|
|
|
|
/* move to winbase.h */
|
|
|
|
typedef VOID (CALLBACK *PTIMERAPCROUTINE)(LPVOID lpArgToCompletionRoutine,DWORD dwTimerLowValue,DWORD dwTimerHighValue);
|
|
|
|
|
|
|
|
/* move to somewhere */
|
|
|
|
typedef void * POBJDIR_INFORMATION;
|
1998-11-01 15:00:21 +01:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* NtOpenFile [NTDLL.127]
|
1999-02-13 08:35:31 +01:00
|
|
|
* FUNCTION: Opens a file
|
|
|
|
* ARGUMENTS:
|
|
|
|
* FileHandle Variable that receives the file handle on return
|
|
|
|
* DesiredAccess Access desired by the caller to the file
|
|
|
|
* ObjectAttributes Structue describing the file to be opened
|
|
|
|
* IoStatusBlock Receives details about the result of the operation
|
|
|
|
* ShareAccess Type of shared access the caller requires
|
|
|
|
* OpenOptions Options for the file open
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenFile(
|
1999-02-13 08:35:31 +01:00
|
|
|
OUT PHANDLE FileHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
ULONG ShareAccess,
|
|
|
|
ULONG OpenOptions)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),%p,0x%08lx,0x%08lx) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
FileHandle, DesiredAccess, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
IoStatusBlock, ShareAccess, OpenOptions);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
* NtCreateFile [NTDLL.73]
|
1999-02-13 08:35:31 +01:00
|
|
|
* FUNCTION: Either causes a new file or directory to be created, or it opens
|
|
|
|
* an existing file, device, directory or volume, giving the caller a handle
|
|
|
|
* for the file object. This handle can be used by subsequent calls to
|
|
|
|
* manipulate data within the file or the file object's state of attributes.
|
|
|
|
* ARGUMENTS:
|
|
|
|
* FileHandle Points to a variable which receives the file handle on return
|
|
|
|
* DesiredAccess Desired access to the file
|
|
|
|
* ObjectAttributes Structure describing the file
|
|
|
|
* IoStatusBlock Receives information about the operation on return
|
|
|
|
* AllocationSize Initial size of the file in bytes
|
|
|
|
* FileAttributes Attributes to create the file with
|
|
|
|
* ShareAccess Type of shared access the caller would like to the file
|
|
|
|
* CreateDisposition Specifies what to do, depending on whether the file already exists
|
|
|
|
* CreateOptions Options for creating a new file
|
|
|
|
* EaBuffer Undocumented
|
|
|
|
* EaLength Undocumented
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCreateFile(
|
1999-02-13 08:35:31 +01:00
|
|
|
OUT PHANDLE FileHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
PLARGE_INTEGER AllocateSize,
|
|
|
|
ULONG FileAttributes,
|
|
|
|
ULONG ShareAccess,
|
|
|
|
ULONG CreateDisposition,
|
|
|
|
ULONG CreateOptions,
|
|
|
|
PVOID EaBuffer,
|
|
|
|
ULONG EaLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),%p,%p,0x%08lx,0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
FileHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
IoStatusBlock,AllocateSize,FileAttributes,
|
|
|
|
ShareAccess,CreateDisposition,CreateOptions,EaBuffer,EaLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
* NtCreateTimer [NTDLL.87]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreateTimer(
|
|
|
|
OUT PHANDLE TimerHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
|
|
|
IN TIMER_TYPE TimerType)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),0x%08x) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
TimerHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
TimerType);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
* NtSetTimer [NTDLL.221]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetTimer(
|
|
|
|
IN HANDLE32 TimerHandle,
|
|
|
|
IN PLARGE_INTEGER DueTime,
|
|
|
|
IN PTIMERAPCROUTINE TimerApcRoutine,
|
|
|
|
IN PVOID TimerContext,
|
1999-02-19 17:29:05 +01:00
|
|
|
IN BOOLEAN WakeTimer,
|
1999-02-13 08:35:31 +01:00
|
|
|
IN ULONG Period OPTIONAL,
|
|
|
|
OUT PBOOLEAN PreviousState OPTIONAL)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-19 17:29:05 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,%p,%08x,0x%08lx,%p) stub\n",
|
1999-02-13 08:35:31 +01:00
|
|
|
TimerHandle,DueTime,TimerApcRoutine,TimerContext,WakeTimer,Period,PreviousState);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* NtCreateEvent [NTDLL.71]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreateEvent(
|
|
|
|
OUT PHANDLE EventHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN BOOLEAN ManualReset,
|
|
|
|
IN BOOLEAN InitialState)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),%08x,%08x): empty stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
EventHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
ManualReset,InitialState);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
* NtDeviceIoControlFile [NTDLL.94]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtDeviceIoControlFile(
|
|
|
|
IN HANDLE32 DeviceHandle,
|
|
|
|
IN HANDLE32 Event OPTIONAL,
|
|
|
|
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
|
|
|
|
IN PVOID UserApcContext OPTIONAL,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
IN ULONG IoControlCode,
|
|
|
|
IN PVOID InputBuffer,
|
|
|
|
IN ULONG InputBufferSize,
|
|
|
|
OUT PVOID OutputBuffer,
|
|
|
|
IN ULONG OutputBufferSize)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): empty stub\n",
|
|
|
|
DeviceHandle, Event, UserApcRoutine, UserApcContext,
|
|
|
|
IoStatusBlock, IoControlCode, InputBuffer, InputBufferSize, OutputBuffer, OutputBufferSize);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* NtOpenDirectoryObject [NTDLL.124]
|
1999-02-13 08:35:31 +01:00
|
|
|
* FUNCTION: Opens a namespace directory object
|
|
|
|
* ARGUMENTS:
|
|
|
|
* DirectoryHandle Variable which receives the directory handle
|
|
|
|
* DesiredAccess Desired access to the directory
|
|
|
|
* ObjectAttributes Structure describing the directory
|
|
|
|
* RETURNS: Status
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenDirectoryObject(
|
|
|
|
PHANDLE DirectoryHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s)): stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
DirectoryHandle, DesiredAccess, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-02-13 08:35:31 +01:00
|
|
|
* NtQueryDirectoryObject [NTDLL.149]
|
|
|
|
* FUNCTION: Reads information from a namespace directory
|
|
|
|
* ARGUMENTS:
|
|
|
|
* DirObjInformation Buffer to hold the data read
|
|
|
|
* BufferLength Size of the buffer in bytes
|
|
|
|
* GetNextIndex If TRUE then set ObjectIndex to the index of the next object
|
|
|
|
* If FALSE then set ObjectIndex to the number of objects in the directory
|
|
|
|
* IgnoreInputIndex If TRUE start reading at index 0
|
|
|
|
* If FALSE start reading at the index specified by object index
|
|
|
|
* ObjectIndex Zero based index into the directory, interpretation depends on IgnoreInputIndex and GetNextIndex
|
|
|
|
* DataWritten Caller supplied storage for the number of bytes written (or NULL)
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtQueryDirectoryObject(
|
|
|
|
IN HANDLE32 DirObjHandle,
|
|
|
|
OUT POBJDIR_INFORMATION DirObjInformation,
|
|
|
|
IN ULONG BufferLength,
|
|
|
|
IN BOOLEAN GetNextIndex,
|
|
|
|
IN BOOLEAN IgnoreInputIndex,
|
|
|
|
IN OUT PULONG ObjectIndex,
|
|
|
|
OUT PULONG DataWritten OPTIONAL)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,%p,0x%08lx,0x%08x,0x%08x,%p,%p) stub\n",
|
|
|
|
DirObjHandle, DirObjInformation, BufferLength, GetNextIndex,
|
|
|
|
IgnoreInputIndex, ObjectIndex, DataWritten);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0xc0000000; /* We don't have any. Whatever. (Yet.) */
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySystemInformation [NTDLL.168]
|
1999-02-13 08:35:31 +01:00
|
|
|
*
|
|
|
|
* ARGUMENTS:
|
|
|
|
* SystemInformationClass Index to a certain information structure
|
|
|
|
* SystemTimeAdjustmentInformation SYSTEM_TIME_ADJUSTMENT
|
|
|
|
* SystemCacheInformation SYSTEM_CACHE_INFORMATION
|
|
|
|
* SystemConfigurationInformation CONFIGURATION_INFORMATION
|
|
|
|
* observed (class/len):
|
|
|
|
* 0x0/0x2c
|
|
|
|
* 0x12/0x18
|
|
|
|
* 0x2/0x138
|
|
|
|
* 0x8/0x600
|
|
|
|
* SystemInformation caller supplies storage for the information structure
|
|
|
|
* Length size of the structure
|
|
|
|
* ResultLength Data written
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtQuerySystemInformation(
|
|
|
|
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
|
|
|
OUT PVOID SystemInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,%p,0x%08lx,%p) stub\n",
|
|
|
|
SystemInformationClass,SystemInformation,Length,ResultLength);
|
|
|
|
ZeroMemory (SystemInformation, Length);
|
|
|
|
return 0;
|
1998-11-01 15:00:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryObject [NTDLL.161]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryObject(
|
|
|
|
IN HANDLE32 ObjectHandle,
|
|
|
|
IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
|
|
|
|
OUT PVOID ObjectInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx,%p): stub\n",
|
|
|
|
ObjectHandle, ObjectInformationClass, ObjectInformation, Length, ResultLength);
|
|
|
|
return 0;
|
1998-11-01 15:00:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetInformationProcess [NTDLL.207]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetInformationProcess(
|
|
|
|
IN HANDLE32 ProcessHandle,
|
|
|
|
IN PROCESSINFOCLASS ProcessInformationClass,
|
|
|
|
IN PVOID ProcessInformation,
|
|
|
|
IN ULONG ProcessInformationLength)
|
1998-11-01 15:00:21 +01:00
|
|
|
{
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx) stub\n",
|
|
|
|
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtFsControlFile [NTDLL.108]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtFsControlFile(
|
1999-02-13 08:35:31 +01:00
|
|
|
IN HANDLE32 DeviceHandle,
|
|
|
|
IN HANDLE32 Event OPTIONAL,
|
|
|
|
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
|
|
|
|
IN PVOID ApcContext OPTIONAL,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
IN ULONG IoControlCode,
|
|
|
|
IN PVOID InputBuffer,
|
|
|
|
IN ULONG InputBufferSize,
|
|
|
|
OUT PVOID OutputBuffer,
|
|
|
|
IN ULONG OutputBufferSize)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): stub\n",
|
|
|
|
DeviceHandle,Event,ApcRoutine,ApcContext,IoStatusBlock,IoControlCode,
|
|
|
|
InputBuffer,InputBufferSize,OutputBuffer,OutputBufferSize);
|
|
|
|
return 0;
|
1998-11-01 15:00:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-02-13 08:35:31 +01:00
|
|
|
* NtQueryTimerResolution [NTDLL.129]
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryTimerResolution(DWORD x1,DWORD x2,DWORD x3)
|
|
|
|
{
|
1998-11-01 15:00:21 +01:00
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx), stub!\n",x1,x2,x3);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
* NtClose [NTDLL.65]
|
1999-02-13 08:35:31 +01:00
|
|
|
* FUNCTION: Closes a handle reference to an object
|
|
|
|
* ARGUMENTS:
|
|
|
|
* Handle handle to close
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtClose(
|
|
|
|
HANDLE32 Handle)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x),stub!\n",Handle);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryInformationProcess [NTDLL.]
|
|
|
|
*
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryInformationProcess(
|
|
|
|
IN HANDLE32 ProcessHandle,
|
|
|
|
IN PROCESSINFOCLASS ProcessInformationClass,
|
|
|
|
OUT PVOID ProcessInformation,
|
|
|
|
IN ULONG ProcessInformationLength,
|
|
|
|
OUT PULONG ReturnLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx,%p),stub!\n",
|
|
|
|
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength,ReturnLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryInformationThread [NTDLL.]
|
|
|
|
*
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryInformationThread(
|
|
|
|
IN HANDLE32 ThreadHandle,
|
|
|
|
IN THREADINFOCLASS ThreadInformationClass,
|
|
|
|
OUT PVOID ThreadInformation,
|
|
|
|
IN ULONG ThreadInformationLength,
|
|
|
|
OUT PULONG ReturnLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx,%p),stub!\n",
|
|
|
|
ThreadHandle, ThreadInformationClass, ThreadInformation,
|
|
|
|
ThreadInformationLength, ReturnLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryInformationToken [NTDLL.156]
|
|
|
|
*
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryInformationToken(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5)
|
|
|
|
{
|
1998-11-01 15:00:21 +01:00
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",
|
1999-02-13 08:35:31 +01:00
|
|
|
x1,x2,x3,x4,x5);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCreatePagingFile [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreatePagingFile(
|
|
|
|
IN PUNICODE_STRING PageFileName,
|
|
|
|
IN ULONG MiniumSize,
|
|
|
|
IN ULONG MaxiumSize,
|
|
|
|
OUT PULONG ActualSize)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,0x%08lx,%p),stub!\n",
|
|
|
|
PageFileName,MiniumSize,MaxiumSize,ActualSize);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtDuplicateObject [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtDuplicateObject(
|
|
|
|
IN HANDLE32 SourceProcessHandle,
|
|
|
|
IN PHANDLE SourceHandle,
|
|
|
|
IN HANDLE32 TargetProcessHandle,
|
|
|
|
OUT PHANDLE TargetHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN BOOLEAN InheritHandle,
|
|
|
|
ULONG Options)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,0x%08x,%p,0x%08lx,0x%08x,0x%08lx) stub!\n",
|
|
|
|
SourceProcessHandle,SourceHandle,TargetProcessHandle,TargetHandle,
|
|
|
|
DesiredAccess,InheritHandle,Options);
|
|
|
|
*TargetHandle = 0;
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtDuplicateToken [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtDuplicateToken(
|
|
|
|
DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6
|
|
|
|
) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3,x4,x5,x6);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtAdjustPrivilegesToken [NTDLL]
|
1999-02-13 08:35:31 +01:00
|
|
|
*
|
|
|
|
* FIXME: parameters unsafe
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtAdjustPrivilegesToken(
|
1999-02-13 08:35:31 +01:00
|
|
|
IN HANDLE32 TokenHandle,
|
1999-02-19 17:29:05 +01:00
|
|
|
IN BOOLEAN DisableAllPrivileges,
|
1999-02-13 08:35:31 +01:00
|
|
|
IN PTOKEN_PRIVILEGES NewState,
|
|
|
|
IN DWORD BufferLength,
|
|
|
|
OUT PTOKEN_PRIVILEGES PreviousState,
|
|
|
|
OUT PDWORD ReturnLength)
|
|
|
|
{
|
1999-02-17 17:15:11 +01:00
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx,%p,%p),stub!\n",
|
1999-02-13 08:35:31 +01:00
|
|
|
TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenProcessToken [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenProcessToken(DWORD x1,DWORD x2,DWORD x3) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetInformationThread [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetInformationThread(
|
|
|
|
HANDLE32 ThreadHandle,
|
|
|
|
THREADINFOCLASS ThreadInformationClass,
|
|
|
|
PVOID ThreadInformation,
|
|
|
|
ULONG ThreadInformationLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx),stub!\n",
|
|
|
|
ThreadHandle, ThreadInformationClass, ThreadInformation, ThreadInformationLength);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenThreadToken [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenThreadToken(DWORD x1,DWORD x2,DWORD x3,DWORD x4) {
|
1999-02-13 08:35:31 +01:00
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx) stub\n",x1,x2,x3,x4);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetVolumeInformationFile [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetVolumeInformationFile(
|
|
|
|
IN HANDLE32 FileHandle,
|
|
|
|
IN PVOID VolumeInformationClass,
|
|
|
|
PVOID VolumeInformation,
|
|
|
|
ULONG Length)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx) stub\n",
|
|
|
|
FileHandle,VolumeInformationClass,VolumeInformation,Length);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCreatePort [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreatePort(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5)
|
|
|
|
{
|
1998-11-01 15:00:21 +01:00
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3,x4,x5);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetInformationFile [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetInformationFile(
|
|
|
|
HANDLE32 FileHandle,
|
|
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
PVOID FileInformation,
|
|
|
|
ULONG Length,
|
|
|
|
FILE_INFORMATION_CLASS FileInformationClass)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,0x%08x)\n",
|
|
|
|
FileHandle,IoStatusBlock,FileInformation,Length,FileInformationClass);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetEvent [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtSetEvent(
|
|
|
|
IN HANDLE32 EventHandle,
|
|
|
|
PULONG NumberOfThreadsReleased)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p)\n",
|
|
|
|
EventHandle, NumberOfThreadsReleased);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryInformationFile [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQueryInformationFile(
|
|
|
|
HANDLE32 FileHandle,
|
|
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
PVOID FileInformation,
|
|
|
|
ULONG Length,
|
|
|
|
FILE_INFORMATION_CLASS FileInformationClass)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,0x%08x),stub!\n",
|
|
|
|
FileHandle,IoStatusBlock,FileInformation,Length,FileInformationClass);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenEvent [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtOpenEvent(
|
|
|
|
OUT PHANDLE EventHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s)),stub!\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
EventHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtWaitForSingleObject [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtWaitForSingleObject(
|
|
|
|
IN PHANDLE Object,
|
|
|
|
IN BOOLEAN Alertable,
|
|
|
|
IN PLARGE_INTEGER Time)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08x,%p),stub!\n",Object,Alertable,Time);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtConnectPort [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtConnectPort(DWORD x1,PUNICODE_STRING uni,DWORD x3,DWORD x4,DWORD x5,DWORD x6,DWORD x7,DWORD x8) {
|
1999-02-19 17:29:05 +01:00
|
|
|
FIXME(ntdll,"(0x%08lx,%s,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",
|
|
|
|
x1,debugstr_w(uni->Buffer),x3,x4,x5,x6,x7,x8);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtListenPort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtListenPort(DWORD x1,DWORD x2) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx),stub!\n",x1,x2);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtRequestWaitReplyPort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtRequestWaitReplyPort(DWORD x1,DWORD x2,DWORD x3) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCreateDirectoryObject [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreateDirectoryObject(
|
|
|
|
PHANDLE DirectoryHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s)),stub!\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
DirectoryHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-02-13 08:35:31 +01:00
|
|
|
* NtMapViewOfSection [NTDLL]
|
|
|
|
* FUNCTION: Maps a view of a section into the virtual address space of a process
|
|
|
|
*
|
|
|
|
* ARGUMENTS:
|
|
|
|
* SectionHandle Handle of the section
|
|
|
|
* ProcessHandle Handle of the process
|
|
|
|
* BaseAddress Desired base address (or NULL) on entry
|
|
|
|
* Actual base address of the view on exit
|
|
|
|
* ZeroBits Number of high order address bits that must be zero
|
|
|
|
* CommitSize Size in bytes of the initially committed section of the view
|
|
|
|
* SectionOffset Offset in bytes from the beginning of the section to the beginning of the view
|
|
|
|
* ViewSize Desired length of map (or zero to map all) on entry
|
|
|
|
Actual length mapped on exit
|
|
|
|
* InheritDisposition Specified how the view is to be shared with
|
|
|
|
* child processes
|
|
|
|
* AllocateType Type of allocation for the pages
|
|
|
|
* Protect Protection for the committed region of the view
|
1998-11-01 15:00:21 +01:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtMapViewOfSection(
|
1999-02-13 08:35:31 +01:00
|
|
|
HANDLE32 SectionHandle,
|
|
|
|
HANDLE32 ProcessHandle,
|
|
|
|
PVOID* BaseAddress,
|
|
|
|
ULONG ZeroBits,
|
|
|
|
ULONG CommitSize,
|
|
|
|
PLARGE_INTEGER SectionOffset,
|
|
|
|
PULONG ViewSize,
|
|
|
|
SECTION_INHERIT InheritDisposition,
|
|
|
|
ULONG AllocationType,
|
|
|
|
ULONG Protect)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,0x%08lx,0x%08lx,%p,%p,0x%08x,0x%08lx,0x%08lx) stub\n",
|
|
|
|
SectionHandle,ProcessHandle,BaseAddress,ZeroBits,CommitSize,SectionOffset,
|
|
|
|
ViewSize,InheritDisposition,AllocationType,Protect);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCreateMailSlotFile [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCreateMailslotFile(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6,DWORD x7,DWORD x8) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3,x4,x5,x6,x7,x8);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-02-13 08:35:31 +01:00
|
|
|
* NtReadFile/ZwReadFile [NTDLL]
|
|
|
|
*
|
|
|
|
* Parameters
|
|
|
|
* HANDLE32 FileHandle
|
|
|
|
* HANDLE32 Event OPTIONAL
|
|
|
|
* PIO_APC_ROUTINE ApcRoutine OPTIONAL
|
|
|
|
* PVOID ApcContext OPTIONAL
|
|
|
|
* PIO_STATUS_BLOCK IoStatusBlock
|
|
|
|
* PVOID Buffer
|
|
|
|
* ULONG Length
|
|
|
|
* PLARGE_INTEGER ByteOffset OPTIONAL
|
|
|
|
* PULONG Key OPTIONAL
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtReadFile (
|
|
|
|
HANDLE32 FileHandle,
|
|
|
|
HANDLE32 EventHandle,
|
|
|
|
PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
PVOID ApcContext,
|
|
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
PVOID Buffer,
|
|
|
|
ULONG Length,
|
|
|
|
PLARGE_INTEGER ByteOffset,
|
|
|
|
PULONG Key)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08x,%p,%p,%p,%p,0x%08lx,%p,%p),stub!\n",
|
|
|
|
FileHandle,EventHandle,ApcRoutine,ApcContext,IoStatusBlock,Buffer,Length,ByteOffset,Key);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCreateSection [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCreateSection(
|
1999-02-13 08:35:31 +01:00
|
|
|
OUT PHANDLE SectionHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
|
|
|
IN PLARGE_INTEGER MaximumSize OPTIONAL,
|
|
|
|
IN ULONG SectionPageProtection OPTIONAL,
|
|
|
|
IN ULONG AllocationAttributes,
|
|
|
|
IN HANDLE32 FileHandle OPTIONAL)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),%p,0x%08lx,0x%08lx,0x%08x) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
SectionHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
MaximumSize,SectionPageProtection,AllocationAttributes,FileHandle);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtResumeThread [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtResumeThread(
|
|
|
|
IN HANDLE32 ThreadHandle,
|
|
|
|
IN PULONG SuspendCount)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p),stub!\n",
|
|
|
|
ThreadHandle,SuspendCount);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtReplyWaitReceivePort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtReplyWaitReceivePort(DWORD x1,DWORD x2,DWORD x3,DWORD x4) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3,x4);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtAcceptConnectPort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtAcceptConnectPort(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5,DWORD x6) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx),stub!\n",x1,x2,x3,x4,x5,x6);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtCompleteConnectPort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCompleteConnectPort(DWORD x1) {
|
|
|
|
FIXME(ntdll,"(0x%08lx),stub!\n",x1);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtRegisterThreadTerminatePort [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtRegisterThreadTerminatePort(DWORD x1) {
|
|
|
|
FIXME(ntdll,"(0x%08lx),stub!\n",x1);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtTerminateThread [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtTerminateThread(
|
|
|
|
IN HANDLE32 ThreadHandle,
|
|
|
|
IN NTSTATUS ExitStatus)
|
|
|
|
{
|
1999-02-19 17:29:05 +01:00
|
|
|
if ( TerminateThread(ThreadHandle,ExitStatus) )
|
|
|
|
return 0;
|
1998-11-01 15:00:21 +01:00
|
|
|
|
|
|
|
return 0xc0000000; /* FIXME: lasterror->ntstatus */
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtSetIntervalProfile [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtSetIntervalProfile(DWORD x1,DWORD x2) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx),stub!\n",x1,x2);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenSection [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtOpenSection(
|
|
|
|
PHANDLE SectionHandle,
|
|
|
|
ACCESS_MASK DesiredAccess,
|
|
|
|
POBJECT_ATTRIBUTES ObjectAttributes)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s)),stub!\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
SectionHandle,DesiredAccess,ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1998-11-01 15:00:21 +01:00
|
|
|
return 0;
|
|
|
|
}
|
1998-12-24 15:34:55 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* NtQueryPerformanceCounter [NTDLL]
|
|
|
|
*/
|
1999-02-19 17:29:05 +01:00
|
|
|
NTSTATUS WINAPI NtQueryPerformanceCounter(
|
1999-02-13 08:35:31 +01:00
|
|
|
IN PLARGE_INTEGER Counter,
|
|
|
|
IN PLARGE_INTEGER Frequency)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p, 0%p) stub\n",
|
|
|
|
Counter, Frequency);
|
1998-12-24 15:34:55 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySection [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQuerySection(
|
|
|
|
IN HANDLE32 SectionHandle,
|
|
|
|
IN PVOID SectionInformationClass,
|
|
|
|
OUT PVOID SectionInformation,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ResultLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
|
|
|
|
SectionHandle,SectionInformationClass,SectionInformation,Length,ResultLength);
|
1998-12-24 15:34:55 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySecurityObject [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtQuerySecurityObject(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x5) {
|
|
|
|
FIXME(ntdll,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx) stub!\n",x1,x2,x3,x4,x5);
|
|
|
|
return 0;
|
|
|
|
}
|
1999-02-13 08:35:31 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* NtCreateSemaphore [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtCreateSemaphore(
|
|
|
|
OUT PHANDLE SemaphoreHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
|
|
|
IN ULONG InitialCount,
|
|
|
|
IN ULONG MaximumCount)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s),0x%08lx,0x%08lx) stub!\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
SemaphoreHandle, DesiredAccess, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
|
1999-02-13 08:35:31 +01:00
|
|
|
InitialCount, MaximumCount);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenSemaphore [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenSemaphore(
|
|
|
|
IN HANDLE32 SemaphoreHandle,
|
|
|
|
IN ACCESS_MASK DesiredAcces,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08lx,%p(%s)) stub!\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
SemaphoreHandle, DesiredAcces, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1999-02-13 08:35:31 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1998-12-24 15:34:55 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySemaphore [NTDLL]
|
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtQuerySemaphore(
|
|
|
|
HANDLE32 SemaphoreHandle,
|
|
|
|
PVOID SemaphoreInformationClass,
|
|
|
|
OUT PVOID SemaphoreInformation,
|
|
|
|
ULONG Length,
|
|
|
|
PULONG ReturnLength)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
|
|
|
|
SemaphoreHandle, SemaphoreInformationClass, SemaphoreInformation, Length, ReturnLength);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySemaphore [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtReleaseSemaphore(
|
|
|
|
IN HANDLE32 SemaphoreHandle,
|
|
|
|
IN ULONG ReleaseCount,
|
|
|
|
IN PULONG PreviousCount)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,0x%08lx,%p,) stub!\n",
|
|
|
|
SemaphoreHandle, ReleaseCount, PreviousCount);
|
1998-12-24 15:34:55 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-02-13 08:35:31 +01:00
|
|
|
* NtCreateSymbolicLinkObject [NTDLL]
|
1998-12-24 15:34:55 +01:00
|
|
|
*/
|
1999-02-13 08:35:31 +01:00
|
|
|
NTSTATUS WINAPI NtCreateSymbolicLinkObject(
|
|
|
|
OUT PHANDLE SymbolicLinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN PUNICODE_STRING Name)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s), %p) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
SymbolicLinkHandle, DesiredAccess, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL, Name);
|
1999-02-13 08:35:31 +01:00
|
|
|
return 0;
|
1998-12-24 15:34:55 +01:00
|
|
|
}
|
1998-11-01 15:00:21 +01:00
|
|
|
|
1999-02-13 08:35:31 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* NtOpenSymbolicLinkObject [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI NtOpenSymbolicLinkObject(
|
|
|
|
OUT PHANDLE LinkHandle,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(%p,0x%08lx,%p(%s)) stub\n",
|
1999-02-19 17:29:05 +01:00
|
|
|
LinkHandle, DesiredAccess, ObjectAttributes,
|
|
|
|
ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
|
1999-02-13 08:35:31 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
|
|
|
* NtQuerySymbolicLinkObject [NTDLL]
|
|
|
|
*/
|
|
|
|
NTSTATUS NtQuerySymbolicLinkObject(
|
|
|
|
IN HANDLE32 LinkHandle,
|
|
|
|
IN OUT PUNICODE_STRING LinkTarget,
|
|
|
|
OUT PULONG ReturnedLength OPTIONAL)
|
|
|
|
{
|
|
|
|
FIXME(ntdll,"(0x%08x,%p,%p) stub\n",
|
|
|
|
LinkHandle, LinkTarget, ReturnedLength);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|