GetCurrencyFormat
C# Signature:
[DllImport("kernel32.dll")]
static extern int GetCurrencyFormat(uint Locale, uint dwFlags, string lpValue,
[In, MarshalAs(UnmanagedType.LPStruct)] lpFormat, IntPtr lpCurrencyStr, int cchCurrency);C# User-Defined Types
[StructLayout(LayoutKind.Sequential)]
public class CURRENCYFMT
{
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
public UInt32 uiNumDigits;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
public UInt32 uiLeadingZero;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
public UInt32 uiGrouping;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public String lpDecimalSep;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public String lpThousandSep;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
public UInt32 uiNegativeOrder;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
public UInt32 uiPositiveOrder;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public String lpCurrencySymbol;
};Notes:
Notes:
Notes:
Sample Code:
Sample Code:
Alternative Managed API:
Última actualización