Click here to Skip to main content
15,888,816 members

Comments by Varun Pandey (Top 12 by date)

Varun Pandey 10-Apr-13 23:11pm View    
I suspected that, so I tried Win 8 SDK which has the API. So now the compiler understands the API but I am still unable to get a call on Detoured function...
Varun Pandey 10-Apr-13 4:56am View    
The sample gives compiler error of identifier "CopyFile2". Assigning CopyFile2 to its Function pointers doesn't look like an issue since other APIs are getting detoured correctly by similar methods.
Varun Pandey 9-Apr-13 3:30am View    
It is just a function pointer that is been stored. Adding (PCWSTR,PCWSTR,COPYFILE2_EXTENDED_PARAMETERS) gives a compiler error saying "Illegal use of this type of expression"
Varun Pandey 9-Apr-13 3:26am View    
Deleted
Oh that was a horrible typo. Thanks for pointing it out, I have corrected the question. I have tried this a lot of times - it doesn't work either.
Varun Pandey 9-Apr-13 1:14am View    
Hey @The_Inventor, thanks for the reply but I am not sure which snippet do you want. So please do tell me if I am adding a wrong comment. In the snippet above, *Trampoline_CopyFile2 is the address used for storing the original CopyFile2 function. Detour_CopyFile2 is the function that will replace the original CopyFile2 assembly. If you want me to add MS declaration and decoration of CopyFile2, here is the link - http://msdn.microsoft.com/en-us/library/windows/desktop/hh449404(v=vs.85).aspx