Skip to content

Instantly share code, notes, and snippets.

@Criteo-dotnet-blog
Last active June 28, 2017 09:50
Show Gist options
  • Select an option

  • Save Criteo-dotnet-blog/88bb2d8de1238c5141d02463b3ea90e6 to your computer and use it in GitHub Desktop.

Select an option

Save Criteo-dotnet-blog/88bb2d8de1238c5141d02463b3ea90e6 to your computer and use it in GitHub Desktop.
[DllExport("tks")]
public static void tks(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
{
    OnTkState(client, args);
}
[DllExport("tkstate")]
public static void tkstate(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
{
    OnTkState (client, args);
}
[DllExport("tkState")]
public static void tkState(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
{
    OnTkState (client, args);
}
public static void OnTkState (IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
{
    // Must be the first thing in our extension.
    if (!InitApi(client))
        return;
    ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment