ANGRO Posted August 20, 2006 Share Posted August 20, 2006 $a = DllStructCreate("dword;int;dword;int;int;char[257];dword;uint;uint") DllStructSetData($a,1,292);dwSize alignment on 4 Bytes!!!!!!!! DllStructSetData($a,2,0);hwndOwner DllStructSetData($a,3,$RASEDFLAG_NewPhoneEntry);dwFlags DllStructSetData($a,4,0);xDlg DllStructSetData($a,5,0);yDlg DllStructSetData($a,6,0);szEntry DllStructSetData($a,7,0);dwError DllStructSetData($a,8,0);reserved DllStructSetData($a,9,0);reserved2 $Dll_X = DllCall("Rasdlg.dll", "int", "RasEntryDlg", "str", 0, "str", 0, "ptr", DllStructGetPtr($a)) MsgBox(48,"Error 2","Error: "&@error&" | "&"Size: "&DllStructGetSize($a)) Link to comment Share on other sites More sharing options...
Valuater Posted August 20, 2006 Share Posted August 20, 2006 Dunno much about Dll's... but maybe char[257] is Char(257) ? 8) Link to comment Share on other sites More sharing options...
Confuzzled Posted August 20, 2006 Share Posted August 20, 2006 Is http://windowssdk.msdn.microsoft.com/en-us...y/ms717393.aspx of use?What exactly are you trying to do? Have you considered using the COM functions instead and use the address book as an object? Link to comment Share on other sites More sharing options...
ANGRO Posted August 20, 2006 Author Share Posted August 20, 2006 (edited) ValuaterNo. Error DllStructCreateConfuzzledIn an example all works. DllStructSetData ($a, 1,292); dwSize it is aligned in hand-held.Why AutoIT it does not do itself ????Or I not correctly write a code. Edited August 20, 2006 by ANGRO Link to comment Share on other sites More sharing options...
Confuzzled Posted August 20, 2006 Share Posted August 20, 2006 Have you tried the RASDIAL utility? http://www.microsoft.com/resources/documen...l.mspx?mfr=true Link to comment Share on other sites More sharing options...
ANGRO Posted August 20, 2006 Author Share Posted August 20, 2006 The utility is not necessary to me. To me it is necessary WINAPI !!!!!!!!!!!It is error AutoIT or mine? Link to comment Share on other sites More sharing options...
Examiner Posted August 20, 2006 Share Posted August 20, 2006 Dunno much about Dll's... but maybe char[257] is Char(257) ? 8) Val... you don't know what your talking about...hehe!! Chr(257) 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now