CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums


Writes a 16-bit signed integer value into unmanaged memory.

Namespace: ?System.Runtime.InteropServices
Assembly: ?mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub WriteInt16 ( _
	ptr As IntPtr, _
	ofs As Integer, _
	val As Short _
)
C#
public static void WriteInt16(
	IntPtr ptr,
	int ofs,
	short val
)
Visual C++
public:
static void WriteInt16(
	IntPtr ptr, 
	int ofs, 
	short val
)
JavaScript
System.Runtime.InteropServices.Marshal.writeInt16 = function(ptr, ofs, val);

Parameters

ptr
Type: System..::.IntPtr
The base address in unmanaged memory from which to write.
ofs
Type: System..::.Int32
An additional byte offset, added to the ptr parameter before writing.
val
Type: System..::.Int16
The value to write.

Exceptions

ExceptionCondition
System..::.AccessViolationExceptionptr is not a recognized format. -or-ptr is null. -or-ptr is invalid.

See Also



Free Download:
   
  Privacy | Contact Us
All Times Are GMT