C++ WriteFile doesnt work and returns 5 ( GetLastError() ), even tho i have admin permition : <p>Ok so, im making this programm that lets me access and write in a usb device.
Im having this problem that, when i try to run the 
WriteFile(
    hFile,
    lpBuffer,
    nNumberOfBytesToWrite,
    lpNumberOfBytesWritten,
    lpOverlapped
);
it doenst work and returns 5 if i do the GetLastErrror().
If consulted manny foruns in the web and pretty much they all say that i need to run it as admin, but im admin and i set the compiler to run as admin, and the project too... so what am i doing wrong? Hanny help would be much appreciated!</p>
