Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - calling WinAPIs from VBScript

Reply
 
Old 05-06-2009   #1 (permalink)
Manas Talukdar


 
 

calling WinAPIs from VBScript

How do I call WINAPIs from within a VBScript without having to install any
3rd party stuff?

Thanks,
Manas


My System SpecsSystem Spec
Old 05-06-2009   #2 (permalink)
Manas Talukdar


 
 

Re: calling WinAPIs from VBScript

Basically I just need to toggle (uncheck and then check) "allow inheritable
permissions from parent to propagate to this object" on the Security tab of
a registry key.

"Manas Talukdar" <mtalukdar@xxxxxx> wrote in message
news:us4yJEozJHA.4800@xxxxxx
Quote:

> How do I call WINAPIs from within a VBScript without having to install any
> 3rd party stuff?
>
> Thanks,
> Manas
My System SpecsSystem Spec
Old 05-22-2009   #3 (permalink)
mr_unreliable


 
 

oops, should have mentioned StdRegProv Class

> However, your other posting implies that all you wish to do
Quote:

> is to change some subkey in the registry. If you know the
> subkey, then you can use the RegRead/RegWrite methods of script.
> Or, you can use the win32_registry and/or win32_registryaction
> classes of WMI (if you have WMI installed).
>
StdRegProv Class:

http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx

cheers, jw
My System SpecsSystem Spec
Old 05-22-2009   #4 (permalink)
mayayana


 
 

Re: oops, should have mentioned StdRegProv Class

Quote:
Clunky, poorly designed, and as with all
of WMI, it seems to be very slow. But it
does provide the functionality missing from
WScript.Shell. In case it's of use to anyone,
I've got a class that wraps the StdRegProv
mess and exposes a clean set of functions:

Exists
CreateKey(Path)
EnumKeys(Path, ArrayOut)
EnumVals(Path, AValsOut, ATypesOut)
GetValue(Path, Type)
SetValue(Path, Val, Type)
Delete(Path)

www.jsware.net/jsware/scripts.php5#wmirclas


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Calling a VBScript from Access VB Script
mfc dll calling clr? .NET General
Calling Executable from VBScript VB Script
How to do No hang up VBScript (nohup for VBScript) VB Script
Vbscript calling DTS package VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46