|
Is there a way to create NT users using win api's ?
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
NetUserAdd()
if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk))
{
// I aint no pUnk bitch!
}
|
|
|
|
|
Thanks a bunch!
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hi,guys:
I've got a big problem about system hook on win2k sp4.
In my software, there's a hook which intercepts system event ---- keyboard/mouse/message, etc. It is originally designed as a myhook.dll. For some reason, I have to remove this dll, and include all files/functions in it as normal cpp files. While recompiling, well, no warning or error about it and it works fine except big performance penalty.
Are there any design or understanding mistakes I have made ?
Any suggestion/advice is appreciated.
TIA
-gusd
|
|
|
|
|
suninwater wrote:
For some reason, I have to cut off this dll, and include all files/functions in it as normal cpp files.
I'm sorry I have no idea what you mean here...
[EDIT]
Ok I think I understand. The correct word is remove. Replace "cut off" and "cutting off" with remove.
As for the answer. I have used application hooks in dlls and in the executable and I have not noticed any performance differences. But I also see no reason why you can not use the DLL. That is the only way for system wide hooks and should be supported for thread hooks.
[/EDIT]
John
|
|
|
|
|
OK, as your word, I've replace "cut off" with "remove".
Sorry.
And, can you give me some help ?
|
|
|
|
|
I am writing a program. The purpose of it is to display and/or print MS Word doc on a view. For this I am trying to get the Enhance Metafile representation of the word doc file,but i have little progress.Can somebody give me some advise?
|
|
|
|
|
I think you can have a look at writing printer drivers.
For ex. your word documents can be converted to pdf by printer driver, similarly you can convert them to emf through the same technique.
You need windows driver development kit for this purpose.
Cheers,
Kannan
|
|
|
|
|
Hi,
I right click in treectrl, but it seems to that I can't use CTreeCtrl::GetSelectedItem () to get my selected node,I wanna why I can't use this function as I use left click? :confused Thanks
YES, I am here.
|
|
|
|
|
ur question is bit confusing!!!!!!!!!
Thanx
TAKE CARE
|
|
|
|
|
You can use this to get the selected Item.
void C3StateTree::OnRButtonDown(UINT nFlags, CPoint point)
{
UINT uFlags = 0;
HTREEITEM hItem = HitTest(point, &uFlags);
Arjan.
|
|
|
|
|
Maybe knowledgebase article Q222905 can help you?
It describes how to get the item that was right-clicked.
Angel Kid wrote:
YES, I am here.
No, you are not! *I* am here, but you are there! ;P
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
jhwurmbach wrote:
Angel Kid wrote:
YES, I am here.
No, you are not! *I* am here, but you are there!
*shakes head in disbelief*
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I found in the MSDN ,but can't found the Q222905????????
YES, I am here.
|
|
|
|
|
On this[^] page, on the top right, enter Q222905 into the edit field and click the radiobutton for 'Knowledgebase' below. Now click the button labled 'Go'.
You will get exactly one result link.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
|
As to multi-threaded programming knowledge I still know very little
Do you know How I want to master this skill
But I have not find any material.
Would you like to introduce some good articles available for me?
Thank you in advance!
|
|
|
|
|
|
Here are some:
http://www.flounder.com/callbacks.htm
http://www.flounder.com/uithreads.htm
http://www.flounder.com/workerthreads.htm
|
|
|
|
|
|
some device continues to send datas (UDP) to one port of
my computer ,now i needs to get the datas and send it out.
how can i do it .what functions shall i use ??
THANKS A LOT !
a good man
|
|
|
|
|
|
I need to remember the values of variables that were assigned in one dialog box after that dialog box creates another dialog box. Because I don't want to use global variables I have resorted to using hidden controls on the first dialog box to store the values. Then the second dialog box can access them with CWnd* wParent=GetParent(); and wParent->GetDlgItemText(IDCONTROL, String);
But this seems really contrived and kludgy.
I tried using Class Wizard to create member variables, but I could only see controls listed.
Is this workaround I have been using really the way to store variables that are accessible by child windows?
|
|
|
|
|
I either pass the values into the second dialog box or pass a pointer to the first dialog box to the second dialog box.
John
|
|
|
|
|
My example showed the use of a pointer to the first window - the CWnd* wParent = Getparent(); so I didn't need to pass the variable - but how do you pass a value to the second dialog? When I call dlg.DoModal() it doesn't allow for parameter passing.
|
|
|
|