{"action":"created","issue":{"url":"https://api.github.com/repos/martona/mhook/issues/11","repository_url":"https://api.github.com/repos/martona/mhook","labels_url":"https://api.github.com/repos/martona/mhook/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/martona/mhook/issues/11/comments","events_url":"https://api.github.com/repos/martona/mhook/issues/11/events","html_url":"https://github.com/martona/mhook/issues/11","id":87283250,"node_id":"MDU6SXNzdWU4NzI4MzI1MA==","number":11,"title":"Hook OpenPrinterW failed under X64 platform ","user":{"login":"lhg19202212","id":12842904,"node_id":"MDQ6VXNlcjEyODQyOTA0","avatar_url":"https://avatars0.githubusercontent.com/u/12842904?v=4","gravatar_id":"","url":"https://api.github.com/users/lhg19202212","html_url":"https://github.com/lhg19202212","followers_url":"https://api.github.com/users/lhg19202212/followers","following_url":"https://api.github.com/users/lhg19202212/following{/other_user}","gists_url":"https://api.github.com/users/lhg19202212/gists{/gist_id}","starred_url":"https://api.github.com/users/lhg19202212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhg19202212/subscriptions","organizations_url":"https://api.github.com/users/lhg19202212/orgs","repos_url":"https://api.github.com/users/lhg19202212/repos","events_url":"https://api.github.com/users/lhg19202212/events{/privacy}","received_events_url":"https://api.github.com/users/lhg19202212/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-06-11T09:44:15Z","updated_at":"2018-11-12T09:39:35Z","closed_at":null,"author_association":"NONE","body":"Error message:  ANOMALY: use of REX.w is meaningless (default operand size is 64).\nMy Test Code:\ntypedef BOOL  (WINAPI\\* PFNOPENPRINTERW)(\n                                        LPWSTR             pPrinterName,\n                                         LPHANDLE            phPrinter,\n                                        LPPRINTER_DEFAULTSW pDefault\n                                        );\n\nPFNOPENPRINTERW fpOpenPrinterW=(PFNOPENPRINTERW)GetProcAddress(LoadLibraryW(L\"winspool.drv\"), \"OpenPrinterW\");\n\nBOOL\nWINAPI\nMyOpenPrinterW(\n               LPWSTR    pPrinterName,\n               LPHANDLE  phPrinter,\n               LPPRINTER_DEFAULTSW pDefault)\n\n{\n       BOOL Status;\n    char temp[MAX_PATH]={0x00};\n    GetModuleFileNameA(NULL,temp,MAX_PATH);\n    printf(\"%s[%d] m_sProcessName=%s \\n\",**FILE**,**LINE**,temp);\n       Status = fpOpenPrinterW (pPrinterName, phPrinter, pDefault);  \n    return Status;\n}\n\nint wmain(int argc, WCHAR\\* argv[])\n{\n    HANDLE hProc = NULL;\n    HANDLE m_handle=NULL;\n    if(Mhook_SetHook((PVOID_)&fpOpenPrinterW, MyOpenPrinterW))\n    {\n        OpenPrinterW(L\"\\Brother MFC-7860DN Printer\",&m_handle,NULL);\n        if(m_handle)\n            CloseHandle(m_handle);  \n        Mhook_Unhook((PVOID_)&fpOpenPrinterW);\n    }else{\n        printf(\"%s[%d].OpenPrinterW hook fail\\n\",**FILE**,**LINE**);\n    }  \n    return 0;\n}\n"},"comment":{"url":"https://api.github.com/repos/martona/mhook/issues/comments/437815780","html_url":"https://github.com/martona/mhook/issues/11#issuecomment-437815780","issue_url":"https://api.github.com/repos/martona/mhook/issues/11","id":437815780,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzgxNTc4MA==","user":{"login":"poizan42","id":308129,"node_id":"MDQ6VXNlcjMwODEyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/308129?v=4","gravatar_id":"","url":"https://api.github.com/users/poizan42","html_url":"https://github.com/poizan42","followers_url":"https://api.github.com/users/poizan42/followers","following_url":"https://api.github.com/users/poizan42/following{/other_user}","gists_url":"https://api.github.com/users/poizan42/gists{/gist_id}","starred_url":"https://api.github.com/users/poizan42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poizan42/subscriptions","organizations_url":"https://api.github.com/users/poizan42/orgs","repos_url":"https://api.github.com/users/poizan42/repos","events_url":"https://api.github.com/users/poizan42/events{/privacy}","received_events_url":"https://api.github.com/users/poizan42/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T09:39:35Z","updated_at":"2018-11-12T09:39:35Z","author_association":"CONTRIBUTOR","body":"@Bonjour123 see #17"}}
{"actor":{"display_login":"poizan42"}}