Download Pelles C here: http://www.smorgasbordet.com/pellesc/
#pragma comment(lib, "msftedit.lib")
int CALLBACK REExtendedRegisterClass(void *p);
FARPROC pDllGetVersion = (FARPROC)REExtendedRegisterClass;
LIBRARY msftedit.dll
EXPORTS
_IID_IRichEditOle DATA
_IID_IRichEditOleCallback DATA
_IID_ITextServices DATA
_IID_ITextHost DATA
_IID_ITextHost2 DATA
_CreateTextServices@12
_REExtendedRegisterClass@0
_RichEditANSIWndProc@16
_RichEdit10ANSIWndProc@16
_SetCustomTextOutHandlerEx
_DllGetVersion@4
_RichEditWndProc@16
_RichListBoxWndProc@16
_RichComboBoxWndProc@16
LIBRARY MSFTEDIT.dll
EXPORTS
IID_IRichEditOle DATA
IID_IRichEditOleCallback DATA
IID_ITextServices DATA
IID_ITextHost DATA
IID_ITextHost2 DATA
CreateTextServices
REExtendedRegisterClass
RichEditANSIWndProc
RichEdit10ANSIWndProc
SetCustomTextOutHandlerEx
DllGetVersion
RichEditWndProc
RichListBoxWndProc
RichComboBoxWndProc HWND hwndEdit= CreateWindowEx(0, MSFTEDIT_CLASS, TEXT("Type here"),
ES_MULTILINE | WS_VISIBLE | WS_CHILD | WS_BORDER | WS_TABSTOP,
x, y, width, height,
hwndOwner, NULL, hinst, NULL);include HiddenPasswd.inc
IDC_EDIT equ 4001
PWD_CHAR equ 43 ; ASCII(*)=42
BUFF_SIZE equ 64
.data
DlgBox db 'DLGBOX',0
capt db 'Hidden text',0
.data?
hEdit dd ?
buffer db BUFF_SIZE dup(?)
.code
start:
invoke GetModuleHandle,0
xor ecx,ecx
invoke DialogBoxParam,eax,\
ADDR DlgBox,ecx,ADDR DlgProc,ecx
invoke ExitProcess,eax
DlgProc PROC hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD
.IF uMsg==WM_INITDIALOG
invoke GetDlgItem,hWnd,IDC_EDIT
mov hEdit,eax
invoke SendMessage,eax,EM_SETPASSWORDCHAR,PWD_CHAR,0
.ELSEIF uMsg==WM_CLOSE
invoke GetWindowText,hEdit,ADDR buffer,BUFF_SIZE
xor ecx,ecx
invoke MessageBox,ecx,ADDR buffer,ADDR capt,ecx
invoke EndDialog,hWnd,0
.ELSE
xor eax,eax
ret
.ENDIF
mov eax,TRUE
ret
DlgProc ENDP
END start
Page created in 0.023 seconds with 11 queries.