mr_unreliable
Mon Mar 24 12:23:10 CDT 2008
sumGirl wrote:
> Hey all. Vista has hooks built into it to support transaction enabled
> NTFS. That means theoretically you can start a transaction scope, do
> stuff and then commit or rollback? Catch is Microsoft didnt include
> the transaction management commands that where built into the early
> release candidates...but they did leave the hooks for code to use the
> functionality. I have seen this demonstrated in C sharp, but I would
> like to use the functionality in vbscript if possible.
>
> Anyone know anything or have an exmaple? Its cool stuff and I am
> surprised theres not a lot of chit chat regarding this.
>
Hey sumGirl, I am assuming you are referring to "Introduction to
Vista Transactional NTFS (TxF) with Detours", by Tamer Safwat Aziz,
found here:
http://www.codeproject.com/KB/vista/Transactional_NTFS.aspx
and including "Detours 2.1" found here:
http://research.microsoft.com/sn/detours/
I don't know anything about c-sharp (or c++ for that matter)
but the code on Aziz's page looked more like c++ to me.
Regardless, the code was all system api's, and so could be
coded in any language supporting api calls, including vb.
While there is no pre-packaged utility, there is (as you said)
demo code. If it's c#, then you could use microsoft's
"interoperability" (or interop for short) capability to wrap
it into something usable from vbScript. If it is c++, then
you just need to wrap-it-up in a "dual interface" wrapper
(IUnk & IDisp). Or, if you are fluent in converting C to vb,
(also a language suitable for calling the system api), then
you could make a vb actX object callable from script.
While it may sound harsh to suggest a do-it-yurself approach,
if you want it bad enough, that is one way to get it.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)