1)
void CopyMemory (IntPtr, IntPtr, int) void Utilities.RtlMoveMemory (IntPtr, IntPtr, uint) kernel32.dll
Can be replaced with Marshal.Copy and a byte array as buffer
2)
Process GetProcessForActiveApplication () IntPtr Utilities.GetForegroundWindow () user32.dll
Process GetProcessForActiveApplication () IntPtr Utilities.GetWindowThreadProcessId (IntPtr, IntPtr&) user32.dll
Used to check whether the editor is the active application.
Checking ContainsFocus on main form and owned forms should be the same. Requires that ShowDialog uses the main form as owner.
3)
Control GetControlThatHasFocus () IntPtr Utilities.GetFocus () user32.dll
Can be replaced with Control.Focused
4)
bool Play (AudioClip) uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
bool Play (AudioClip) uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
bool Play (AudioClip) uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
bool IsPlaying () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
int GetPositionMs () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
int GetLengthMs () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
void Pause () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
void Resume () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
void Stop () uint MidiPlayer.mciSendString (string, StringBuilder, int, IntPtr) winmm.dll
WinMM based midi playback. Can be replaced with fmod.
5)
Delegate GetManagedDelegateForFunction (string, Type, bool) IntPtr NativeProxy.GetProcAddress (IntPtr, string) kernel32.dll
void Dispose () bool NativeProxy.FreeLibrary (IntPtr) kernel32.dll
void .ctor (string) IntPtr NativeProxy.LoadLibrary (string) kernel32.dll
IntPtr GetWindowHandle (IAGSEditorForNativePlugins) IntPtr NativePluginCallbacks.GetActiveWindow () User32.DLL
Native plugin interop.
6)
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () int NativeProxy.GetPrivateProfileString (string, string, string, StringBuilder, int, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () int NativeProxy.GetPrivateProfileString (string, string, string, StringBuilder, int, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
void WriteConfigFile () Int64 NativeProxy.WritePrivateProfileString (string, string, string, string) kernel32.dll
Config reader/writer. Can be replaced with a managed ini file reader/writer.
7)
bool IsShiftPressed () Int16 NativeProxy.GetAsyncKeyState (int) User32.dll
bool IsControlPressed () Int16 NativeProxy.GetAsyncKeyState (int) User32.dll
Enabling KeyPreview on the main form and manually keep track whether shift or control key is down.
?)
void SetTreeViewEditText (TreeView, string) int Hacks.SendMessage (IntPtr, int, int, IntPtr) user32
void SetTreeViewEditText (TreeView, string) int Hacks.SendMessage (IntPtr, int, int, IntPtr) user32
void SendCommandAndSwitchWindows (string) bool NativeProxy.SetForegroundWindow (IntPtr) user32.dll
void ListenForClients (Object) SafeFileHandle NamedPipesServer.CreateNamedPipe (string, uint, uint, uint, uint, uint, uint, IntPtr) kernel32.dll
void ListenForClients (Object) int NamedPipesServer.ConnectNamedPipe (SafeFileHandle, IntPtr) kernel32.dll