flat assembler
Message board for the users of flat assembler.
Index
> Main > _WIN32_WINNT (?) |
Author |
|
ouadji 21 Jun 2011, 23:08
how find the value of "_WIN32_WINNT" ? http://msdn.microsoft.com/en-us/library/ms646839%28v=vs.85%29.aspx Code: sf_ OPENFILENAME invoke GetOpenFileName,sf_ ;from MSDN ;--------- typedef struct tagOFN { DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; ..... ..... LPCTSTR lpstrDefExt; LPARAM lCustData; LPOFNHOOKPROC lpfnHook; LPCTSTR lpTemplateName; #if (_WIN32_WINNT >= 0x0500) ;<------------------ ?? void *pvReserved; DWORD dwReserved; DWORD FlagsEx; #endif } OPENFILENAME, *LPOPENFILENAME; |
|||
21 Jun 2011, 23:08 |
|
LocoDelAssembly 21 Jun 2011, 23:13
Check http://msdn.microsoft.com/en-us/library/aa383745%28VS.85%29.aspx
In your particular example, it you decide to use those three fields then your code with need Windows 2000 at minimum. |
|||
21 Jun 2011, 23:13 |
|
revolution 21 Jun 2011, 23:17
Code: invoke GetVersionEx,addr buff mov edx,[buff+OSVERSIONINFO.dwMajorVersion] mov eax,[buff+OSVERSIONINFO.dwMinorVersion] |
|||
21 Jun 2011, 23:17 |
|
LocoDelAssembly 21 Jun 2011, 23:38
If you don't use the additional fields on WinXP it is OK, because you'll also pass a lower lStructSize value and hence no attempts to fill the "ghost" fields will be performed by the API function (i.e. the API has backwards compatibility to older software).
|
|||
21 Jun 2011, 23:38 |
|
ouadji 21 Jun 2011, 23:52
Indeed, I had not thought of that, well done Loco ! (thank you) Quote: because you'll also pass a lower lStructSize value and hence no attempts to fill the "ghost" fields will be performed by the API function |
|||
21 Jun 2011, 23:52 |
|
ouadji 22 Jun 2011, 00:00
it works, the places bar is not displayed Code: sf_ OPENFILENAME dd 0 ; the three additional fields dd 0 dd 1 ;<----------- FlagsEx mov [sf_.lStructSize],sizeof.OPENFILENAME \ \ + 3*4 ;<-------- ! FlagsEx / OFN_EX_NOPLACESBAR (0x00000001) If this flag is set, the places bar is not displayed |
|||
22 Jun 2011, 00:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.