{"action":"closed","issue":{"url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/830","labels_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/830/comments","events_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/830/events","html_url":"https://github.com/Jessecar96/SteamBot/issues/830","id":114138231,"number":830,"title":"SteamBot's CtrlHandler might be using incorrect types","user":{"login":"WildCard65","id":5003283,"avatar_url":"https://avatars.githubusercontent.com/u/5003283?v=3","gravatar_id":"","url":"https://api.github.com/users/WildCard65","html_url":"https://github.com/WildCard65","followers_url":"https://api.github.com/users/WildCard65/followers","following_url":"https://api.github.com/users/WildCard65/following{/other_user}","gists_url":"https://api.github.com/users/WildCard65/gists{/gist_id}","starred_url":"https://api.github.com/users/WildCard65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WildCard65/subscriptions","organizations_url":"https://api.github.com/users/WildCard65/orgs","repos_url":"https://api.github.com/users/WildCard65/repos","events_url":"https://api.github.com/users/WildCard65/events{/privacy}","received_events_url":"https://api.github.com/users/WildCard65/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T20:25:47Z","updated_at":"2015-10-29T20:39:07Z","closed_at":"2015-10-29T20:39:07Z","body":"After going through the c++ version of Window's SetConsoleCtrlHandler, the method it takes has the following signature:\r\ntypedef\r\nBOOL\r\n(WINAPI *PHANDLER_ROUTINE)(\r\n    _In_ DWORD CtrlType\r\n    );\r\n\r\nWhere BOOL = int\r\nand DWORD = unsigned long\r\n\r\nbut in SteamBot, the following types is used in the matching delegate:\r\nbool instead of int\r\nEnum instead of unsigned long\r\n\r\nIDK how well C#'s marshal stuff is going to translate between the api well."}}