|
but u have to know user's(who has admin priviledge) name and password to use LogOnUser
never say die
-- modified at 8:00 Tuesday 23rd May, 2006
|
|
|
|
|
sunit5 wrote: but u have to know user's(who has admin priviledge) name and password to use LogOnUser
but poster is looking for Api to achieve same, it will his task to provide Admin password to achieve same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
When I do not now the user name and password then would it work , I think not?
SO how can I do my task if not know the user and password of admin,
Regards.
|
|
|
|
|
zahid_ash wrote: SO how can I do my task if not know the user and password of admin,
Then Make Window Service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
zahid_ash wrote:
SO how can I do my task if not know the user and password of admin,
Imagine if this were possible. It would render passwords useless. Not to mention the whole security system (since anyone could log in as admin and change whatever ACLs/settings that they didn't like)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Hi, I'm writing a visual C++ application that allows a computer, running a full screen 'old' PC game, to be controlled by a remote computer.
I want to be able to blank the screen of the game machine but still control the game i.e. go into the settings screens, change player name and various other settings. Then un-blank the screen once back into the real game.
My problem is that to blank the screen I'm creating a full screen always on top window filled in black. But I still need to be able to send inputs, mouse clicks and keyboard, into the game screens. So how can I create the blanking window so that mouse clicks etc pass through it, to the game window underneath?
Thanks,
Antony
|
|
|
|
|
Sir,
I want to work on a project.The project is based on following utility.It will have the password option.Like in window explorer when the user right clicks at the file or folder the menu get appeared with open , rename, delete etc facilities . Now i want to add the password option.
The problem is should i use vc++ 6.0 or vc++.net 1.1 or C or anything else. Which language should be appropriate for that?
Thanks and regards
Amaneet Brar
|
|
|
|
|
this is not a real problem. anyway, i advise you not to use VC6 but prefer VC7.1 instead, simply because of compiler standard compliance...
moreover, MFC 7.1 should be much more powerful for what you're looking for.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
amaneet wrote: I want to work on a project.The project is based on following utility.It will have the password option.Like in window explorer when the user right clicks at the file or folder the menu get appeared with open , rename, delete etc facilities . Now i want to add the password option.
You want to write Shell Extensions right?
You can start here[^] (Article by Michael Dunn on Shell Extensions Part I).
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Sir,
There were errors while compilation in the project.
Thanks and Regards
Amaneet Brar
|
|
|
|
|
amaneet wrote: There were errors while compilation in the project.
Thanks and Regards
You can ask those questions to the author himself. Scroll down you will see the place where you should ask these questions.
BTW do take a look at some of the questions that are posted there.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
amaneet wrote: There were errors while compilation in the project.
which project ?
as told to you, explain your problem in the article message board directly (see at the bottom of the article)
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
I want a simple calculator program that write with windows Api
please Give me a link as soon as possible
With Thanks
MHF
|
|
|
|
|
|
|
|
Hello,
I'm having to classes with inverse assotiations, which means one has to include the other. But neither my MSVC nor my GNU compiler doesn't handle that. I don't understand why?
MSVC Compiler error: Syntax error: identifier 'B'
Syntax error: identifier 'A'
GNU Compiler error: variable or field 'foo' declared void
expected ';' before '(' token
Here is a code example:
#ifndef A_H
#define A_H
#include "B.h"
class A
{
public:
A(void);
virtual ~A(void);
void foo(B* b);
};
#endif
#ifndef B_H
#define B_H
#include "A.h"
class B
{
public:
B(void);
~B(void);
void foo(A* a);
};
#endif
Thank's for your replies,
boogalo
|
|
|
|
|
You have to include the files in the cpp files and use a forward declaration of classes:
class A;
class B
{
};
Including a header means that the code from the header will be 'pasted' instead of the include directive. Imagine then what happens in your case
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
boogalo wrote: // B.h ----
#ifndef B_H
#define B_H
#include "A.h"
class B
{
public:
B(void);
~B(void);
void foo(A* a);
};
#endif
Try the following code as this is due to deadlock for proptotypes of class A and class B
// B.h ----
#ifndef B_H
#define B_H
class A;
#include "A.h"
class B
{
public:
B(void);
~B(void);
void foo(A* a);
};
#endif
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
A_Laxman#ifndef B_H
#define B_H
class A;
#include "A.h"
#include "A.h" is redundant use only forward declaraton ie class A
never say die
|
|
|
|
|
sunit5 wrote: include "A.h" is redundant use only forward declaraton ie class A
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thank You all for the quick response!!!
That worked out well. now it's compiling
boogalo
|
|
|
|
|
instead fo including the header file you can do forward class declaration and
class A;
class B
{
public:
B(void);
~B(void);
void foo(A* a);
};
Regards
Anil
|
|
|
|
|
Hello,
I am trying to make a small paint application and want to allow user to draw only in three colors Black, White and Red.
I create a 4BPP DIB with a Pallete with White, Black and Red as top three entries and rest all initialized to black.
I copy the same Pallete on the Device Context.
When I Draw a Line with solid red pen and ROP set to R2_MASKPEN but the line is drawn in white color although it should appear as red.
Can anyone help me out here.
Regards,
Nauman Bin Ali
|
|
|
|
|
I've just found this in some code I've been given to maintain:
inline char * _fstrchr(const char *szStr, char ch)
{
return strchr(szStr, ch);
}
It's in a .h file, and it's used all over the place. Is there any benefit with this function over using strchr directly? I thought inlined functions basic replaced the _fstrchr token with the content of the function - as the function is not doing anything else, is there any point?
- Dy
|
|
|
|