flat assembler
Message board for the users of flat assembler.
Index
> Windows > Two API questions |
Author |
|
Borsuc 01 Oct 2009, 19:30
1) AFAIK you can't, those are just parameters you put into WriteFile, so if the app doesn't have it, then you can't.
_________________ Previously known as The_Grey_Beast |
|||
01 Oct 2009, 19:30 |
|
Azu 01 Oct 2009, 19:32
I can change them in the GUI.. so doesn't the GUI call a function that can set them? I know I should try to disassemble explorer.exe to see how it does it, but I thought it would be easier if someone could just tell me, since there's a lot of stuff in it.. |
|||
01 Oct 2009, 19:32 |
|
Borsuc 01 Oct 2009, 23:22
Oh, you mean on the entire device. I don't know how to use device API, I'm not sure you're even allowed without a driver, are you? But then I'm no Windows internal guru, sorry
_________________ Previously known as The_Grey_Beast |
|||
01 Oct 2009, 23:22 |
|
f0dder 02 Oct 2009, 05:54
Azu, use sysinternals' ProcMon to see what registry values are modified when changing the settings - I reckon that should be enough.
PS: you really don't want the "turn off windows write-cache buffer flushing on the device" (known in previous versions as "advanced performance") - what it does is make FlushFileBuffers() do absolutely nothing, which totally ruins applications' chance of ensuring safe write operations. |
|||
02 Oct 2009, 05:54 |
|
shoorick 02 Oct 2009, 07:23
also keep in mind: some of such changes can be applied only after system restart
|
|||
02 Oct 2009, 07:23 |
|
Azu 02 Oct 2009, 07:32
shoorick wrote: also keep in mind: some of such changes can be applied only after system restart Gah!! It never said anything to me about restarting. But it does with some other things (like the pagefile). Damn confusing Windows. X_X |
|||
02 Oct 2009, 07:32 |
|
shoorick 02 Oct 2009, 09:51
i'm just supposing, can be wrong about particular feature
|
|||
02 Oct 2009, 09:51 |
|
jbojarczuk 04 Oct 2009, 03:45
I didn't really gave a good look around it, but I suppose that you may call the driver directly, through ioctl call, and then pass IOCTL_DISK_SET_CACHE_INFORMATION as a flag (or kind of operation), filling a DISK_CACHE_INFORMATION structure.
Well, I guess that now you will have enough to google and figure out the rest by yourself. Good Luck |
|||
04 Oct 2009, 03:45 |
|
jbojarczuk 05 Oct 2009, 11:10
Obs: The function used for this purpose is DeviceIoControl
|
|||
05 Oct 2009, 11:10 |
|
Azu 05 Oct 2009, 11:13
Thanks
|
|||
05 Oct 2009, 11:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.