Closed
Bug 586222
Opened 15 years ago
Closed 15 years ago
the ctypes api doesnt work on the nightly build installed at the 11.08.10, retried on the 4.0b2
Categories
(Core :: js-ctypes, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: kk14478, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b2) Gecko/20100720 Firefox/4.0b2
Build Identifier: Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b2) Gecko/20100720 Firefox/4.0b2 (update deactivated!!!)
this code doesnt work (from MDC doc)
Components.utils.import("resource://gre/modules/ctypes.jsm");
var lib = ctypes.open("C:\\WINDOWS\\system32\\user32.dll");
/* Declare the signature of the function we are going to call */
var msgBox = lib.declare("MessageBoxW",
ctypes.stdcall_abi,
ctypes.int32_t,
ctypes.int32_t,
ctypes.jschar.ptr,
ctypes.jschar.ptr,
ctypes.int32_t);
var MB_OK = 3;
var ret = msgBox(0, "Hello World", "FRITZ!Box Addon", MB_OK);
lib.close();
Reproducible: Always
Steps to Reproduce:
1. run this code in an addon script
2.
3.
Actual Results:
it is working on the 4.0b2 BUT NOT on the nightly build frm the 10.08.10
Expected Results:
should work the same
Comment 1•15 years ago
|
||
Found during triage. moving to a (hopefully) more appropriate component.
Component: Developer Tools → General
Product: Firefox → SeaMonkey
QA Contact: developer.tools → general
Comment 2•15 years ago
|
||
I'm pretty sure that SeaMonkey doesn't use this User Agent:
Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b2)
Gecko/20100720 Firefox/4.0b2
Component: General → js-ctypes
Product: SeaMonkey → Core
QA Contact: general → js-ctypes
Version: unspecified → Trunk
Comment 3•15 years ago
|
||
(In reply to comment #0)
> /* Declare the signature of the function we are going to call */
> var msgBox = lib.declare("MessageBoxW",
> ctypes.stdcall_abi,
Use ctypes.winapi_abi.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•