[Win32utils-devel] win32-etc cvs

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Tue Feb 24 22:47:08 EST 2004


> Hi all,
> I've got the beginning of win32-etc 0.2.0 checked into cvs.  This includes
> new sub-module called Admin that includes the add_user, delete_user, and
> change_password methods.  I eventually will add a config_user method as
> well, plus whatever else I feel like tossing in. :)
> One issue I'm having is with the change_password - no matter what I try, I
> always get "invalid password".  I tried with straight C as well, to no
> avail.  Anyway, I was hoping someone could take a look at the code and see
> if there's something obvious I'm missing.
> Also, I'm not real clear on when I should be casting LPCWSTR types to
> using MultiByteToWideChar().  One thing I did notice is that if you add a
> user as a WCHAR, you have to *find it* that way as well, so I'm a little
> concerned.
> Help, ideas, suggestions welcome.
> Dan
I tried your code in cvs.
After I added AllocWideLString to etc.h, it worked fine and I changed my
password successfully.

BTW, I will commit first version of the win32-mmap tomorrow.


Park Heesob

More information about the win32utils-devel mailing list