Hi,
I'm using Regcreatekeyex( ) to query a value, the frequency of using this function is very high and I was wondering if I could use the Regcopenkeyex function to optimise the code,Please leave aside the functionality of these two functions, I just want to know in the context of time efficiency. Could anyone guide me as to how to find if Regopenkeyex() is more efficient than Regcreatekeyex( )?
Thanks,
Vickram.
User Profile
Collapse
-
Efficiency - RegcreatekeyEx Vs RegopenkeyEx
-
Hi Plater,
Simple mistake did me in, that was the cause of the issue, I had introduced the FileIOPermissio n line and assert line, but overlooked the filecreate part.
Now its working fine.
Thanks a lot. -
Create a text file on a network path using C#
Hi,
I'm new to C# and I'm developeing a utility which creates a text file and populates it with registry key values.
It works fine on a local path, but with absolute path, it throws an error that "Access to the path .... is deined". Code is given below.
StreamWriter SW1;
FileIOPermissio n myPerm = new FileIOPermissio n(FileIOPermiss ionAccess.Write , "\\\\192.168.48 .125\\Shared");... -
'System.IO.FileLoadException' occurred in Unknown Module.
Hi, the only code that is present in main is given below
string filePath;
FileIOPermissio n FilePermission = new FileIOPermissio n(PermissionSta te.Unrestricted );
FilePermission. AllLocalFiles = FileIOPermissio nAccess.AllAcce ss;
StreamWriter SW;
if (args.Length == 0)
{
filePath = string.Copy("C: \\miginfo.txt") ;
SW = File.CreateText (filePath);...
No activity results to display
Show More
Leave a comment: