Visual Basic |
---|
Public Property RegWord( _ ByVal Name As String _ ) As Long |
Many obscure options in DicomObjects are controlled via registry keys, all under the master key:
HKEY_LOCAL_MACHINE/Software/Medical Connections/DicomObjects
In fact, these values are cached when first used, and from then on, the cached value is used, and subsequent changes to the registry itself will be ignored until DicomObjects is reloaded (normally when it’s container program is restarted). However, these methods allow direct manipulation of the registry cache, allowing any of the values to be over-ridden. Also, programs may through reading these parameterised properties find the value currently being used, whether from the registry itself, a default value, or previous use of one of these properties.
All values used by DicomObjects are either Strings or DWORDs, and it is important that the correct type of value be used.
Some values are held under further registry keys, and these may be controlled by prepending any necessary sub-keys separated by backslashes.
e.g. to change the preferred transfer syntax used for verification to explicit VR, the following could be used:
DicomGlobal.RegString(“TransferSyntax\1.2.840.10008.1.1”)=”1.2.840.10008.1.2.1 1.2.840.10008.1.2”
To change the default value of a key use a trailing backslash e.g. to change the preferred transfer syntax to compressed JPEG for all abstract syntaxes, the following would be appropriate:
DicomGlobal.RegString(“TransferSyntax\”)=”1.2.840.10008.1.2.4.51 1.2.840.10008.1.2”