Problem of determining MAC address

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
DestinyR
Newbie
Newbie
Posts: 1
Joined: Wed May 28, 2014 2:53 am

Problem of determining MAC address

Post by DestinyR »

I use WinAPI functions to determing MAC address.
It is two way to determ:
1) via method Netbios (netapi32.dll) - it's work
2) via method CreateFile(kernel32.dll) - don't work

To use CreateFile I must pass NetCardName. Under Windows this value is "{4D36E972-E325-11CE-BFC1-08002bE10318}" under wine this value is "eth0".
Under wine the method "CreateFile" is failed with error "File not found".

It is possible to fix this problem? The problem is refers to identical problem with installation license of FlexLM, when license can't be installed, because the value of HostID is NULL. I suppose that the FlexLM is used the same method to determ MAC address.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem of determining MAC address

Post by dimesio »

Locked