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; break;
default: default:
{ {
ERR("Unhandled Token Information class!\n"); ERR("Unhandled Token Information class %ld!\n", tokeninfoclass);
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
} }
return 0; 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 * Section
*/ */
@ -672,12 +687,26 @@ NTSTATUS WINAPI NtQuerySystemInformation(
srqi->RegistryQuotaAllowed = 0x2000000; srqi->RegistryQuotaAllowed = 0x2000000;
srqi->RegistryQuotaUsed = 0x200000; srqi->RegistryQuotaUsed = 0x200000;
srqi->Reserved1 = (void*)0x200000; srqi->Reserved1 = (void*)0x200000;
if (ResultLength) *ResultLength = sizeof(*srqi); len = sizeof(*srqi);
} }
else ret = STATUS_INFO_LENGTH_MISMATCH; else ret = STATUS_INFO_LENGTH_MISMATCH;
} }
break; 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;
}
break;
default: default:
FIXME("(0x%08x,%p,0x%08lx,%p) stub\n", FIXME("(0x%08x,%p,0x%08lx,%p) stub\n",
SystemInformationClass,SystemInformation,Length,ResultLength); SystemInformationClass,SystemInformation,Length,ResultLength);

View File

@ -230,7 +230,7 @@
@ stdcall NtSetInformationObject(long long ptr long) @ stdcall NtSetInformationObject(long long ptr long)
@ stdcall NtSetInformationProcess(long long long long) @ stdcall NtSetInformationProcess(long long long long)
@ stdcall NtSetInformationThread(long long ptr long) @ stdcall NtSetInformationThread(long long ptr long)
@ stub NtSetInformationToken @ stdcall NtSetInformationToken(long long ptr long)
@ stdcall NtSetIntervalProfile(long long) @ stdcall NtSetIntervalProfile(long long)
@ stub NtSetIoCompletion @ stub NtSetIoCompletion
@ stub NtSetLdtEntries @ stub NtSetLdtEntries
@ -808,7 +808,7 @@
@ stdcall ZwSetInformationObject(long long ptr long) NtSetInformationObject @ stdcall ZwSetInformationObject(long long ptr long) NtSetInformationObject
@ stdcall ZwSetInformationProcess(long long long long) NtSetInformationProcess @ stdcall ZwSetInformationProcess(long long long long) NtSetInformationProcess
@ stdcall ZwSetInformationThread(long long ptr long) NtSetInformationThread @ stdcall ZwSetInformationThread(long long ptr long) NtSetInformationThread
@ stub ZwSetInformationToken @ stdcall ZwSetInformationToken(long long ptr long) NtSetInformationToken
@ stdcall ZwSetIntervalProfile(long long) NtSetIntervalProfile @ stdcall ZwSetIntervalProfile(long long) NtSetIntervalProfile
@ stub ZwSetIoCompletion @ stub ZwSetIoCompletion
@ stub ZwSetLdtEntries @ 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 NtSetInformationKey(HKEY,const int,PVOID,ULONG);
NTSTATUS WINAPI NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG); NTSTATUS WINAPI NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG);
NTSTATUS WINAPI NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,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 NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*); NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*);
NTSTATUS WINAPI NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMERAPCROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*); NTSTATUS WINAPI NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMERAPCROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*);