| parrotcode: Win32 Example | |
| Contents | Examples | 

examples/nci/win32api.pir - Win32 Example

% ./parrot examples/nci/win32api.pir

This example calls the MessageBoxA Win32 API using the Parrot Native Call Interface. The function is defined as:-
    int MessageBox(
        HWND hWnd,
        LPCTSTR lpText,
        LPCTSTR lpCaption,
        UINT uType
    );

|  |   |