IOServiceMatching, CFSTR, IOServiceGetMatchingServices: Où sont ces fonctions ?
Bonjour,
J'essaie d'utiliser ces fonctions:
Code:
1 2 3 4
|
function IOServiceMatching(name: PChar):CFMutableDictionaryRef;cdecl;external clib name 'IOServiceMatching';
function CFSTR (name: PChar):CFStringRef;cdecl;external clib name 'CFSTR';
function IOServiceGetMatchingServices(masterPort: mach_port_t; matching: CFDictionaryRef; existing: io_iterator_t):kern_return_t;cdecl;external clib name 'IOServiceGetMatchingServices'; |
Mais erreurs au linking:
Code:
1 2 3 4 5 6 7
|
Undefined symbols:
"_IOServiceGetMatchingServices", referenced from: _PC_SERIALNUM$$SHORTSTRING in PC.o
"_IOServiceMatching", referenced from: _PC_SERIALNUM$$SHORTSTRING in PC.o
"_CFSTR", referenced from: _PC_SERIALNUM$$SHORTSTRING in PC.o
ld: symbol(s) not found
Error: Error while linking |
Pourtant, j'ai pu utiliser sans problème les fonctions externes suivantes:
Code:
1 2 3
| function CopyProcessName (ProcessSerialNumber:PProcessSerialNumber; ProcessName: PChar):cint; cdecl; external name 'CopyProcessName';
function reboot(__howto:longint):longint;cdecl;external clib name 'reboot';
function getmntinfo(buf: p_statfs; count: integer):integer;cdecl;external clib name 'getmntinfo'; |
Je ne comprends pas ce qui me manque :(
André