![]() |
Direct port I/O under NT without a driver
I've played today with ZwSetInformationProcess and found Process UserModeIOPL information class that can be used to grant direct IO permission to a process. However, it needs that the current account has SeTcbPrivilege granted - "Work as a part of operating system". Code enables this privilege for current account, but changes are visible after next logon. One question follows - if there are no changes till relogin, why GetTokenInformation returs that this privilege is enabled? But call to ZwSetInformationProcess returns STATUS_PRIVILEGE_NOT_HELD.
ry.pl/~omega/progs/DirectIO.rar |
I granted SeTcbPrivilege and set it but not work for my winxp+sp1
Are there some thing I missed? |
Don't work in my XP SP1
Exception information Code: 0xc0000096 Address: 0x040140e |
Add your user to "As a part of OS" programmly or handly in "local policy". Than set SE_TCB_PRIVILEDGE in your programm, that's all. Work in XP.
|
Quote:
EFlags : 00010246 ExceptionCode:C0000096 if dbg attach it eflags will be xxxx3xxx If I run it with dbg, 0xC0000096 exception occured with eflags xxxx0xxx, press f9 key then become xxxx3xxx |
Exception is generated when first running this, without relogging, as explained above (not sure why though). After logout/login all is OK here (xp sp2).
|
Quote:
any idea to help ? thanks for advance the port i tried : 295h 296h with Token privileges: 20 SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeChangeNotifyPrivilege SeSecurityPrivilege SeBackupPrivilege SeRestorePrivilege SeSystemtimePrivilege SeShutdownPrivilege SeRemoteShutdownPrivilege SeTakeOwnershipPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeSystemProfilePrivilege SeProfileSingleProcessPrivilege SeIncreaseBasePriorityPrivilege SeLoadDriverPrivilege SeCreatePagefilePrivilege SeIncreaseQuotaPrivilege SeUndockPrivilege SeManageVolumePrivilege ZwSetInformationProcess result: 0h (seem ok) Trying direct IO...EFlags : 00010246 ExceptionCode:C0000096 (context iopl == 0 ?) |
This exception is really weird.
I'm trying to figure out what is happening... |
| All times are GMT +8. The time now is 09:38. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX