I did find that but I don't know how to define the function to use it.
Would it be something like this?

procedure NtSetInformationProcess; external 'ntdll.dll' name '
NtSetInformationProcess';

or something like this ...

procedure NtSetInformationProcess(Handle: TProcessHandle; InfoClass:
ProcessInformationClass; ProcessInfo: PVoid; Length: DWord; stdcall;
external 'NtDll.dll';

Or do I need to use LoadLibary?


-----Original Message-----
From: Delphi [mailto:delphi-boun...@lists.elists.org] On Behalf Of Brendan
Blake
Sent: Wednesday, 12 October 2016 9:24 p.m.
To: 'Moderated List for the Discussion of Delphi Programming excluding
Database-related topics'
Subject: RE: NtSetInformationProcess

Likewise, I've not used this undocumented feature, but I assume you found
this reference?

http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%
20Functions%2FNT%20Objects%2FProcess%2FNtSetInformationProcess.html  

It appears to require ntdll.lib.   

        Brendan Blake

-----Original Message-----
From: Delphi [mailto:delphi-boun...@lists.elists.org] On Behalf Of
chris.mo...@biuk.co.uk
Sent: 11 October 2016 08:59
To: delphi@lists.elists.org
Subject: RE: NtSetInformationProcess

No idea, does this help?
https://msdn.microsoft.com/en-us/library/ff549710.aspx

-----Original Message-----
From: Delphi [mailto:delphi-boun...@lists.elists.org] On Behalf Of Ross
Levis
Sent: 06 October 2016 10:17
To: 'Moderated List for the Discussion of Delphi Programming excluding
Database-related topics'
Subject: NtSetInformationProcess

Can anyone provide the definition for defining and accessing this Windows
function.  It doesn't exist in Windows.pas in Delphi 7.  I guess it's in
kernel32.dll.

 

There seems to be some issue with my app inheriting a "Low" I/O priority
after a recent Windows 10 update and causing lots of issues with my
customers.  I want to try to set it to Normal.

 

Note this is not a Process or Thread Priority, but IO Priority.

 

Cheers,

Ross.

 

_______________________________________________
Delphi mailing list
Delphi@lists.elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

--
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


_______________________________________________
Delphi mailing list
Delphi@lists.elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
Delphi@lists.elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
Delphi@lists.elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to