pinvoke
ReadProcessMemory and WriteProcessMemory Gone Wrong
I am creating this memory editor, but the subroutine ReadProcessMemory fails; so does WriteProcessMemory. I have tried to get the last error by using the GetLastError subroutine but it returns 0 which[详细]
2023-03-24 22:21 分类:问答How to detect differentiate external wm_close vs internally triggered by form.close()
This is a C# app that sits in the tray as a notifyicon and does its stuff until someone right clicks it and selects close (menu option) or it gets a wm_close from an external app or by the operating s[详细]
2023-03-24 19:50 分类:问答Odd Errors from PInvoke struct/function
Im currently writing a C# wrapper for a C++ API, but a specific struct and a function that relies on this struct have been giving very strange errors when debugging.[详细]
2023-03-24 00:23 分类:问答SendInput and 64bits
Below is an extract of some code I am using to simulate key presses via the SendInput API. This works correctly if I set my applicat开发者_如何学Cion to compile for an x86 CPU, but doesn\'t work for x[详细]
2023-03-23 13:14 分类:问答C/C++ functions returning NaN in MonoTouch when p/invoked
I have two source files: File.h: class Numbers { public: int Get10(); int Get192(); float GetFloat(); }; File.cpp:[详细]
2023-03-23 03:19 分类:问答Using P/invoke to improve performance, feasible or just wishful thinking?
This is a question I probably should have asked sooner but didn\'t in my rush to have fun with p/invoke type stuff in MonoTouch.[详细]
2023-03-23 03:10 分类:问答.NET Portability Warning: CA1901 PInvoke Declarations Should Be Portable
When I add the following lines into my code [DllImport(\"user32.dll\")] static extern void keybd_event(byte key, byte scan, int flags, int extraInfo);[详细]
2023-03-22 06:57 分类:问答Is .NET PInvoke available on Linux and Mac OS X platforms?
Platform Invokation in .NET Framework available on Windows. [DllImport(\"user32.dll\", CharSet=CharSet.Auto)][详细]
2023-03-22 04:19 分类:问答Hook on Windows Installer messages
I wonder if there is any win32 API regarding the user install software on his machine ? Is there is any event the windows fire when a user start to install software ?[详细]
2023-03-21 19:08 分类:问答TranslateAccelerator succeeds, but WM_COMMAND messages are not showing up
I am writing a .NET wrapper around Win32 hooks which buffers WM_CHAR messages and allows events such as key presses, key releases, and accelerator keystrokes to be subscribed to. Everything is in work[详细]
2023-03-21 05:46 分类:问答