Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I want to learn to do hooks / Quiero aprender a hacer Hooks

293 views
Skip to first unread message

R.@discussions.microsoft.com Rafael R.

unread,
Sep 13, 2006, 11:41:02 AM9/13/06
to
I want to learn to do hooks / Quiero aprender a hacer Hooks

they can help me with this / me pueden ayudar con esto

Thanks

RRA

Mick Hardy

unread,
Sep 14, 2006, 1:31:01 AM9/14/06
to
It is frustrating as a legitimate licensed user not having access to the
development documentation but this news group presented enough clues to get
me started with hooks. It's reasonably straightforward although I can't
guarantee these tips are the correct way. I've just spent a few hours
compiling the information I present below so if I save you the few hours,
it's worth posting. If you're a developer, further customisation should be
simple.

In VS2005 or similar, create a new Class Library Project called,
"TestHookProject"

Under Project Properties -> Compile Options, tick "Register for COM interop"

Add a COM reference to "Store Operations Business Rules" (QSRules.dll).
Note this reference is used to assist in locating properties and methods
using early binding and should be removed and replaced with late binding
before release.

Add a .Net reference to System.Windows.Forms for the messagebox class

Rename Class1 to TestHook and add the following simple test code

Imports System.Windows.Forms

Public Class TestHook

Public Function Process(ByVal Session As Object) As Boolean

'Used during development and removed for release
Dim TempSession As QSRules.SessionClass

Try

MessageBox.Show("Transaction Initialised")

Exit Function

Catch ex As Exception

MessageBox.Show(ex.Message)

End Try

End Function

End Class

You can use the TempSession object for intellisense during development or
the Object Browser.

Build your project.

Modify the RMS registry keys to use your hook.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Retail Management System\Store
Operations\Hooks

Increase the Count Key by 1

In The "Count-1" subkey eg. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Retail
Management System\Store Operations\Hooks\000

Caption = Transaction Initialised Hook
Description = Test Hook
HookType = 6
ObjectName = TestHookProject.TestHook
Parameter = 1

Restart POS and you should get the messagebox whenever you create a new
transaction.

Available hook types.

0 PostTransaction
1 PrintReceipt
2 TenderBegin
3 ExportAccounting
4 AddItem
5 RefreshDisplay
6 InitializeTransaction
7 StartPOS
8 QuitPOS
9 SavePurchaseOrder
10 SaveSupplier
11 SaveCustomer
12 StartManager
13 QuitManager
14 SaveItem
15 TenderEnd

Hope this helps but I'll also suggest you seek help and support from your
Partner as RMS is a very different beast to every other Microsoft product I
know. I'm quite surprised at the secrecy and lack of documentation or text
books for us non-Partners.

Feel free to email me a copy of the "Customization Guide" or "Secret Book"
I've heard about.

Rafael R.

unread,
Sep 14, 2006, 11:46:01 PM9/14/06
to
Mick

I have documentation:
QSBridge FireEvent Commands – 6.15.00 (35 Page)
it interests to you, I need an example hook in VB6

please send email: rrodri...@gmail.com

Mick Hardy

unread,
Sep 15, 2006, 12:35:01 AM9/15/06
to
Hi Rafael,

I would appreciate a copy of any documentation you have.

Hooks in VB6 are even easier than Dot Net because you don't have the cross
platform problems.

Create a new ActiveX DLL Project

Add the following code to Class1

Option Explicit

Public Function Process(ByVal Session As Object) As Boolean

On Error GoTo ErrHandler

MsgBox "Transaction Initialised!"

Process = True

Exit Function

ErrHandler:

MsgBox Err.Description

End Function

Compile the project and leave it running in the VB6 Environment

Add the following registry keys and increase the Count
Caption = Initialize Transaction Hook
Description = Testing VB6
HookType = 6
ObjectName = Project1.Class1
Parameter = 1

Restart POS and it should all work. You will have to ALT Tab to the VB6
Environment to display the message box. Once you've finished developing,
compile the project and deploy your DLL.

I strongly recommend ditching VB6 and jumping on the Dot Net band wagon.
You'll never look back. I was reluctant to change but the code I just wrote
is the first VB6 code in many years.

Have Fun.

Rene

unread,
Sep 19, 2006, 1:46:02 PM9/19/06
to
Does any one have this customization guide ???
I tried the example and it worked , now I would like to try to develope some
thing to handle serial numbers in transfering items .


Can you please send it to me .?
re...@thewizz.com
Thanks

Mick Hardy

unread,
Sep 19, 2006, 6:32:02 PM9/19/06
to
The Customisation Guide is available to Partners only and I think they are
keeping it under wraps due to the amount of work and number of exams they
need to pass to get the rating. I have no idea why Microsoft have made
development for RMS so exclusive. It is very unlike Microsoft who have been
leaders with SDKs from the very beginning. I have a VS2005 Team Developer
with MSDN Premium subscription but I'm not allowed to develop for my fully
licensed copy of RMS. It sucks.

Jeff

unread,
Sep 19, 2006, 6:42:29 PM9/19/06
to
Mick,
 
Hell, they won't even tell _us_ what's happening for the next version to be delivered in 4 months. No alphas or betas.
 
Everything is just briefly touched on.  We know about 10 things that will happen in RMS/MSPOS 2.0 in very general terms.
 
Other divisions often BEG or PAY end-users and/or resellers to test forthcoming products!

--
*
Get Secure! - www.microsoft.com/security
 
You must be using Outlook Express or some other type of newsgroup reader to
see and download the file attachment.  If you are not using a reader, follow
the link below to setup Outlook Express.  Click on "Open with newsreader"
under the MS Retail Management System on the right.
 
 
**********

Mick Hardy

unread,
Sep 21, 2006, 11:27:01 PM9/21/06
to
There is a document available from CustomerSource, Support, Knowledge Base,
Retail Management, Store Operations, Customization, ArticleID 869720. I'm
not sure if this is the elusive Customization Guide as it is pretty brief but
it has a number of documents available for download as well. It is labelled
Partners Only but is available to Customers. It has good info on Hooks and
COM components.

Sajeer

unread,
Jun 27, 2007, 5:22:02 AM6/27/07
to
I have the customization documents with me if anybody is looking seriously
for the documentation i will send it to you.

This information is very much helpfull thanks for your work yaar
its really apreciable

Sajeer
Business Consultant
HeadStart

Mark

unread,
Jul 19, 2007, 3:50:01 PM7/19/07
to
Could you send me the customization docs? I was looking for it in google but
only partial info was found.
My email is keu...@gmail.com

Thanks in advance

Cyfluthrin

unread,
Sep 23, 2007, 12:02:01 PM9/23/07
to
Sajeer,

The customization documents would really help me a lot. I have been looking
for this for months now. Please send me a copy.

email = diezd...@gmail.com

Thanks in advance.

Mano

unread,
Oct 19, 2007, 7:22:00 PM10/19/07
to
Sajeer,
I would appreciate if you cuold send me the customization guide. my
email is manos at dreamscorp dot com

Thanks
Mano

ren

unread,
Feb 12, 2008, 8:19:00 AM2/12/08
to
I'm starting on RMS world and would really appreciate if you could send me
the documentation too.
email: rge...@yahoo.com

Many thanks!
Ren

ISSAM

unread,
Jul 27, 2008, 4:21:00 AM7/27/08
to
Hi Sajeer
h r u ?
could you please send me a copy of the customization docs ?
iss...@hotmail.com
thank you

RicoTowers

unread,
Jun 6, 2009, 4:16:01 PM6/6/09
to
Hi Mike,

I have looking for hooks development documentation and came upton this post.
If its not too much trouble, would send me a copy of the "Customization
Guide" or "Secret Book"?

email: rtsd...@hotmail.com

Thank you

RicoTowers

unread,
Jun 6, 2009, 4:18:01 PM6/6/09
to
Hi Sajeer,

I just sent an email to Mike; both of u guys have documentation. I'm
looking into RMS developing. If its not too much trouble, would you send me
a copy of your Customization documention?

email: rtsd...@hotmail.com

Thank you

Willi

unread,
Dec 18, 2009, 11:33:01 AM12/18/09
to
Hi Sajeer,
i would appreciate if you could send me also the customization guide.
My email: wilfried...@kirbis.de

Thanks a lot!
Willi

paulo

unread,
Dec 24, 2009, 8:06:20 AM12/24/09
to
I hope you can send me also the guide

My email pmarg...@gmail.com


Thanks
Paulo


"Willi" <Wi...@discussions.microsoft.com> wrote in message
news:C034AE69-0CCB-4D55...@microsoft.com...

> __________ Information from ESET Smart Security, version of virus
> signature database 4714 (20091224) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>


__________ Information from ESET Smart Security, version of virus signature database 4714 (20091224) __________

The message was checked by ESET Smart Security.

http://www.eset.com

hozay

unread,
Apr 12, 2010, 2:23:01 PM4/12/10
to
hope its bot to late
please send me a copy
thanks

nbulu...@gmail.com

unread,
Feb 27, 2014, 8:39:54 PM2/27/14
to
Could you send the documentation please. I badly needed it for educational purpose only. Thank you!

Nicomedes Bulusan

unread,
Mar 1, 2014, 3:08:03 AM3/1/14
to
On Wednesday, June 27, 2007 5:22:02 PM UTC+8, Sajeer wrote:
Could you send me a copy too. I badly needed it. I only how to query using COM interop in vb.net

saulm...@gmail.com

unread,
May 6, 2015, 9:33:15 PM5/6/15
to
Hola Rafa pudistes desarrolar el hook. Porfavor ayúdame, yo necesito aprender, te agradecera mucho compartas tu conocimiento. facilitame un ejemplo y breve explicación de como se hace.
0 new messages