الرجاء القاء نظرة علي هذا النص المأخوذ من "Win32.hlp"
الان ما اريد معرفته ما الذي تعنيه هذه المصطلحات
1-lpbi
2-FAR *psfi
3-psfi
واين يتم في العادة التصريح عن المتغيرات التي تاخذ هذة القيم
مثلا لو كان عندنا Proc واردنا استخدام الدالة SHGetFileInfo اين يتم تعريف المتغير من النوع
SHFILEINFO
هل في نفس جسم الاجراء
او
في قسم Data?
او
في قسم Data
---------------------
كذلك عندي سؤال اخر : متي نستخدم Addr ومتي نستخدم Offset مع العلم انه في بعض الحالات
لا يمكن وضع احداهما مكان الأخر
----------------------
معلش استحملوني سؤال اخر
ما الفرق بين
mov eax,offset var1
lea eax,var
------------------------تابع للسؤال الاول----
Displays a dialog box that enables the user to select a shell folder. WINSHELLAPI LPITEMIDLIST WINAPI SHBrowseForFolder( LPBROWSEINFO lpbi ); Parameters lpbi Pointer to a BROWSEINFO structure that contains information used to display the dialog box. -------------------------------------------------------------------------------------------------------------------------------------------------- Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root. WINSHELLAPI DWORD WINAPI SHGetFileInfo( LPCTSTR pszPath, DWORD dwFileAttributes, SHFILEINFO FAR *psfi, UINT cbFileInfo, UINT uFlags ); Parameters pszPath Pointer to a buffer that contains the path and filename. Both absolute and relative paths are valid. If uFlags includes the SHGFI_PIDL, value pszPath must be the address of an ITEMIDLIST structure that contains the list of item identifiers that uniquely identifies the file within the shell's name space. This string can use either short (the 8.3 form) or long filenames. dwFileAttributes Array of file attribute flags (FILE_ATTRIBUTE_ values). If uFlags does not include the SHGFI_USEFILEATTRIBUTES value, this parameter is ignored. psfi and cbFileInfo Address and size, in bytes, of the SHFILEINFO structure that receives the file information. uFlags Flag that specifies the file information to retrieve. This parameter can be a combination of the following values: