I lied, you don't use the Send API you use the SetWindowLong API. To get more information on constants and declarations get APIViewer.
To do what you want you need these declarations (declared in C#)
private const int ES_PASSWORD = 0x20&;
[DllImport("user32.dll", EntryPoint="GetWindowLongA")]
private static extern int GetWindowLong (
int hwnd,
int nIndex);
[DllImport("user32.dll", EntryPoint="SetWindowLongA")]
private static extern int SetWindowLong (
int hwnd,
int nIndex,
int dwNewLong);
1) Get the window handle for the edit control
2) Get the window long for the edit control
3) Set the window long for the edit control with the ES_PASSWORD value
4) Test
5) Repeat if you come up with errors (or give up if it doesn't work with DBP
)
Regards,
1tg46
Reality is an illusion brought on by the absence of alcohol-do not take literally