From: Wanting2Learn on
I have an eVC4 project which is running on the WM6 platform. My project uses
the PPC2003 SDK and I wish to use the GetUniqueDeviceID() function.

How do I use GetProcAddress and LoadLibrary to do this? This is an area I
am unsure of.

Thanks for your help

Harry
From: Wanting2Learn on
Is the GetUniqueDeviceID a phantom function?? I cannot find it anywhere nor
can I find anyone who can tell me how to use it :(

All help is greatly appreciated.

harry
From: Chris Tacke, eMVP on
Look here:

C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC
SDK\Samples\CPP\Win32\Getdeviceid\GetDeviceID


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Wanting2Learn" <Wanting2Learn(a)discussions.microsoft.com> wrote in message
news:B53DFC17-5D10-4115-BA3C-78620A184691(a)microsoft.com...
> Is the GetUniqueDeviceID a phantom function?? I cannot find it anywhere
> nor
> can I find anyone who can tell me how to use it :(
>
> All help is greatly appreciated.
>
> harry


From: Wanting2Learn on
Thanks a million Chris. :)

I believe that this function resides in the aygshell.dll. Is it possible to
access this function within an eVC4 project which uses the PPC2003 SDK. The
exe will run on a WM6 device. It is not possible due to time constraints to
port this project over to use the WM6 SDK.
I have tried the following but ProcAdd is always null.


typedef int (__cdecl *MYPROC)(LPWSTR);

MYPROC ProcAdd;


HMODULE hLib = LoadLibrary(_T("aygshell.dll"));
if (hLib)
{

ProcAdd = (MYPROC)GetProcAddress(hLib, _T("GetUniqueDeviceID"));


if(ProcAdd)
{
AfxMessageBox(_T("ProcAdd OK"));

}
else
{
AfxMessageBox(_T("ProcAdd NULL"));

}

Thanks again for any help you can give me.

harry
From: Peter Foot on
The function is contained within coredll.dll.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Wanting2Learn" <Wanting2Learn(a)discussions.microsoft.com> wrote in message
news:909BE16E-60FB-4ECB-8ADE-342CAE8DDE9F(a)microsoft.com...
> Thanks a million Chris. :)
>
> I believe that this function resides in the aygshell.dll. Is it possible
> to
> access this function within an eVC4 project which uses the PPC2003 SDK.
> The
> exe will run on a WM6 device. It is not possible due to time constraints
> to
> port this project over to use the WM6 SDK.
> I have tried the following but ProcAdd is always null.
>
>
> typedef int (__cdecl *MYPROC)(LPWSTR);
>
> MYPROC ProcAdd;
>
>
> HMODULE hLib = LoadLibrary(_T("aygshell.dll"));
> if (hLib)
> {
>
> ProcAdd = (MYPROC)GetProcAddress(hLib, _T("GetUniqueDeviceID"));
>
>
> if(ProcAdd)
> {
> AfxMessageBox(_T("ProcAdd OK"));
>
> }
> else
> {
> AfxMessageBox(_T("ProcAdd NULL"));
>
> }
>
> Thanks again for any help you can give me.
>
> harry