Recent Posts

Pages: [1] 2 3 ... 10
1
The Campus / Re: GetOpenFileName Hook
« Last post by ragdog on Today at 05:57:14 AM »
Thank you Sixl

I forgot my old question

Here is a working code

Code: [Select]
_WIN32_WINNT equ  0500h

OPENFILENAME_ struct
lStructSize DWORD ?
hwndOwner HWND ?
hInstance HINSTANCE ?
lpstrFilter LPSTR ?
lpstrCustomFilter LPSTR ?
nMaxCustFilter DWORD ?
nFilterIndex DWORD ?
lpstrFile LPSTR ?
nMaxFile DWORD ?
lpstrFileTitle LPSTR ?
nMaxFileTitle DWORD ?
lpstrInitialDir LPSTR ?
lpstrTitle LPSTR ?
Flags DWORD ?
nFileOffset WORD ?
nFileExtension WORD ?
lpstrDefExt LPSTR ?
lCustData LPARAM ?
lpfnHook LPOFNHOOKPROC ?
lpTemplateName LPSTR ?
ifdef _MAC
lpEditInfo LPEDITMENU ?
lpstrPrompt LPSTR ?
endif
if (_WIN32_WINNT ge 0500h)
pvReserved DWORD ?
dwReserved DWORD ?
FlagsEx         DWORD ?
endif
OPENFILENAME_ ends

Code: [Select]
invoke RtlZeroMemory,addr ofn,sizeof ofn
mov ofn.lStructSize,sizeof OPENFILENAME_
m2m ofn.hwndOwner,hWnd
m2m ofn.hInstance,hInstance
mov ofn.lpfnHook,offset DlgHook
mov ofn.lpstrTitle,chr$ ("  Select a file ...")
mov ofn.lpstrFilter, offset szFilter
mov ofn.lpstrFile, offset buffer
mov ofn.nMaxFile, sizeof buffer
if (_WIN32_WINNT ge 0500h)
mov ofn.pvReserved,NULL;
mov ofn.dwReserved, 0;
mov ofn.FlagsEx, 0;
endif
mov ofn.Flags,  OFN_EXPLORER or OFN_ENABLEHOOK
invoke GetOpenFileName,addr ofn   
.if (!eax)
;not selected
ret
.endif

Callback

Code: [Select]
DlgHook proc uses esi edi ebx hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
    mov eax,uMsg
    .if eax==WM_INITDIALOG

   .elseif eax == WM_NOTIFY

    .elseif eax==WM_CLOSE
        invoke  DestroyWindow, hWin
    .else
            mov eax, FALSE
            ret
    .endif
    mov eax, TRUE
    ret

DlgHook endp

But is not original Vista dialog, Is there any solution for this??

2
UASM Assembler Development / Re: Intel SHA - Instruction Set Extensions
« Last post by habran on Today at 05:46:38 AM »
we have added Pseudo-Op, when using it we don't need imm, just like this:
Code: [Select]
PCLMULLQLQDQ xmm1, xmm2
PCLMULHQLQDQ xmm1, xmm2
PCLMULLQHQDQ xmm1, xmm2
PCLMULHQHQDQ xmm1, xmm2
VPCLMULLQLQDQ xmm1, xmm2,xmm3
VPCLMULHQLQDQ xmm1, xmm2,xmm3
VPCLMULLQHQDQ xmm1, xmm2,xmm3
VPCLMULHQHQDQ xmm1, xmm2,xmm3
SDE debugger doesn't recognise Pseudo-OP but I have MSVS 2013
maybe MSVS 2017 SDE does:
Code: [Select]
00007ff64a421807 66 0F 3A 44 CA 00                pclmulqdq            xmm1, xmm2, 0x0 
00007ff64a42180d 66 0F 3A 44 CA 01                pclmulqdq            xmm1, xmm2, 0x1 
00007ff64a421813 66 0F 3A 44 CA 10                pclmulqdq            xmm1, xmm2, 0x10 
00007ff64a421819 66 0F 3A 44 CA 11                pclmulqdq            xmm1, xmm2, 0x11 
00007ff64a42181f C4 E3 69 44 CB 00                vpclmulqdq            xmm1, xmm2, xmm3, 0x0 
00007ff64a421825 C4 E3 69 44 CB 01                vpclmulqdq            xmm1, xmm2, xmm3, 0x1 
00007ff64a42182b C4 E3 69 44 CB 10                vpclmulqdq            xmm1, xmm2, xmm3, 0x10 
00007ff64a421831 C4 E3 69 44 CB 11                vpclmulqdq            xmm1, xmm2, xmm3, 0x11
3
MasmBasic & the RichMasm IDE / Re: A guide to the RichMasm editor
« Last post by LordAdef on Today at 04:44:43 AM »
hi Johen,

I thought it would be a great side project to write a plug in for RichMasm. This way I could dig into MasmBasic and also contribute to Richmasm  :icon_redface:.

Would you explain how this plugin works and what can I access?
4
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by Siekmanski on January 23, 2018, 08:30:24 PM »
It is running well now.  :t
5
The Campus / Re: GetOpenFileName Hook
« Last post by six_L on January 23, 2018, 06:52:19 PM »
hi,ragdog
this was an old question. (http://www.masmforum.com/board/index.php?topic=14214.0).
Code: [Select]
x_OPENFILENAME STRUCT
lStructSize DWORD ?
hwndOwner HWND ?
hInstance HINSTANCE ?
lpstrFilter LPSTR ?
lpstrCustomFilter LPSTR ?
nMaxCustFilter DWORD ?
nFilterIndex DWORD ?
lpstrFile LPSTR ?
nMaxFile DWORD ?
lpstrFileTitle LPSTR ?
nMaxFileTitle DWORD ?
lpstrInitialDir LPSTR ?
lpstrTitle LPSTR ?
Flags DWORD ?
nFileOffset WORD ?
nFileExtension WORD ?
lpstrDefExt LPSTR ?
lCustData LPARAM ?
lpfnHook LPOFNHOOKPROC ?
lpTemplateName LPSTR ?
pvReserved DWORD ?
dwReserved DWORD ?
FlagsEx DWORD ?
x_OPENFILENAME ENDS
Quote
FlagsEx
Type: DWORD

A set of bit flags you can use to initialize the dialog box. Currently, this member can be zero or the following flag.

Value   Meaning
OFN_EX_NOPLACESBAR
0x00000001
If this flag is set, the places bar is not displayed. If this flag is not set, Explorer-style dialog boxes include a places bar containing icons for commonly-used folders, such as Favorites and Desktop.

Remarks
For compatibility reasons, the Places Bar is hidden if Flags is set to OFN_ENABLEHOOK and lStructSize is OPENFILENAME_SIZE_VERSION_400.

i used the x_OPENFILENAME STRUCT, my testing codes was either crashed or noactive.
i'll try to test again.
6
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by mabdelouahab on January 23, 2018, 05:07:09 PM »
LordAdef
The same Font appeared when I tried the game at Win 7 X64 Arabic, I think the problem is in Microsoft Windows Arabic version
7
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by LordAdef on January 23, 2018, 04:55:13 PM »
Works well in win 8.1, :t
 but the same funny font appears. :(

Yeeeees, great news mabdelouahab!!

The computer I´ve been working with these days doesn´t have Olly installed. I still need to check this out.

But I´m not too concern since all these fonts are only for development. They will all be replaced by graphics and controls, like what I just did with the fuel gauge.

It will be a pleasure if you stick around and follow up. Cheers Alex
8
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by mabdelouahab on January 23, 2018, 04:38:53 PM »
Works well in win 8.1, :t
 but the same funny font appears. :(
9
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by jj2007 on January 23, 2018, 02:53:04 PM »
Works great on Win7 :t
10
MasmBasic & the RichMasm IDE / Re: my 100% Assembly game development
« Last post by LordAdef on January 23, 2018, 01:33:04 PM »
So, This is a working version, tested on my win7 and win10. hopefully it will also work in win8.

It shows the Fuel gauge with a working needle (still visually awful though). As I mentioned, it uses Marinus´FPU code.
It also shows the beginning of what will become a minimap control.

Please let me know guys, please.
Fingers crossed for win8!

ps: I´m amazed I could even run it in win7...... I made a series of bad mistakes, including an out of boundery byte manipulation, and not preserving EDI. These were the main issues there
Pages: [1] 2 3 ... 10