#1 Burning Software

It is currently Thu Dec 19, 2024 3:50 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: looking for callback documentation
PostPosted: Thu May 22, 2008 3:05 pm 
Offline

Joined: Wed May 14, 2008 11:42 pm
Posts: 7
Hi,

I am trying to find where is documented an explanation for when my callback function is invoked the "CallbackNumber" parameter equal to "CN_FILE_TREE_PROGRESS_NAME_COLLISION" directs one to obtain the name in collision from the "pCallbackSpecial1" parameter?

For example:
From sample file PPFileSystem.cpp of project ImageBuilder:
VOID __stdcall FileTreeCallback( CALLBACK_NUMBER CallbackNumber, PVOID pCallbackContext, PVOID pCallbackSpecial1, PVOID pCallbackSpecial2)

How do I know, based on value in "CallbackNumber", whether valid data can be acquired via "pCallbackSpecial1" and "pCallbackSpecial2" and what type of data is available?

:)
Thank you,


Top
 Profile  
 
 Post subject: Re: looking for callback documentation
PostPosted: Fri May 23, 2008 8:28 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
oldsubsailor wrote:
Hi,

I am trying to find where is documented an explanation for when my callback function is invoked the "CallbackNumber" parameter equal to "CN_FILE_TREE_PROGRESS_NAME_COLLISION" directs one to obtain the name in collision from the "pCallbackSpecial1" parameter?

For example:
From sample file PPFileSystem.cpp of project ImageBuilder:
VOID __stdcall FileTreeCallback( CALLBACK_NUMBER CallbackNumber, PVOID pCallbackContext, PVOID pCallbackSpecial1, PVOID pCallbackSpecial2)

How do I know, based on value in "CallbackNumber", whether valid data can be acquired via "pCallbackSpecial1" and "pCallbackSpecial2" and what type of data is available?

:)
Thank you,


Hello,

Please look to StarBurn_API.chm
SymbolReference->Types->PCALLBACK type :
on this page in section Remarks you can see table with Callback number and Special parameter 1, Special parameter 2 descriptions.

Description of Callback numbers you can find in StarBurn_API.chm
Symbol Reference -> Structs, Records, Enums -> _CALLBACK_NUMBER Enumeration:
on this page in section Description you can see description of callback numbers.


Top
 Profile  
 
 Post subject: almost there...
PostPosted: Fri May 23, 2008 10:28 am 
Offline

Joined: Wed May 14, 2008 11:42 pm
Posts: 7
Thanks for uncovering the table. Now how about describing the PCHAR items listed under "Special parameter 1". Specifically for the Callback number items: "CN_FILE_TREE_PROGRESS_ADD", "CN_FILE_TREE_PROGRESS_REMOVE", "CN_FILE_TREE_PROGRESS_IGNORE" and "CN_FILE_TREE_PROGRESS_NAME_COLLISION".
Are they NULL terminated and what is their max size in case I want to manually allocate a buffer to hold the data?

Thank you,


Top
 Profile  
 
 Post subject: Re: almost there...
PostPosted: Fri May 23, 2008 11:25 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
oldsubsailor wrote:
Thanks for uncovering the table. Now how about describing the PCHAR items listed under "Special parameter 1". Specifically for the Callback number items: "CN_FILE_TREE_PROGRESS_ADD", "CN_FILE_TREE_PROGRESS_REMOVE", "CN_FILE_TREE_PROGRESS_IGNORE" and "CN_FILE_TREE_PROGRESS_NAME_COLLISION".
Are they NULL terminated and what is their max size in case I want to manually allocate a buffer to hold the data?

Thank you,


You can use MAX_PATH constant for this, that is 260 UCHARs.


Top
 Profile  
 
 Post subject: Null characters?
PostPosted: Fri May 23, 2008 11:34 am 
Offline

Joined: Wed May 14, 2008 11:42 pm
Posts: 7
I presume your strings are null terminated?


Top
 Profile  
 
 Post subject: Re: Null characters?
PostPosted: Fri May 23, 2008 3:04 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
oldsubsailor wrote:
I presume your strings are null terminated?


Yes of course.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group