First of all, thanks for your kind answer. Yes, I think I have some
good documentation (I'm consulting a CHM file called wcenetui.chm, I
don't know if it comes from PB or another SDK), but I have several
problems with this "helpful" file.
I have very little experience with P/Invoking, but if I could have the
exact data I need, I guess I would eventually make my invoking right,
thru work, work and work. But in the help file I'm consulting I have
the following definition of GetUserNamePassword:
BOOL GetUsernamePassword(
HWND hParent,
PNETUI_USERPWD pUserPwd
);
It uses an struct called PNETUI_USERPWD, which the help file defines
as:
typedef struct _NETUI_USERPWD {
TCHAR szUserName[UNLEN + 1];
TCHAR szPassword[PWLEN + 1];
TCHAR szDomain[DNLEN +1];
DWORD dwFlags;
TCHAR szResourceName[RMLEN];
} NETUI_USERPWD, *PNETUI_USERPWD;
It's all clear 'til it comes to flags. This
(NETUI_USERPWD_SERVERLOGON) is one of the values mentioned as one of
the possibilities for the dwFlags parameters. Guess what? I'ver been
*completely unable* to find any reference whatsoever to something
called NETUI_USERPWD_SERVERLOGON. I've searched Google (web,
directory, newsgroups, even images); I've searched my hard drive
looking for that string inside my files,... all to no avail.
The Help file mentions that NETUI_USERPWD_SERVERLOGON is defined on
netui.h, a header file I can't find *anywhere*. Not on the web, not on
my disk, not on my PDA.
To add injury to insult, the "Help" file mentions (and I'm
copy-pasting here):
"The source code for the implemented dialog boxes is in the
%_WINCEROOT%\Public\Common\Oak\Drivers\Netui directory."
And this is the exact moment when I'm starting to think about leaving
computers and beginning a new and not-so-stressing career, such as
fireman, test pilot, stunt double, or something like that.
Because, of course, I don't have the *slightest* idea of where the
hell is that path. And, of course, it's *not* on my hard disk and it's
*not* on my PDA. And I'm going crazy.
UPDATE: Right now I'm downloading WCE212QFE23.EXE from Microsoft. I do
hope this 189 Mbs file contains the netui.h, or some examples, or
something...
And on top of all this, I'm not even sure if this API function is
going to do what I need to do: to make a PDA perform a logon against a
LAN, specifying domain, username and password. The scenario is that my
client is going to have several PDAs for several employees, and
everyone of them should be able to use any of the PDAs, logon against
a LAN server and get their privileges, mapped connections and so on,
just as if they were to logon on a network-connected computer. If you
think of *ANY* way of doing this, please tell me.
One last thing: I hope you'll know to excuse the tone of this post.
I'm not angry (and of course I'm not angry *with you*; in fact I'm
really grateful to have someone to talk to about this), I'm
frustrated. Again, please excuse my tone if you found it offensive.
Thanks again for being there, Paul.
Regards,
Carlos
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> wrote in
message news: said:
I didn't think that the NETUI component had an publicly-documented API, but
I can find at least one of the functions exported by it,
GetUsernamePassword(), in the CE.NET 4.2 documentation. In my version of
the help, it's in the Application Development section, under Network User
Interface. I'm using, essentially, the Platform Builder help, so maybe that
explains why you can't find anything. You should be able to download an
evaluation version of PB from the Microsoft Web site...
Paul T.