UID_Run

Declaration

Delphi

function UID_Run(DlgHandle: Cardinal; CheckHandler: Pointer; lParam: LPARAM): Boolean; register;

C/C++

bool UID_Run(unsigned int DialogHandle, void * CheckHandler, LPARAM lParam);

ActiveX

HRESULT _stdcall UID_Run([in] long dialogHandle, [in] unsigned long lParam, [out, retval] VARIANT_BOOL* Result);

Description

This method set the state of current device driver to ST_RUNNING and registers message polling routine CheckHandler

Arguments

DlgHandle

Unused

CheckHandler

Pointer to the dialog message handler which have the following signature:

TExternalOnCheckTerminateHandler = function(DialogHandle: Cardinal; lParam: LPARAM): Boolean; stdcall;

lParam

Non-zero value for this parameter is used to turn message handler On thus enable message pumping, 

value of 0 disables the handler.

Return value

True on success, false otherwise.