> > > Hi All,
> >
[quoted text clipped - 23 lines]
> We don't fancy the Shell.
> We are using Win NT.
Whoa! Too old for me. All my links are broken. <g>
IIRC, you need to research the "CryptoAPI". I have never seen anything
written in VB, it was always accessed using C. But it should be easy enough
to create a wrapper.
Someone else will be along shortly.
-ralph
mayayana - 14 Nov 2007 14:36 GMT
> IIRC, you need to research the "CryptoAPI". I have never seen anything
> written in VB, it was always accessed using C.
That's capicom.dll, which is downloadable and redistributable.
I started looking into it awhile back for some reason but
then never ended up using it. I imagine there's a version
for NT4 (if that's what was meant by "NT"), but the link I
found for v. 2.1.0.2 doesn't list NT4 as supported.
http://www.microsoft.com/downloads/details.aspx?FamilyId=860EE43A-A843-462F-
ABB5-FF88EA5896F6
You may have to look for an older version download
of an older version that supports NT4. Or it may be
possible to just unpack the download MSI file and
register capicom.dll on NT4.
There are VB samples in this:
"Wiley CryptoAPI COM Objects"
Try a search for the above title or "wcco". The download
zip I have is wcco10.zip
There are also limited samples in the MS download.
I don't know whether capicom is actually what you
want, but it's probably worth checking into. I tried
to get a general list of supported functions in the DLL
but the reference link was broken on the above page.
(I sometimes almost wonder whether MS is going out of
business. Their whole website is a mess and I seem to
find nothing but broken links lately.)
According to the docs, EncryptFile is in the kernel
and starts with Win2000, so I guess the OP
doesn't want that.