hi i am trying to open a file for writing on a windows limited account but access is denied.
is there something wrong with my code or do i need to do something else to ask for permissions?

the problem only occurs when the user is on a windows limited account.
eax is -1 and getlasterror is 5 (ERROR_ACCESS_DENIED)

thanks


invoke CreateFile, offset szFileBuf, GENERIC_READ or GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0
Posted on 2008-04-08 23:47:51 by Insano
One of the points of a limited account is to restrict access to a lot of locations - which path/file are you trying to access?
Posted on 2008-04-09 05:55:01 by f0dder
getlasterror is 5 (ERROR_ACCESS_DENIED)

Well, you have answered your question -- access denied. Now your application should display something like "Acces to the file is denied. Please contact system's administrator for further assistance." :)
Posted on 2008-04-09 08:27:15 by ti_mo_n