Desktop Functions: Smart Device Functions:
|
VirtualProtectEx (kernel32)
C# Signature:
[DllImport("kernel32.dll")] VB.Net Signature:
<DllImport("kernel32", CharSet:=CharSet.Auto, SetLastError:=True)> _ VB6 Signature:
Public Declare Function VirtualProtectEx Lib "kernel32" (ByVal hProcess As Long, ByVal lpAddress As Any, ByVal dwSize As Long, ByVal flNewProtect As Long, ByVal lpflOldProtect As Long) As Long User-Defined Types:None. Notes:
dwSize should be IntPtr because the underlying type is SIZE_T and varies with the platform. Tips & Tricks:Please add some!
In Essential C# 2.0 by Mark Michaelis, it is mentioned ref is to be used for lpflOldProtect rather than out because the callee can ignore the data passed with ref. Sample Code:Please add some! Alternative Managed API:Do you know one? Please contribute it! http://msdn.microsoft.com/en-us/library/aa366899(VS.85).aspx Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|