Stub implementation for NtSetInformationToken.

This commit is contained in:
Mike McCormack 2004-08-17 22:09:55 +00:00 committed by Alexandre Julliard
parent 8570328dc0
commit b255c11787
3 changed files with 34 additions and 4 deletions

View File

@ -277,13 +277,28 @@ NTSTATUS WINAPI NtQueryInformationToken(
break;
default:
{
ERR("Unhandled Token Information class!\n");
ERR("Unhandled Token Information class %ld!\n", tokeninfoclass);
return STATUS_NOT_IMPLEMENTED;
}
}
return 0;
}
/******************************************************************************
* NtSetInformationToken [NTDLL.@]
* ZwSetInformationToken [NTDLL.@]
*/
NTSTATUS WINAPI NtSetInformationToken(
HANDLE TokenHandle,
TOKEN_INFORMATION_CLASS TokenInformationClass,
PVOID TokenInformation,
ULONG TokenInformationLength)
{
FIXME("%p %d %p %lu\n", TokenHandle, TokenInformationClass,
TokenInformation, TokenInformationLength);
return STATUS_NOT_IMPLEMENTED;
}
/*
* Section
*/
@ -672,7 +687,21 @@ NTSTATUS WINAPI NtQuerySystemInformation(
srqi->RegistryQuotaAllowed = 0x2000000;
srqi->RegistryQuotaUsed = 0x200000;
srqi->Reserved1 = (void*)0x200000;
if (ResultLength) *ResultLength = sizeof(*srqi);
len = sizeof(*srqi);
}
else ret = STATUS_INFO_LENGTH_MISMATCH;
}
break;
case SystemKernelDebuggerInformation:
{
PSYSTEM_KERNEL_DEBUGGER_INFORMATION pkdi;
if( Length >= sizeof(*pkdi))
{
pkdi = SystemInformation;
pkdi->DebuggerEnabled = FALSE;
pkdi->DebuggerNotPresent = TRUE;
len = sizeof(*pkdi);
}
else ret = STATUS_INFO_LENGTH_MISMATCH;
}

View File

@ -230,7 +230,7 @@
@ stdcall NtSetInformationObject(long long ptr long)
@ stdcall NtSetInformationProcess(long long long long)
@ stdcall NtSetInformationThread(long long ptr long)
@ stub NtSetInformationToken
@ stdcall NtSetInformationToken(long long ptr long)
@ stdcall NtSetIntervalProfile(long long)
@ stub NtSetIoCompletion
@ stub NtSetLdtEntries
@ -808,7 +808,7 @@
@ stdcall ZwSetInformationObject(long long ptr long) NtSetInformationObject
@ stdcall ZwSetInformationProcess(long long long long) NtSetInformationProcess
@ stdcall ZwSetInformationThread(long long ptr long) NtSetInformationThread
@ stub ZwSetInformationToken
@ stdcall ZwSetInformationToken(long long ptr long) NtSetInformationToken
@ stdcall ZwSetIntervalProfile(long long) NtSetIntervalProfile
@ stub ZwSetIoCompletion
@ stub ZwSetLdtEntries

View File

@ -1303,6 +1303,7 @@ NTSTATUS WINAPI NtSetInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_I
NTSTATUS WINAPI NtSetInformationKey(HKEY,const int,PVOID,ULONG);
NTSTATUS WINAPI NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG);
NTSTATUS WINAPI NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,ULONG);
NTSTATUS WINAPI NtSetInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG);
NTSTATUS WINAPI NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*);
NTSTATUS WINAPI NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMERAPCROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*);