Log in

View Full Version : Calling Native Functions



LolL
04-07-2012, 12:19 AM
How does one call a native function from within Simba?

Specifically, I'm interested in BlockInput, GetFocus (http://msdn.microsoft.com/en-us/library/windows/desktop/ms646294%28v=vs.85%29.aspx), and SetFocus.

nielsie95
04-08-2012, 10:16 PM
AllowSysCalls will have to be on in the settings:


function GetModuleFileName(
Module: Cardinal; FileName: TCharArray; Size: Cardinal
): Cardinal; external 'GetModuleFileNameA@kernel32 stdcall';


You can see other examples in the associate and CRov extensions.