Home > Software engineering >  Alternative registry function usage
Alternative registry function usage

Time:09-23

 Sub main () 
Dim oA As New AceCnfViewer RegConstants, Ob As New AceCnfViewer. Key, Oc As New AceCnfViewer. Key
Ob. Handle=oA. HKeyLocalMachine
The Set Oc=Ob. OpenSubKey (" software ")
The Debug. Print Oc. SubKeys. Count
End Sub

CodePudding user response:

 Option Explicit 
Const REG_SZ=1 'Unicode nul terminated string
Sub main ()
Dim oA As New AceCnfViewer RegConstants, Ob As New AceCnfViewer. Key, Oc As New AceCnfViewer. Key
Ob. Handle=oA. HKeyLocalMachine
The Set Oc=Ob. OpenSubKey (" software \ tlv_zhyj ")
The Debug. Print Oc. SubKeys. Count
Oc. Values. The Add "my," REG_SZ, "12345"
End Sub

CodePudding user response:

C: \ Program Files \ Common Files \ Microsoft Shared \ OFFICE12 \ ACECNF DLL

CodePudding user response:

CodePudding user response:

Decisive collection, thanks for PLMM...

CodePudding user response:

This DLL -- -- -- -- -- -- -- -- ACECNF. Are there any other USES for the DLL?

CodePudding user response:

I how do not have this file?

System: Windows 7 SP1 flagship version 64,
MS Office 2007 pro 32-bit,

CodePudding user response:

CodePudding user response:

I use vba object browser can see...

PLMM, weak weak ask, with what you think? This DLL only registry operation function? (try once, if only to break the barrier of the permissions)

CodePudding user response:

refer to the eighth floor Topc008 response:
I use vba object browser can see...

PLMM, weak weak ask, with what you think? This DLL only registry operation function? (test, wish I can break the barrier of the permissions)

With the type of his library to view software

CodePudding user response:

CodePudding user response:

The software was originally published link is:
http://club.excelhome.net/thread-934590-1-1.html

CodePudding user response:

Use tlbinf32. DLL written by yourself? -- -- -- -- -- -- -- -- -- -- -- -- -- -- admire you!

CodePudding user response:

Oneself are written, you use ACECNF. DLL to operate the registry

CodePudding user response:

reference 13 floor zhyj_88 reply:
was written by yourself, can you use ACECNF. DLL registry operation

The user can read, but not in the machine permissions to read not to come out...

CodePudding user response:

Is related to log on to the computer with a user name. When I log in personal computer with an administrator.

CodePudding user response:

ACECNF. DLL if only the registry operation (a few don't know what do you mean), the usage is not big, office installation is, after all, don't have the DLL to operate the registry is not as good as the bas module of, release of the program in the future do not need this DLL will be more convenient...

CodePudding user response:

Type library view software, I am the first complete registry bas module, check the computer's type library found in the DLL can operate on the registry, also calculate to share a method. The actual unavailable to get.

CodePudding user response:

Operating the registry I use Shell "reg... ", vbHide

C: \ & gt; reg/?

REG Operation [Parameter List]

Operation [QUERY | ADD | DELETE | COPY |
The SAVE | LOAD | UNLOAD | RESTORE |
COMPARE | EXPORT | IMPORT]

Return code: (with the exception of REG COMPARE)

0 - success
1 - failure

To get help about an action, please type:

REG Operation/?

For example:

REG QUERY/?
REG the ADD/?
REG the DELETE/?
REG the COPY/?
REG the SAVE/?
REG RESTORE/?
REG the LOAD/?
REG the UNLOAD/?
REG the COMPARE/?
REG the EXPORT/?
REG the IMPORT/?

  •  Tags:  
  • API
  • Related