Ejemplo n.º 1
0
 internal static extern int OCIEnvCreate(out IntPtr envhpp,
     [MarshalAs (UnmanagedType.U4)] OciEnvironmentMode mode,
     IntPtr ctxp,
     IntPtr malocfp,
     IntPtr ralocfp,
     IntPtr mfreep,
     int xtramem_sz,
     IntPtr usrmempp);
Ejemplo n.º 2
0
		public OciEnvironmentHandle (OciEnvironmentMode mode)
			: base (OciHandleType.Environment, null, IntPtr.Zero)
		{
			IntPtr newHandle = IntPtr.Zero;
			OciCalls.OCIEnvCreate (out newHandle, 
						mode, 
						IntPtr.Zero, 
						IntPtr.Zero, 
						IntPtr.Zero, 
			 			IntPtr.Zero, 
						0, 
						IntPtr.Zero);

			SetHandle (newHandle);
		}
Ejemplo n.º 3
0
 internal static int OCIEnvCreate(out IntPtr envhpp,
     OciEnvironmentMode mode,
     IntPtr ctxp,
     IntPtr malocfp,
     IntPtr ralocfp,
     IntPtr mfreep,
     int xtramem_sz,
     IntPtr usrmempp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIEnvCreate", "OCI");
     #endif
     return OciNativeCalls.OCIEnvCreate (out envhpp, mode, ctxp, malocfp, ralocfp, mfreep,
         xtramem_sz, usrmempp);
 }
Ejemplo n.º 4
0
        public OciEnvironmentHandle(OciEnvironmentMode mode)
            : base(OciHandleType.Environment, null, IntPtr.Zero)
        {
            IntPtr newHandle = IntPtr.Zero;

            OciCalls.OCIEnvCreate(out newHandle,
                                  mode,
                                  IntPtr.Zero,
                                  IntPtr.Zero,
                                  IntPtr.Zero,
                                  IntPtr.Zero,
                                  0,
                                  IntPtr.Zero);

            SetHandle(newHandle);
        }
Ejemplo n.º 5
0
		internal static int OCIEnvCreate (out IntPtr envhpp,
			OciEnvironmentMode mode,
			IntPtr ctxp,
			IntPtr malocfp,
			IntPtr ralocfp,
			IntPtr mfreep,
			int xtramem_sz,
			IntPtr usrmempp)
		{
			#if TRACE
			Trace.WriteLineIf(traceOci, "OCIEnvCreate", "OCI");
			#endif
			return OciNativeCalls.OCIEnvCreate (out envhpp, mode, ctxp, malocfp, ralocfp, mfreep,
				xtramem_sz, usrmempp);
		}