SQLAllocEnv

[DllImport("odbc32.dll", SetLastError = true)]
public static extern int SQLAllocEnv(
   out IntPtr phenv
);

Microsoft documentation: Linkarrow-up-right

Last updated