15,880,299 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Varun Pandey
22-Jan-13 5:22am
View
Yes, I posted the same question on the discussion board also - thinking that it might be a minor issue. However, as you can see, no one replied me there. So, this is another permutation I tried to check if starting a new thread may have better visibility to anybody who can help. Anyways, could you help me with my problem???
Varun Pandey
17-Jan-13 23:55pm
View
Initially my plan was to send the file over LAN, and "MSEXEC" it. So the installation part wasn't that important. Now, as you suggested, I am attempting to "MSEXEC" the same installer from the shared folder by creating a process on Remote machine. In such a case, is the file copied to the remote and then executed or is it extracted first. In the later, as I recollect, SMB may add latency issues, will it?
Varun Pandey
17-Jan-13 22:35pm
View
Thanks for the response. The purpose of this utility is to do the remote installation. Agreed, I can create a remote process (also through WMI) and pass the shared path to the remote machine. Then the remote machine will be responsible for installation. What about the network over-head. Will it be more than sending a file and installing?
Varun Pandey
17-Jan-13 0:05am
View
It isn't complex... I am just looking for a better solution... I don't trust SHFileOperation, it's parameter passing(double null terminated string) and result codes are weird. That's why I am here asking you guru(s). :-|
Varun Pandey
16-Jan-13 23:48pm
View
I have work arounds... SHFileOperation can be used on server to copy file on remote machine - It works. Another way to do this by WMI is by creating a process in remote machine that runs copy command. But that will require Server login credentials. The First method will obviously need impersonation. Re-usability is this, I am already using WMI for some operation. For that I have impersonated the remote machine. So if I use SHFileOperation, I will have to impersonate the machine again. This is what I don't want. I am 101% sure...
Varun Pandey
16-Jan-13 23:34pm
View
I am trying to develop an enterprise software that will manage many (lets say 100+) machines at a time. Running 100+ client receivers isn't a great idea.
WMI is used for enterprise management. Agreed that all remote operations are not done by WMI, but I am already using it for some operation. So was thinking of reusability of code.
Varun Pandey
21-Sep-12 8:55am
View
Just to help - a very interesting Workaround, disabling & enabling DataGridView after modifying the rows resolves this issue.
Show More