Click here to Skip to main content
15,886,919 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
SuggestionRe: MVC ASP.NET AJAX ACTION LINK CREATE Pin
Richard MacCutchan26-Jul-13 6:40
mveRichard MacCutchan26-Jul-13 6:40 
QuestionCan i watch events like renaming in my Webdav drive(Virtual drive) in C#.net Pin
Anish K S24-Jul-13 20:37
Anish K S24-Jul-13 20:37 
AnswerRe: Can i watch events like renaming in my Webdav drive(Virtual drive) in C#.net Pin
Dave Kreskowiak25-Jul-13 1:21
mveDave Kreskowiak25-Jul-13 1:21 
QuestionAdd user credentials to access server drive path from winforms in app.config vb.net Pin
hueikar21-Jul-13 16:26
hueikar21-Jul-13 16:26 
AnswerRe: Add user credentials to access server drive path from winforms in app.config vb.net Pin
Dave Kreskowiak22-Jul-13 1:49
mveDave Kreskowiak22-Jul-13 1:49 
AnswerRe: Add user credentials to access server drive path from winforms in app.config vb.net Pin
Eddy Vluggen22-Jul-13 3:17
professionalEddy Vluggen22-Jul-13 3:17 
QuestionStandalone .NET framework exe Pin
LostTime7720-Jul-13 6:26
LostTime7720-Jul-13 6:26 
AnswerRe: Standalone .NET framework exe Pin
Dave Kreskowiak20-Jul-13 7:26
mveDave Kreskowiak20-Jul-13 7:26 
What you want is possible, but not a single app that can accomplish this is free.


LostTime77 wrote:
ZwOpenFile can also not work with anything but a file system file that I am
aware of.


True. You just defeated your own "no temporary files" requirement.


LostTime77 wrote:
Here is my idea. We hook ZwOpenFile using extended code overwriting. After
disassembling NTDLL.dll, this is possible, because the prologue to the function
is more than 5 bytes. Next, our custom function gets called. Thirdly, ZwOpenFile
passes back a PHANDLE pointer to the opened file. How can we rejigger this
PHANDLE pointer instead of using ZwOpenFile? How about CreateFile? Using
CreateFile, you can pass in a named pipe. CreateFile returns a HANDLE pointer
that I ASSume can be assigned to the ZwOpenFile PHANDLE parameter. I don't have
a lot of experience with named pipes and what not, but this is just an idea.
Maybe there is another way. Basically we get the dll file required by
LoadLibrary from the resource stored in the exe originally. Using this block of
memory, which is actually the dll itself, we can map it into something so that
CreateFile gives us a handle that ZwOpenFile can pass back to LoadLibrary. Now,
the big question is... is a file handle created with CreateFile 'compatible'
with a PHANDLE that ZwOpenFile passes back. I am guessing that the structure is
the same, BECAUSE I also tinkered with hooking the CreateFile API which uses
ZwCreateFile internally. Thus, a PHANDLE from ZwCreateFile (which would give us
a memory handle to the image instead of a required disk file) should be
compatible with ZwOpenFile.


Blah, blah, blah, ... you just got yourself into more work than it would be to write your own linker (remember the apps that are never free that do this!)


Really, think about this. You said it has to be free, but how much are you (and supposedly your team) is getting paid by the hour?? I'll be willing to bet that the cost of the linker is cheaper than the time it's going to take to build this off-the-wall solution, test the crap out of it before you ship it, and find out that certain parts of the .NET Framework will no longer work because it, like anything dependent upon Reflection for example.

You're not going to whip this up in a few hours. You're GOING to spend a lot of money on this no matter what route you decide to go.

Oh and, on the side, your resulting executable is going to weigh in at over 200MB, plus.

GeneralRe: Standalone .NET framework exe Pin
LostTime7620-Jul-13 8:01
LostTime7620-Jul-13 8:01 
GeneralRe: Standalone .NET framework exe Pin
LostTime7620-Jul-13 8:22
LostTime7620-Jul-13 8:22 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak20-Jul-13 9:48
mveDave Kreskowiak20-Jul-13 9:48 
GeneralRe: Standalone .NET framework exe Pin
LostTime7620-Jul-13 10:26
LostTime7620-Jul-13 10:26 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak20-Jul-13 10:36
mveDave Kreskowiak20-Jul-13 10:36 
GeneralRe: Standalone .NET framework exe Pin
LostTime7620-Jul-13 11:33
LostTime7620-Jul-13 11:33 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak21-Jul-13 3:24
mveDave Kreskowiak21-Jul-13 3:24 
GeneralRe: Standalone .NET framework exe Pin
LostTime7621-Jul-13 5:33
LostTime7621-Jul-13 5:33 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak21-Jul-13 6:03
mveDave Kreskowiak21-Jul-13 6:03 
GeneralRe: Standalone .NET framework exe Pin
LostTime7621-Jul-13 6:09
LostTime7621-Jul-13 6:09 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak21-Jul-13 10:57
mveDave Kreskowiak21-Jul-13 10:57 
GeneralRe: Standalone .NET framework exe Pin
LostTime7621-Jul-13 13:32
LostTime7621-Jul-13 13:32 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak21-Jul-13 14:53
mveDave Kreskowiak21-Jul-13 14:53 
GeneralRe: Standalone .NET framework exe Pin
LostTime7621-Jul-13 15:05
LostTime7621-Jul-13 15:05 
GeneralRe: Standalone .NET framework exe Pin
Dave Kreskowiak22-Jul-13 1:50
mveDave Kreskowiak22-Jul-13 1:50 
GeneralRe: Standalone .NET framework exe Pin
LostTime764-Aug-13 9:22
LostTime764-Aug-13 9:22 
GeneralRe: Standalone .NET framework exe Pin
Pete O'Hanlon4-Aug-13 9:51
mvePete O'Hanlon4-Aug-13 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.