Re: Detecting Wine

2008-10-02 Thread Scott Ritchie
Markus Hitter wrote: Am 30.09.2008 um 12:55 schrieb Eric Pouech: Your design is wrong IMO. You don't handle reparse points at all; you only rely on the nature of a drive, which isn't sufficient in most cases. See mounting volumes for example where you can mount a whole volume

Re: Detecting Wine

2008-09-30 Thread Eric Pouech
Your design is wrong IMO. You don't handle reparse points at all; you only rely on the nature of a drive, which isn't sufficient in most cases. See mounting volumes for example where you can mount a whole volume anywhere in an NTFS partition. The correct fix would be to: - ensure your code

Re: Detecting Wine

2008-09-30 Thread Markus Hitter
Am 30.09.2008 um 12:55 schrieb Eric Pouech: Your design is wrong IMO. You don't handle reparse points at all; you only rely on the nature of a drive, which isn't sufficient in most cases. See mounting volumes for example where you can mount a whole volume anywhere in an NTFS

re: Detecting Wine

2008-09-30 Thread Dan Kegel
Mark W. wrote: As part of the installation process, under Windows our program does a full-disk search of all local hard drives, but ignoring network drives and removable media. Under Wine, this doesn't work too well, as there's not a one-to-one mapping between disks and drive letters, and there's

Re: Detecting Wine

2008-09-30 Thread Guillaume VanderEst
Based on the current information, wouldn't it be smartest to ask the users which drive(s) they would like included in the search, or is it actually required that all disks be scanned? On Mon, Sep 29, 2008 at 3:06 PM, Mark Wagner [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 14:55, Juan Lang

Re: Detecting Wine

2008-09-29 Thread Austin English
On Mon, Sep 29, 2008 at 3:39 PM, Mark Wagner [EMAIL PROTECTED] wrote: What's the best way for an application to detect that it's running under Wine? As part of the installation process, under Windows our program does a full-disk search of all local hard drives, but ignoring network drives and

Re: Detecting Wine

2008-09-29 Thread Jeff Zaroyko
On Tue, Sep 30, 2008 at 6:52 AM, Austin English [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 3:39 PM, Mark Wagner [EMAIL PROTECTED] wrote: What's the best way for an application to detect that it's running under Wine? As part of the installation process, under Windows our program does a

Re: Detecting Wine

2008-09-29 Thread Juan Lang
What's the best way for an application to detect that it's running under Wine? Some people have given suggestions, but please note that we discourage doing this. It's better to fix Wine than to work around its bugs, and working around bugs removes incentive to fix them. So please, log a bug

Re: Detecting Wine

2008-09-29 Thread Zachary Goldberg
On Mon, Sep 29, 2008 at 5:34 PM, Jeff Zaroyko [EMAIL PROTECTED] wrote: Easier still would be checking for wine_get_version in ntdll... #include windows.h #include stdio.h int main(void) { static const char * (CDECL *pwine_get_version)(void); HMODULE hntdll = GetModuleHandle(ntdll.dll);

Re: Detecting Wine

2008-09-29 Thread Austin English
On Mon, Sep 29, 2008 at 4:41 PM, Juan Lang [EMAIL PROTECTED] wrote: What's the best way for an application to detect that it's running under Wine? Some people have given suggestions, but please note that we discourage doing this. It's better to fix Wine than to work around its bugs, and

Re: Detecting Wine

2008-09-29 Thread Mark Wagner
On Mon, Sep 29, 2008 at 14:41, Juan Lang [EMAIL PROTECTED] wrote: What's the best way for an application to detect that it's running under Wine? Some people have given suggestions, but please note that we discourage doing this. It's better to fix Wine than to work around its bugs, and

Re: Detecting Wine

2008-09-29 Thread Juan Lang
Did you read the second paragraph of my original email? I'm not working around a bug in Wine, unless it's a bug that a user can map / to C: and call it a fixed disk. Yes, I read it. And scanning / shouldn't be a problem, unless you've also mapped network drives there. That seems to be the

Re: Detecting Wine

2008-09-29 Thread Juan Lang
I'de like to nominate this bit of code (if approved as an 'acceptable practice') for the wiki. It seems Wine-devel gets this question at least once a month. Thoughts? Not acceptable practice. See e.g. the old faq entry: http://www.winehq.org/site/docs/wine-faq/index#HOW-CAN-I-DETECT-WINE

Re: Detecting Wine

2008-09-29 Thread Austin English
On Mon, Sep 29, 2008 at 4:53 PM, Mark Wagner [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 14:41, Juan Lang [EMAIL PROTECTED] wrote: What's the best way for an application to detect that it's running under Wine? Some people have given suggestions, but please note that we discourage doing

Re: Detecting Wine

2008-09-29 Thread Juan Lang
Yes, that's the root of the problem. I can't prevent the end-user from mounting network drives -- in fact, in the expected installation environment, the average user will have several very large network drives mounted. I believe you. Under Windows, installation takes about five minutes,

Re: Detecting Wine

2008-09-29 Thread Mark Wagner
On Mon, Sep 29, 2008 at 14:55, Juan Lang [EMAIL PROTECTED] wrote: Did you read the second paragraph of my original email? I'm not working around a bug in Wine, unless it's a bug that a user can map / to C: and call it a fixed disk. Yes, I read it. And scanning / shouldn't be a problem,

Re: Detecting Wine

2008-09-29 Thread Mark Wagner
On Mon, Sep 29, 2008 at 15:15, Guillaume VanderEst [EMAIL PROTECTED] wrote: Based on the current information, wouldn't it be smartest to ask the users which drive(s) they would like included in the search, or is it actually required that all disks be scanned? The average non-Wine user of this

Re: Detecting Wine

2008-09-29 Thread Steven Edwards
On Mon, Sep 29, 2008 at 5:58 PM, Juan Lang [EMAIL PROTECTED] wrote: Not acceptable practice. See e.g. the old faq entry: http://www.winehq.org/site/docs/wine-faq/index#HOW-CAN-I-DETECT-WINE I don't understand why this should still be the case. We have a stable Wine now and Alexadre exported