mozilla

Compare Revisions

Using js-ctypes

Change Revisions

Revision 59051:

Revision 59051 by enumeration on

Revision 328867:

Revision 328867 by Noitidart on

Title:
Using js-ctypes
Using js-ctypes
Slug:
Mozilla/js-ctypes/Using_js-ctypes
Mozilla/js-ctypes/Using_js-ctypes
Tags:
JavaScript, NeedsTechnicalReview, js-ctypes
"js-ctypes", "NeedsTechnicalReview", "JavaScript"
Content:

Revision 59051
Revision 328867
n125    <h3 id="When_in_doubt,_malloc()">n125    <h3 id="When_in_doubt.2C_malloc()">
nn171    <p>
172      ABOUT DECLARING THE FUNCTION
173    </p>
174    <p>
175      How we knew how to declare the function was by going to MSD
 >N site and looking at the MessageBoxW function. We see that it ne
 >eds to be defined like this:
176    </p>
177    <pre>
178<span style="color:Blue;">int</span> WINAPI MessageBox(
179  _In_opt_  HWND hWnd,
180  _In_opt_  LPCTSTR lpText,
181  _In_opt_  LPCTSTR lpCaption,
182  _In_      UINT uType
183);
184</pre>
185    <p>
186      So we read this article here on defining types and replicat
 >e it: https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/
 >Using_js-ctypes/Declaring_types?redirectlocale=en-US&amp;redirect
 >slug=js-ctypes%2FUsing_js-ctypes%2FDeclaring_types
187    </p>
t232    <h3 id="Calling_LibC_routines_on_Linux/POSIX">t249    <h3 id="Calling_LibC_routines_on_Linux.2FPOSIX">

Back to History