コード例 #1
0
 public int SetProperty(string name, object value)
 {
     ShadowPlayApi.Args.PropertyArgs args = new ShadowPlayApi.Args.PropertyArgs
     {
         api_version = 0x10058,
         name        = name,
         value       = value
     };
     return(api.SetProperty(hProxyInterface, ref args));
 }
コード例 #2
0
        public object GetProperty(string name)
        {
            ShadowPlayApi.Args.PropertyArgs args = new ShadowPlayApi.Args.PropertyArgs
            {
                api_version = 0x10058,
                name        = name,
            };
            api.GetProperty(hProxyInterface, ref args);
            string s = args.value?.ToString();

            return(args.value);
        }