Return code codes to error? 
Author Message
 Return code codes to error?

When I run the RegSaveKey api I get return code of 1314 and I don't
know what it means. Where can I get the meaning?

Thanks,
Gary




Mon, 18 Nov 2002 03:00:00 GMT  
 Return code codes to error?
Gary,

Quote:
>When I run the RegSaveKey api I get return code of 1314 and I don't
>know what it means. Where can I get the meaning?

'  A required privilege is not held by the client.
Const ERROR_PRIVILEGE_NOT_HELD = 1314&

If you are running WinNT or WIn2000, your process needs SE_BACKUP_NAME
to call RegSaveKey. Use AdjustTokenPrivileges to get it.

You might also want to get Brad Martinez' excellent Win32err utility.
It's very useful in situations like this.
http://www.mvps.org/btmtz/win32err/

Mattias

____________________________________________

    http://hem.spray.se/mattias.sjogren/



Tue, 19 Nov 2002 03:00:00 GMT  
 Return code codes to error?


Fri, 19 Jun 1992 00:00:00 GMT  
 Return code codes to error?
Well, on NT/2000 there is the NetGetDCName API, or even NetGetAnyDCName.

I think ADSI can do all this too....

But what platform is this for?

--
MichKa
"Cause it's a bittersweet symphony, thats life..."  -- The Verve

random junk of dubious value, at the multilingual,
no scripts required, http://www.trigeminal.com/


Quote:
> Hello,
> does somebody know, how to get domain controller name (name of
> computer) from domain name?

> Thanks Petr



Tue, 19 Nov 2002 03:00:00 GMT  
 Return code codes to error?


Fri, 19 Jun 1992 00:00:00 GMT  
 Return code codes to error?
On Fri, 02 Jun 2000 10:32:02 GMT,

Quote:

>Gary,

>>When I run the RegSaveKey api I get return code of 1314 and I don't
>>know what it means. Where can I get the meaning?

>'  A required privilege is not held by the client.
>Const ERROR_PRIVILEGE_NOT_HELD = 1314&

>If you are running WinNT or WIn2000, your process needs SE_BACKUP_NAME
>to call RegSaveKey. Use AdjustTokenPrivileges to get it.

>You might also want to get Brad Martinez' excellent Win32err utility.
>It's very useful in situations like this.
>http://www.mvps.org/btmtz/win32err/

>Mattias

>____________________________________________

>    http://hem.spray.se/mattias.sjogren/

        After I posted the question I dug some more and found an error
routine that I think is the one you mention, and I agree, I don't know
how I dealt with it before I had it!

        I have a routine that mentions that process but it also fails.
I know this isn't a binary goup, but r there any restriction on
posting attached projects for review?

        Thank you for your help, not alot of information out there on
this function and I"ll be checking out that web site.

Thanks,
Gary




Tue, 19 Nov 2002 03:00:00 GMT  
 Return code codes to error?


Fri, 19 Jun 1992 00:00:00 GMT  
 Return code codes to error?
On Sat, 03 Jun 2000 00:01:19 GMT,

Quote:

>Gary,

>>        I have a routine that mentions that process but it also fails.
>>I know this isn't a binary goup, but r there any restriction on
>>posting attached projects for review?

>As long as you stick to small attachments (<50k or so) there shouldn't
>be a problem.

>Mattias

>____________________________________________


Great, any help would be appreciated.

Thanks,
Gary




Tue, 19 Nov 2002 03:00:00 GMT  
 Return code codes to error?


Fri, 19 Jun 1992 00:00:00 GMT  
 Return code codes to error?
Gary,

Quote:
>    I have a routine that mentions that process but it also fails.
>I know this isn't a binary goup, but r there any restriction on
>posting attached projects for review?

As long as you stick to small attachments (<50k or so) there shouldn't
be a problem.

Mattias

____________________________________________



Wed, 20 Nov 2002 03:00:00 GMT  
 Return code codes to error?
Here's some code to enable the privilege:
http://www.killervb.com/code/enableprivilege.bas.txt

While I haven't seen Brad's code, my LastDllErrorMsg() function is the best I've seen yet (small gloat):
http://www.killervb.com/code/commonbas/LastDllErrorMsg.htm

: )

--------------------------------
Monte Hansen
VB Yuk Yuk
http://KillerVB.com

What the yuk is a Yuk Yuk anyway? Beats the Yuk outta me!

Please respond to the newsgroups
--------------------------------

Gary,

Quote:
>When I run the RegSaveKey api I get return code of 1314 and I don't
>know what it means. Where can I get the meaning?

'  A required privilege is not held by the client.
Const ERROR_PRIVILEGE_NOT_HELD = 1314&

If you are running WinNT or WIn2000, your process needs SE_BACKUP_NAME
to call RegSaveKey. Use AdjustTokenPrivileges to get it.

You might also want to get Brad Martinez' excellent Win32err utility.
It's very useful in situations like this.
http://www.mvps.org/btmtz/win32err/

Mattias

____________________________________________

    http://hem.spray.se/mattias.sjogren/



Fri, 22 Nov 2002 03:00:00 GMT  
 
 [ 11 post ] 

 Relevant Pages 

1. ERROR Code 0x80004005 : ERROR Code 0xfee670 : ERROR 1157

2. VB16 Setup Error (Winexec returned error code 000AH)

3. HELP Error code 2244 & Error code 2465

4. Api return codes -- code 234

5. if OpenDataBase returns error code 3151 ..

6. Calling LogonUser from .Net returns error code 126.

7. Error codes returned from SHELL command

8. VB 4.0a Setup fails (WinExec returned error code 0002H)

9. Ghostscript GSDLL32.DLL, gsdll_init is returning error code -100

10. CreateProcess() returned error code 0x000000C1H

11. CreateProcess() returned error code 0x000000C1H

12. Returning code line that has an error

 

 
Powered by phpBB® Forum Software