[C#]utilisation memoire partagee
Je suis sous Windows 2003 sever avec VS 2005 pro
J'essaye de mettre ne place une memoire partagee en C#, mais quand je tape le code suivant :
Code:
1 2 3 4 5 6
|
[DllImport("Kernel32.dll",EntryPoint="CreateFileMapping",
SetLastError=true,CharSet=CharSet.Unicode)]
internal static extern IntPtr CreateFileMapping(uint hFile,
SecurityAttributes lpAttributes, uint flProtect,
uint dwMaximumSizeHigh, uint dwMaximumSizeLow, string lpName); |
J'ai une erreur au niveau du IntPtr : "Class, delegate, enum, interface ou struct attendu" comment regler ca ?
NB : le code est place juste apres les using
Code:
1 2 3 4 5 6 7 8
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text; |