in reply to Re: Re: Re: Re: Re: Re: Can Win32::Daemon access remote shares?
in thread Can Win32::Daemon access remote shares?
It's Win32::Lanman! If you do use Win32::LanMan the module doesn't initialize properly and doesn't export the constants!
On the other hand I did have the code a little wrong. I now tried
and it worked fine. Sorry.use Win32::Lanman; Win32::Lanman::GrantPrivilegeToAccount( Win32::NodeName(), SE_SERVICE_ +LOGON_NAME, ['Guest']);
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature
|
|---|