
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/