Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re(7): Can Win32::Daemon access remote shares?

by Jenda (Abbot)
on Apr 14, 2003 at 10:57 UTC ( [id://250258]=note: print w/replies, xml ) Need Help??


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

use Win32::Lanman; Win32::Lanman::GrantPrivilegeToAccount( Win32::NodeName(), SE_SERVICE_ +LOGON_NAME, ['Guest']);
and it worked fine. Sorry.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://250258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-12-12 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (65 votes). Check out past polls.