RegisterApplication

Purpose:

If you want to develop an application that records and plays macro in some other application then before calling any other function like StartRecording, RunMacro etc. you need to call RegisterApplication function.

Declarations:

VC++

long RegisterApplication (_bstr_t pExeName, _bstr_t pTitle );

VISUAL BASIC:

RegisterApplication (ByVal pExeName As String, Optional ByVal pTitle As String) As Long

Parameters:

Return Value:

Returns 1 if there is any kind of failure or 0 if successful.

Notes:

If you do not call this function then the recording and playing of macros is done in the same application from where you are calling SDK functions.