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;
     }
 }
예제 #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;
			}
		}
예제 #3
0
		extern static int AuthorizationCreate (AuthorizationItem *rights, AuthorizationItem *environment, AuthorizationFlags flags, out IntPtr auth);