3 registration of dlls, 4 registration entries – Lenze PCMatic Operating system Windows CE4-2 Benutzerhandbuch
Seite 74

72
The user rights for an application can be allocated to the application with the assistance of the
AppID.
e.g. the authorisation for the OPC server VWOPC.Demo (via the ProgID):
Set LaunchPermission VWOPC.Demo=JS;SK
Set AccessPermission VWOPC.Demo=JS;SK
or alternatively (via the AppID):
Set LaunchPermission {F3AB8334-6482-11D4-B13B-0050BACA6CAE}=JS;SK
Set AccessPermission {F3AB8334-6482-11D4-B13B-0050BACA6CAE}=JS;SK
All the users identified in the “Set ...Permission” instructions must
additionally be notified via the “Set User” instruction.
The users identified here are NOT used if it is desired that a DCOM call-
up from the PCMatic device should be executed on another network
computer (in other words, in the other direction). The user information
transferred here is recorded under “SystemSettings
→Owner”
(section
8.17)
.
3.1.3 Registration of DLLs
By inputting “/r”, the following DLL is loaded and the function “DllRegisterServer” is invoked in
the DLL. Syntax: /r <pfad>
e.g.: /r opcproxy.dll
3.1.4 Registration entries
The creation of registration entries is undertaken in a similar way to the processing of export /
import files for the Windows program “RegEdit”:
• A key is created by means of the syntax:[<KEY>\<subkey>]. All entries added to this key
must follow immediately without breaks. The value of a key is allocated by means of “@” and
can only be of the data type “String”.
• A variable within a key is entered in inverted commas as follows: “<name>”.
• An equals sign results in the attribution of the relevant values to the variables. These include
the following types: strings, double words and data blocks.
• Strings, similarly to variable names, are identified by means of inverted commas.
• Data blocks begin with “hex:” and are depicted separated by commas in the form of
hexadecimal bytes. For multi-line entries, each completed line is concluded with a “\”.
• Double values or integers begin with “dword:” and are expected to be written in hexadecimal
form (eight digits).
e.g.:
[HKEY_CLASSES_ROOT\AppID\{13486D44-4821-11D2-A494-3CB306C10000}]
@="OpcEnum"
"LaunchPermission"=hex:\
03,00,00,00,1d,03,00,00,00,00,00,00,c0,00,00,00,00,00,00,46,6a,00,73,
00,00,\
00
or