예제 #1
0
        public static bool GetOPFStringForApp(AppId_t unVideoAppID, out string pchBuffer, ref int pnBufferSize)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr intPtr = Marshal.AllocHGlobal(pnBufferSize);
            bool   flag   = NativeMethods.ISteamVideo_GetOPFStringForApp(CSteamAPIContext.GetSteamVideo(), unVideoAppID, intPtr, ref pnBufferSize);

            pchBuffer = (flag ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            return(flag);
        }
        public static bool GetOPFStringForApp(AppId_t unVideoAppID, out string pchBuffer, ref int pnBufferSize)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr pchBuffer2 = Marshal.AllocHGlobal((int)pnBufferSize);
            bool   ret        = NativeMethods.ISteamVideo_GetOPFStringForApp(CSteamAPIContext.GetSteamVideo(), unVideoAppID, pchBuffer2, ref pnBufferSize);

            pchBuffer = ret ? InteropHelp.PtrToStringUTF8(pchBuffer2) : null;
            Marshal.FreeHGlobal(pchBuffer2);
            return(ret);
        }
예제 #3
0
 public static void GetVideoURL(AppId_t unVideoAppID)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamVideo_GetVideoURL(CSteamAPIContext.GetSteamVideo(), unVideoAppID);
 }
예제 #4
0
 public static bool IsBroadcasting(out int pnNumViewers)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamVideo_IsBroadcasting(CSteamAPIContext.GetSteamVideo(), out pnNumViewers));
 }