Re: FW: Win32::API help

2006-03-09 Thread willem
Bullock, Howard A. wrote: Also, I checked the Win32::API docs and the MSDN web and could not find any information about memcpy that would lead me to: Win32::API('ntdll.dll', 'memcpy', 'PNN', 'V', '_cdecl'); where can I get more information about why this was constructed in this manner? memcpy

Win32::API help

2006-03-08 Thread Bullock, Howard A.
I am still trying to learn to use the Win32::API module. This attempt is listed below. I have the following questions: 1. The API wants the server name in UNICODE. I have looked at the Unicode module docs but do not understand how they relate to this task. How do I change my standard text name to

Re: Win32::API help

2006-03-08 Thread willem
Bullock, Howard A. wrote: 1. The API wants the server name in UNICODE. I have looked at the Unicode module docs but do not understand how they relate to this task. How do I change my standard text name to UNICODE for use with this function? use Encode qw(encode); printf(%s, encode(UCS-2LE,

RE: Win32::API help

2006-03-08 Thread Bullock, Howard A.
With the help of willem my new code follows. It returns zero (0) as the return code but the buffer does not appear to contain the expected data. Any additional insights would be appreciated. Results: Returncode = 0 tod_elapsedt = 388696 - this val always the same tod_msecs= 0 tod_hours=

Re: Win32::API help

2006-03-08 Thread willem
Bullock, Howard A. wrote: With the help of willem my new code follows. It returns zero (0) as the return code but the buffer does not appear to contain the expected data. Any additional insights would be appreciated. tod_elapsedt = 388696 - this val always the same if you read the msdn

FW: Win32::API help

2006-03-08 Thread Bullock, Howard A.
The list was originally omitted from the email. [Bullock, Howard A.] I have tried all sorts of interations. Perl 5.8.7.815 blows up every time I execute memcpy-Call. At this point I am not sure where to go. Can anyone confirm that this approach actually works? Also, I checked the Win32::API

Re: Win32::API Help

2006-02-18 Thread willem
Bullock, Howard A. wrote: Thanks to both of you for the feedback. Unfortunately, I could get neither to work. I did find a two call workaround using Win32::Lanman methods. In the long run I really would like to understand how to get this and other API calls to works. Thanks again.

Re: Win32::API Help

2006-02-16 Thread Sisyphus
- Original Message - From: Bullock, Howard A. [EMAIL PROTECTED] To: perl-win32-users perl-win32-users@listserv.ActiveState.com Sent: Thursday, February 16, 2006 1:29 AM Subject: Win32::API Help I can't seems to get the API call to work. Can someone give me some guidance

RE: Win32::API Help

2006-02-16 Thread Bullock, Howard A.
] Sent: Thursday, February 16, 2006 7:09 AM Subject: Re: Win32::API Help -- Let me know if that gets it for you. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / )// // DBE CollectiblesMailto:[EMAIL PROTECTED

Re: Win32::API Help

2006-02-16 Thread willem
Sisyphus wrote: my $DsEnumerateDomainTrusts = new Win32::API('Netapi32', 'DsEnumerateDomainTrusts', 'PNPP', 'N'); in my netapi32.dll there is no DsEnumerateDomainTrusts, it contains a DsEnumerateDomainTrustsW and DsEnumerateDomainTrustsA version of this call. willem

RE: Win32::API Help

2006-02-16 Thread Bullock, Howard A.
Willem Wrote: in my netapi32.dll there is no DsEnumerateDomainTrusts, it contains a DsEnumerateDomainTrustsW and DsEnumerateDomainTrustsA version of this call. From the Win32::API docs: Also note that many Win32 APIs are exported twice,

RE: Win32::API Help

2006-02-16 Thread Allegakoen, Justin Devanandan
---8-- in my netapi32.dll there is no DsEnumerateDomainTrusts, it contains a DsEnumerateDomainTrustsW and DsEnumerateDomainTrustsA version of this call. From the Win32::API docs: Also note that many Win32 APIs are exported

Win32::API Help

2006-02-15 Thread Bullock, Howard A.
I can't seems to get the API call to work. Can someone give me some guidance? use Win32::API; use strict; my ($domains, $domaincount); my $DsEnumerateDomainTrusts = new Win32::API('Netapi32', 'DsEnumerateDomainTrusts', 'PNPP', 'N'); if(not defined $DsEnumerateDomainTrusts) { die Can't import

More Win32::API Help....

2004-11-17 Thread Paul Sobey
Hi All, Can anyone see what's wrong with the following? Doesn't seem to matter what filename I pass in, I still get the same result, error 123 (The filename, directory name, or volume label syntax is incorrect.). As far as I can tell from the debug output, the structs are getting set up

Re: More Win32::API Help....

2004-11-17 Thread $Bill Luebkert
Paul Sobey wrote: Hi All, Can anyone see what's wrong with the following? Doesn't seem to matter what filename I pass in, I still get the same result, error 123 (The filename, directory name, or volume label syntax is incorrect.). As far as I can tell from the debug output, the structs

RE: More Win32::API Help....

2004-11-17 Thread Paul Sobey
You're a genius - thankyou. I wonder why the prototype method doesn't work? Seems a bit frustrating! P. -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 13:37 To: Paul Sobey Cc: [EMAIL PROTECTED] Subject: Re: More Win32::API Help Paul

Re: More Win32::API Help....

2004-11-17 Thread $Bill Luebkert
Paul Sobey wrote: You're a genius - thankyou. I wonder why the prototype method doesn't work? Seems a bit frustrating! That whole set of modules is a bit flakey for my taste. I made lots of quick changes to keep warnings from popping up and had lots of trouble with structs and such. You

RE: Win32::API help

2003-08-27 Thread Jangale V-S SPEL-TIT
Thanks Bill, It works ! Thanks a lot again ! With Best Regards, V.S. Jangale ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs