Registry callbacks, transactions

Sorry about the slight OT post.

Can anyone advise how in a Registry Callback I can determine whether the
current thread is in transaction scope and if so the transaction handle of
the current transaction scope?

Thanks
Lyndon

It looks like the answer is CmGetBoundTransaction, although (as of 5308), it
is undocumented, and returns a PVOID, with no obvious other calls prototyped
to interpret the returned opaque object.

The plugfest presentation on this a couple days ago did not give details of
calls/data structures, but it did indicate that the model is similar to the
minifilter transaction stuff.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
Sent: Friday, April 28, 2006 12:03 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Registry callbacks, transactions

Sorry about the slight OT post.

Can anyone advise how in a Registry Callback I can determine whether the
current thread is in transaction scope and if so the transaction handle of
the current transaction scope?

Thanks
Lyndon


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@privtek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Dan

Thanks for the starter so to speak. I see this function prototype in WDK
5365 wdm.h (but not ntddk.h shame) however the function is not exported from
ntknlmp.exe (in the debug directory) for example and neither is it in the
public symbols. I also see in wdm.h a rather interesting
CmRegisterCallbackEx function prototype; this one is exported from
ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.

I appreciate the Microsoft folks are very busy with Vista at the moment but
some assist here would be very much appreciated.

Regards
Lyndon

“Dan Kyler” wrote in message news:xxxxx@ntfsd…
> It looks like the answer is CmGetBoundTransaction, although (as of 5308),
> it
> is undocumented, and returns a PVOID, with no obvious other calls
> prototyped
> to interpret the returned opaque object.
>
> The plugfest presentation on this a couple days ago did not give details
> of
> calls/data structures, but it did indicate that the model is similar to
> the
> minifilter transaction stuff.
>
> - Dan.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
> Sent: Friday, April 28, 2006 12:03 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Registry callbacks, transactions
>
>
> Sorry about the slight OT post.
>
> Can anyone advise how in a Registry Callback I can determine whether the
> current thread is in transaction scope and if so the transaction handle of
> the current transaction scope?
>
> Thanks
> Lyndon
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@privtek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

I’ll ask at plugfest today what the status of the Vista registry callbacks
are, and when they’ll be exported/documented.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
Sent: Friday, April 28, 2006 8:28 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Registry callbacks, transactions

Hi Dan

Thanks for the starter so to speak. I see this function prototype in WDK
5365 wdm.h (but not ntddk.h shame) however the function is not exported from

ntknlmp.exe (in the debug directory) for example and neither is it in the
public symbols. I also see in wdm.h a rather interesting
CmRegisterCallbackEx function prototype; this one is exported from
ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.

I appreciate the Microsoft folks are very busy with Vista at the moment but
some assist here would be very much appreciated.

Regards
Lyndon

“Dan Kyler” wrote in message news:xxxxx@ntfsd…
> It looks like the answer is CmGetBoundTransaction, although (as of
> 5308),
> it
> is undocumented, and returns a PVOID, with no obvious other calls
> prototyped
> to interpret the returned opaque object.
>
> The plugfest presentation on this a couple days ago did not give
> details
> of
> calls/data structures, but it did indicate that the model is similar to
> the
> minifilter transaction stuff.
>
> - Dan.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J.
> Clarke
> Sent: Friday, April 28, 2006 12:03 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Registry callbacks, transactions
>
>
> Sorry about the slight OT post.
>
> Can anyone advise how in a Registry Callback I can determine whether
> the current thread is in transaction scope and if so the transaction
> handle of the current transaction scope?
>
> Thanks
> Lyndon
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@privtek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

“Lyndon J. Clarke” wrote in message
news:xxxxx@ntfsd…
> Thanks for the starter so to speak. I see this function prototype in WDK
> 5365 wdm.h (but not ntddk.h shame) however the function is not exported
> from ntknlmp.exe (in the debug directory) for example and neither is it in
> the public symbols. I also see in wdm.h a rather interesting
> CmRegisterCallbackEx function prototype; this one is exported from
> ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.

Lyndon,

Check ntddk.h it now included wdm.h. This is part of the major reorg of
the includes that Microsoft has been discussing for 3 years.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

Hi Lyndon,

I talked to Neal Christiansen, and it is a bug that the routine is not
exported. He is filing a bug report against it. He will also investigate
the time frame for the documentation as well, and get back to us.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
Sent: Friday, April 28, 2006 8:28 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Registry callbacks, transactions

Hi Dan

Thanks for the starter so to speak. I see this function prototype in WDK
5365 wdm.h (but not ntddk.h shame) however the function is not exported from

ntknlmp.exe (in the debug directory) for example and neither is it in the
public symbols. I also see in wdm.h a rather interesting
CmRegisterCallbackEx function prototype; this one is exported from
ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.

I appreciate the Microsoft folks are very busy with Vista at the moment but
some assist here would be very much appreciated.

Regards
Lyndon

“Dan Kyler” wrote in message news:xxxxx@ntfsd…
> It looks like the answer is CmGetBoundTransaction, although (as of
> 5308),
> it
> is undocumented, and returns a PVOID, with no obvious other calls
> prototyped
> to interpret the returned opaque object.
>
> The plugfest presentation on this a couple days ago did not give
> details
> of
> calls/data structures, but it did indicate that the model is similar to
> the
> minifilter transaction stuff.
>
> - Dan.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J.
> Clarke
> Sent: Friday, April 28, 2006 12:03 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Registry callbacks, transactions
>
>
> Sorry about the slight OT post.
>
> Can anyone advise how in a Registry Callback I can determine whether
> the current thread is in transaction scope and if so the transaction
> handle of the current transaction scope?
>
> Thanks
> Lyndon
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@privtek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

d’oh!

“Don Burn” wrote in message news:xxxxx@ntfsd…
>
> “Lyndon J. Clarke” wrote in message
> news:xxxxx@ntfsd…
>> Thanks for the starter so to speak. I see this function prototype in WDK
>> 5365 wdm.h (but not ntddk.h shame) however the function is not exported
>> from ntknlmp.exe (in the debug directory) for example and neither is it
>> in the public symbols. I also see in wdm.h a rather interesting
>> CmRegisterCallbackEx function prototype; this one is exported from
>> ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.
>
> Lyndon,
>
> Check ntddk.h it now included wdm.h. This is part of the major reorg
> of the includes that Microsoft has been discussing for 3 years.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
>
>

Hi Dan

It’s been a week now; have you heard back from Neal?

Thanks
Lyndon

“Dan Kyler” wrote in message news:xxxxx@ntfsd…
> Hi Lyndon,
>
> I talked to Neal Christiansen, and it is a bug that the routine is not
> exported. He is filing a bug report against it. He will also investigate
> the time frame for the documentation as well, and get back to us.
>
> - Dan.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
> Sent: Friday, April 28, 2006 8:28 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Registry callbacks, transactions
>
>
> Hi Dan
>
> Thanks for the starter so to speak. I see this function prototype in WDK
> 5365 wdm.h (but not ntddk.h shame) however the function is not exported
> from
>
> ntknlmp.exe (in the debug directory) for example and neither is it in the
> public symbols. I also see in wdm.h a rather interesting
> CmRegisterCallbackEx function prototype; this one is exported from
> ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.
>
> I appreciate the Microsoft folks are very busy with Vista at the moment
> but
> some assist here would be very much appreciated.
>
> Regards
> Lyndon
>
> “Dan Kyler” wrote in message news:xxxxx@ntfsd…
>> It looks like the answer is CmGetBoundTransaction, although (as of
>> 5308),
>> it
>> is undocumented, and returns a PVOID, with no obvious other calls
>> prototyped
>> to interpret the returned opaque object.
>>
>> The plugfest presentation on this a couple days ago did not give
>> details
>> of
>> calls/data structures, but it did indicate that the model is similar to
>> the
>> minifilter transaction stuff.
>>
>> - Dan.
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J.
>> Clarke
>> Sent: Friday, April 28, 2006 12:03 AM
>> To: Windows File Systems Devs Interest List
>> Subject: [ntfsd] Registry callbacks, transactions
>>
>>
>> Sorry about the slight OT post.
>>
>> Can anyone advise how in a Registry Callback I can determine whether
>> the current thread is in transaction scope and if so the transaction
>> handle of the current transaction scope?
>>
>> Thanks
>> Lyndon
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
>> unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@privtek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

Hi Lyndon,

Nothing yet. I believe Neal will reply to the list when he has answers.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J. Clarke
Sent: Friday, May 05, 2006 4:25 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Registry callbacks, transactions

Hi Dan

It’s been a week now; have you heard back from Neal?

Thanks
Lyndon

“Dan Kyler” wrote in message news:xxxxx@ntfsd…
> Hi Lyndon,
>
> I talked to Neal Christiansen, and it is a bug that the routine is not
> exported. He is filing a bug report against it. He will also
> investigate the time frame for the documentation as well, and get back
> to us.
>
> - Dan.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J.
> Clarke
> Sent: Friday, April 28, 2006 8:28 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Registry callbacks, transactions
>
>
> Hi Dan
>
> Thanks for the starter so to speak. I see this function prototype in
> WDK 5365 wdm.h (but not ntddk.h shame) however the function is not
> exported from
>
> ntknlmp.exe (in the debug directory) for example and neither is it in
> the public symbols. I also see in wdm.h a rather interesting
> CmRegisterCallbackEx function prototype; this one is exported from
> ntkrnlmp.exe etc. I find documentation for neither in the WDK docs.
>
> I appreciate the Microsoft folks are very busy with Vista at the
> moment
> but
> some assist here would be very much appreciated.
>
> Regards
> Lyndon
>
> “Dan Kyler” wrote in message news:xxxxx@ntfsd…
>> It looks like the answer is CmGetBoundTransaction, although (as of
>> 5308), it
>> is undocumented, and returns a PVOID, with no obvious other calls
>> prototyped
>> to interpret the returned opaque object.
>>
>> The plugfest presentation on this a couple days ago did not give
>> details of
>> calls/data structures, but it did indicate that the model is similar to
>> the
>> minifilter transaction stuff.
>>
>> - Dan.
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Lyndon J.
>> Clarke
>> Sent: Friday, April 28, 2006 12:03 AM
>> To: Windows File Systems Devs Interest List
>> Subject: [ntfsd] Registry callbacks, transactions
>>
>>
>> Sorry about the slight OT post.
>>
>> Can anyone advise how in a Registry Callback I can determine whether
>> the current thread is in transaction scope and if so the transaction
>> handle of the current transaction scope?
>>
>> Thanks
>> Lyndon
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
>> unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@privtek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com