okutil_check_register_COM_server

 

Description

register an ActiveX or COM dll if not already registered

Syntax

int okutil_check_register_COM_server( LPCSTR lpcszFulpathFilename, BOOL bRegister = TRUE )

Parameters

lpcszFulpathFilename
[input] filename, ext needed
bRegister
[in] TRUE to register, FALSE to unregister

Return

0 = already registered, nothing is done

1 = not registered yet, or not in the correct path, and redo registeration succeeded

-1 = need to register but failed

-2 = need to register but file not found

Examples

Remark

See Also

header to Include

origin.h

Reference