I’m translating a C++ Windows API to a delphi *.pas file.
I have this C Struct returned by a function
typedef struct _WLAN_HOSTED_NETWORK_STATUS {
WLAN_HOSTED_NETWORK_STATE HostedNetworkState;
GUID IPDeviceID;
DOT11_MAC_ADDRESS wlanHostedNetworkBSSID;
DOT11_PHY_TYPE dot11PhyType;
ULONG ulChannelFrequency;
DWORD dwNumberOfPeers;
WLAN_HOSTED_NETWORK_PEER_STATE PeerList[1];
} WLAN_HOSTED_NETWORK_STATUS, *PWLAN_HOSTED_NETWORK_STATUS;
I translated to this:
type
_WLAN_HOSTED_NETWORK_STATUS = record
HostedNetworkState : WLAN_HOSTED_NETWORK_STATE;
IPDeviceID : GUID;
wlanHostedNetworkBSSID : DOT11_MAC_ADDRESS;
dot11PhyType : DOT11_PHY_TYPE;
ulChannelFrequency : ULONG;
dwNumberOfPeers : DWORD;
PeerList : Array [0..1] of WLAN_HOSTED_NETWORK_PEER_STATE;
end;
WLAN_HOSTED_NETWORK_STATUS = _WLAN_HOSTED_NETWORK_STATUS;
PWLAN_HOSTED_NETWORK_STATUS = _WLAN_HOSTED_NETWORK_STATUS;
but I not found on MSDN reference what is this GUID type of IPDeviceID
it is a primitive type? how do I hold this value?
The Delphi equivalent is
TGUID.The Delphi documentation contains some examples of how to use this type and its associated helper function.