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
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
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,
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=
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
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
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.
- 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
]
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
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
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,
---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
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
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
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
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
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
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
18 matches
Mail list logo