static void EncodeString(ref AuthorizationItem item, string key, string value)
 {
     item.name = Marshal.StringToHGlobalAuto(key);
     if (value != null)
     {
         item.value    = Marshal.StringToHGlobalAuto(value);
         item.valueLen = (IntPtr)value.Length;
     }
 }
Exemplo n.º 2
0
		static void EncodeString (ref AuthorizationItem item, string key, string value)
		{
			item.name = Marshal.StringToHGlobalAuto (key);
			if (value != null){
				item.value = Marshal.StringToHGlobalAuto (value);
				item.valueLen = (IntPtr) value.Length;
			}
		}
Exemplo n.º 3
0
		extern static int AuthorizationCreate (AuthorizationItem *rights, AuthorizationItem *environment, AuthorizationFlags flags, out IntPtr auth);